- int result = wxID_CANCEL ;
- OSErr err ;
- wxString message ;
-
-#if !TARGET_CARBON
- err = ::UMAPrOpen(NULL) ;
- if ( err == noErr )
- {
- m_printDialogData.ConvertToNative() ;
- if ( ::PrJobDialog( (THPrint) m_printDialogData.GetPrintData().m_macPrintSettings ) )
- {
- m_printDialogData.ConvertFromNative() ;
- result = wxID_OK ;
- }
-
- }
- else
- {
- message.Printf( "Print Error %d", err ) ;
- wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
- dialog.ShowModal();
- }
- ::UMAPrClose(NULL) ;
+ int result = wxID_CANCEL ;
+ OSErr err ;
+ wxString message ;
+
+#if !TARGET_CARBON
+ err = ::UMAPrOpen(NULL) ;
+ if ( err == noErr )
+ {
+ m_printDialogData.ConvertToNative() ;
+ if ( ::PrJobDialog( (THPrint) m_printDialogData.GetPrintData().m_macPrintSettings ) )
+ {
+ m_printDialogData.ConvertFromNative() ;
+ result = wxID_OK ;
+ }
+
+ }
+ else
+ {
+ message.Printf( wxT("Print Error %d"), err ) ;
+ wxMessageDialog dialog( NULL , message , wxT(""), wxICON_HAND | wxOK) ;
+ dialog.ShowModal();
+ }
+ ::UMAPrClose(NULL) ;