+#else
+ m_macPrintPort = kPMNoReference ;
+ err = PMBeginDocument(
+ m_printData.m_macPrintSettings,
+ m_printData.m_macPageFormat,
+ &m_macPrintPort);
+ if ( err != noErr || m_macPrintPort == kPMNoReference )
+ {
+ message.Printf( "Print Error %d", err ) ;
+ wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
+ UMAPrClose() ;
+ }
+ // sets current port
+ ::GetPort( &m_macPort ) ;
+#endif