- int result = wxID_CANCEL ;
- OSErr err ;
- wxString message ;
- ::PrOpen() ;
- err = PrError() ;
-
- if ( !err )
- {
- m_pageSetupData.ConvertToNative() ;
- if ( m_pageSetupData.m_macPageSetupInfo && ::PrStlDialog( m_pageSetupData.m_macPageSetupInfo ) )
- {
- m_pageSetupData.ConvertFromNative() ;
- result = wxID_OK ;
- }
-
- }
- else
- {
- message.Printf( "Print Error %d", err ) ;
- wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
- }
- ::PrClose() ;
-
- return result ;
+ m_pageSetupData.ConvertToNative() ;
+ int result = m_pageSetupData.GetPrintData().m_nativePrintData->ShowPageSetupDialog() ;
+ if (result == wxID_OK )
+ m_pageSetupData.ConvertFromNative() ;
+
+ return result ;