- int result = wxID_CANCEL ;
- #if !TARGET_CARBON
-
- OSErr err ;
- wxString message ;
- ::UMAPrOpen() ;
- err = PrError() ;
-
- if ( !err )
- {
- m_printDialogData.ConvertToNative() ;
- if ( ::PrJobDialog( m_printDialogData.GetPrintData().m_macPrintInfo ) )
- {
- m_printDialogData.ConvertFromNative() ;
- result = wxID_OK ;
- }
-
- }
- else
- {
- message.Printf( "Print Error %d", err ) ;
- wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
- }
- ::UMAPrClose() ;
- #else
- #pragma warning "TODO:Printing for carbon"
- #endif
- return result ;
+ m_printDialogData.ConvertToNative() ;
+ int result = m_printDialogData.GetPrintData().m_nativePrintData->ShowPrintDialog() ;
+ if ( result == wxID_OK )
+ m_printDialogData.ConvertFromNative() ;
+
+ return result ;