void UMAShowWatchCursor() ;
void UMAShowArrowCursor() ;
-#if TARGET_CARBON && PM_USE_SESSION_APIS
-OSStatus UMAPrOpen(PMPrintSession *macPrintSession) ;
-OSStatus UMAPrClose(PMPrintSession *macPrintSession) ;
-#else
-OSStatus UMAPrOpen() ;
-OSStatus UMAPrClose() ;
-#endif
+OSStatus UMAPrOpen(void *macPrintSession) ;
+OSStatus UMAPrClose(void *macPrintSession) ;
// window manager
#include <math.h>
#include "wx/mac/uma.h"
+#if defined(TARGET_CARBON) && !defined(__DARWIN__)
+# if PM_USE_SESSION_APIS
+# include <PMCore.h>
+# endif
+# include <PMApplication.h>
+#endif
+
#if !USE_SHARED_LIBRARY
IMPLEMENT_CLASS(wxPrinterDC, wxDC)
#endif
m_printData.ConvertToNative() ;
#if TARGET_CARBON && PM_USE_SESSION_APIS
- err = UMAPrOpen((PMPrintSession *)&m_macPrintSessionPort) ;
+ err = UMAPrOpen(&m_macPrintSessionPort) ;
if ( err != noErr || m_macPrintSessionPort == kPMNoData )
#else
- err = UMAPrOpen() ;
+ err = UMAPrOpen(NULL) ;
if ( err != noErr )
#endif
{
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
dialog.ShowModal();
#if TARGET_CARBON && PM_USE_SESSION_APIS
- UMAPrClose((PMPrintSession *)&m_macPrintSessionPort) ;
+ UMAPrClose(&m_macPrintSessionPort) ;
#else
- UMAPrClose() ;
+ UMAPrClose(NULL) ;
#endif
m_ok = FALSE;
return;
message.Printf( "Print Error %d", err ) ;
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
dialog.ShowModal();
- UMAPrClose() ;
+ UMAPrClose(NULL) ;
m_ok = FALSE;
return;
}
message.Printf( "Print Error %d", err ) ;
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
dialog.ShowModal();
- UMAPrClose() ;
+ UMAPrClose(NULL) ;
m_ok = FALSE;
return;
}
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
dialog.ShowModal();
#if TARGET_CARBON && PM_USE_SESSION_APIS
- UMAPrClose((PMPrintSession *)&m_macPrintSessionPort) ;
+ UMAPrClose(&m_macPrintSessionPort) ;
#else
- UMAPrClose() ;
+ UMAPrClose(NULL) ;
#endif
m_ok = FALSE;
return;
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
dialog.ShowModal();
#if TARGET_CARBON && PM_USE_SESSION_APIS
- UMAPrClose((PMPrintSession *)&m_macPrintSessionPort) ;
+ UMAPrClose(&m_macPrintSessionPort) ;
#else
- UMAPrClose() ;
+ UMAPrClose(NULL) ;
#endif
m_ok = FALSE;
return;
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
dialog.ShowModal();
}
- ::UMAPrClose() ;
+ ::UMAPrClose(NULL) ;
// ::SetPort( macPrintFormerPort ) ;
::SetPort( LMGetWMgrPort() ) ;
}
dialog.ShowModal();
}
#if TARGET_CARBON && PM_USE_SESSION_APIS
- UMAPrClose((PMPrintSession *)&m_macPrintSessionPort) ;
+ UMAPrClose(&m_macPrintSessionPort) ;
#else
- UMAPrClose() ;
+ UMAPrClose(NULL) ;
#endif
}
#endif
dialog.ShowModal();
::PrClosePage( (TPPrPort) m_macPrintSessionPort ) ;
::PrCloseDoc( (TPPrPort) m_macPrintSessionPort ) ;
- ::UMAPrClose() ;
+ ::UMAPrClose(NULL) ;
::SetPort( macPrintFormerPort ) ;
m_ok = FALSE ;
}
#if PM_USE_SESSION_APIS
PMSessionEndPage((PMPrintSession)m_macPrintSessionPort);
PMSessionEndDocument((PMPrintSession)m_macPrintSessionPort);
- UMAPrClose((PMPrintSession *)&m_macPrintSessionPort) ;
+ UMAPrClose(&m_macPrintSessionPort) ;
#else
PMEndPage(m_macPrintSessionPort);
PMEndDocument(m_macPrintSessionPort);
- UMAPrClose() ;
+ UMAPrClose(NULL) ;
#endif
::SetPort( macPrintFormerPort ) ;
m_ok = FALSE ;
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
dialog.ShowModal();
::PrCloseDoc( (TPPrPort) m_macPrintSessionPort ) ;
- ::UMAPrClose() ;
+ ::UMAPrClose(NULL) ;
::SetPort( macPrintFormerPort ) ;
m_ok = FALSE ;
}
dialog.ShowModal();
#if PM_USE_SESSION_APIS
PMSessionEndDocument((PMPrintSession)m_macPrintSessionPort);
- UMAPrClose((PMPrintSession *)&m_macPrintSessionPort) ;
+ UMAPrClose(&m_macPrintSessionPort) ;
#else
PMEndDocument(m_macPrintSessionPort);
- UMAPrClose() ;
+ UMAPrClose(NULL) ;
#endif
::SetPort( macPrintFormerPort ) ;
m_ok = FALSE ;
#include "wx/msgdlg.h"
#include "wx/mac/uma.h"
+#if defined(TARGET_CARBON) && !defined(__DARWIN__)
+# if PM_USE_SESSION_APIS
+# include <PMCore.h>
+# endif
+# include <PMApplication.h>
+#endif
+
// Use generic page setup dialog: use your own native one if one exists.
#if !USE_SHARED_LIBRARY
wxString message ;
#if !TARGET_CARBON
- err = ::UMAPrOpen() ;
+ err = ::UMAPrOpen(NULL) ;
if ( err == noErr )
{
m_printDialogData.ConvertToNative() ;
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
dialog.ShowModal();
}
- ::UMAPrClose() ;
+ ::UMAPrClose(NULL) ;
#else
#if PM_USE_SESSION_APIS
PMPrintSession macPrintSession = kPMNoReference;
wxString message ;
#if !TARGET_CARBON
- err = ::UMAPrOpen() ;
+ err = ::UMAPrOpen(NULL) ;
if ( err == noErr )
{
m_pageSetupData.ConvertToNative() ;
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
dialog.ShowModal();
}
- ::UMAPrClose() ;
+ ::UMAPrClose(NULL) ;
#else
#if PM_USE_SESSION_APIS
PMPrintSession macPrintSession = kPMNoReference;
#include <MacTextEditor.h>
#ifndef __DARWIN__
- #include <Navigation.h>
+# include <Navigation.h>
+# if defined(TARGET_CARBON)
+# if PM_USE_SESSION_APIS
+# include <PMCore.h>
+# endif
+# include <PMApplication.h>
+# endif
#endif
// since we have decided that we only support 8.6 upwards we are
int gPrOpenCounter = 0 ;
-#if TARGET_CARBON && PM_USE_SESSION_APIS
-OSStatus UMAPrOpen(PMPrintSession *macPrintSession)
-#else
-OSStatus UMAPrOpen()
-#endif
+OSStatus UMAPrOpen(void *macPrintSession)
{
#if !TARGET_CARBON
OSErr err = noErr ;
if ( gPrOpenCounter == 1 )
{
#if PM_USE_SESSION_APIS
- err = PMCreateSession(macPrintSession) ;
+ err = PMCreateSession((PMPrintSession *)macPrintSession) ;
#else
err = PMBegin() ;
#endif
#endif
}
-#if TARGET_CARBON && PM_USE_SESSION_APIS
-OSStatus UMAPrClose(PMPrintSession *macPrintSession)
-#else
-OSStatus UMAPrClose()
-#endif
+OSStatus UMAPrClose(void *macPrintSession)
{
#if !TARGET_CARBON
OSErr err = noErr ;
if ( gPrOpenCounter == 1 )
{
#if PM_USE_SESSION_APIS
- err = PMRelease(*macPrintSession) ;
- *macPrintSession = kPMNoReference;
+ err = PMRelease(*(PMPrintSession *)macPrintSession) ;
+ *(PMPrintSession *)macPrintSession = kPMNoReference;
#else
err = PMEnd() ;
#endif
#include <math.h>
#include "wx/mac/uma.h"
+#if defined(TARGET_CARBON) && !defined(__DARWIN__)
+# if PM_USE_SESSION_APIS
+# include <PMCore.h>
+# endif
+# include <PMApplication.h>
+#endif
+
#if !USE_SHARED_LIBRARY
IMPLEMENT_CLASS(wxPrinterDC, wxDC)
#endif
m_printData.ConvertToNative() ;
#if TARGET_CARBON && PM_USE_SESSION_APIS
- err = UMAPrOpen((PMPrintSession *)&m_macPrintSessionPort) ;
+ err = UMAPrOpen(&m_macPrintSessionPort) ;
if ( err != noErr || m_macPrintSessionPort == kPMNoData )
#else
- err = UMAPrOpen() ;
+ err = UMAPrOpen(NULL) ;
if ( err != noErr )
#endif
{
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
dialog.ShowModal();
#if TARGET_CARBON && PM_USE_SESSION_APIS
- UMAPrClose((PMPrintSession *)&m_macPrintSessionPort) ;
+ UMAPrClose(&m_macPrintSessionPort) ;
#else
- UMAPrClose() ;
+ UMAPrClose(NULL) ;
#endif
m_ok = FALSE;
return;
message.Printf( "Print Error %d", err ) ;
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
dialog.ShowModal();
- UMAPrClose() ;
+ UMAPrClose(NULL) ;
m_ok = FALSE;
return;
}
message.Printf( "Print Error %d", err ) ;
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
dialog.ShowModal();
- UMAPrClose() ;
+ UMAPrClose(NULL) ;
m_ok = FALSE;
return;
}
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
dialog.ShowModal();
#if TARGET_CARBON && PM_USE_SESSION_APIS
- UMAPrClose((PMPrintSession *)&m_macPrintSessionPort) ;
+ UMAPrClose(&m_macPrintSessionPort) ;
#else
- UMAPrClose() ;
+ UMAPrClose(NULL) ;
#endif
m_ok = FALSE;
return;
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
dialog.ShowModal();
#if TARGET_CARBON && PM_USE_SESSION_APIS
- UMAPrClose((PMPrintSession *)&m_macPrintSessionPort) ;
+ UMAPrClose(&m_macPrintSessionPort) ;
#else
- UMAPrClose() ;
+ UMAPrClose(NULL) ;
#endif
m_ok = FALSE;
return;
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
dialog.ShowModal();
}
- ::UMAPrClose() ;
+ ::UMAPrClose(NULL) ;
// ::SetPort( macPrintFormerPort ) ;
::SetPort( LMGetWMgrPort() ) ;
}
dialog.ShowModal();
}
#if TARGET_CARBON && PM_USE_SESSION_APIS
- UMAPrClose((PMPrintSession *)&m_macPrintSessionPort) ;
+ UMAPrClose(&m_macPrintSessionPort) ;
#else
- UMAPrClose() ;
+ UMAPrClose(NULL) ;
#endif
}
#endif
dialog.ShowModal();
::PrClosePage( (TPPrPort) m_macPrintSessionPort ) ;
::PrCloseDoc( (TPPrPort) m_macPrintSessionPort ) ;
- ::UMAPrClose() ;
+ ::UMAPrClose(NULL) ;
::SetPort( macPrintFormerPort ) ;
m_ok = FALSE ;
}
#if PM_USE_SESSION_APIS
PMSessionEndPage((PMPrintSession)m_macPrintSessionPort);
PMSessionEndDocument((PMPrintSession)m_macPrintSessionPort);
- UMAPrClose((PMPrintSession *)&m_macPrintSessionPort) ;
+ UMAPrClose(&m_macPrintSessionPort) ;
#else
PMEndPage(m_macPrintSessionPort);
PMEndDocument(m_macPrintSessionPort);
- UMAPrClose() ;
+ UMAPrClose(NULL) ;
#endif
::SetPort( macPrintFormerPort ) ;
m_ok = FALSE ;
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
dialog.ShowModal();
::PrCloseDoc( (TPPrPort) m_macPrintSessionPort ) ;
- ::UMAPrClose() ;
+ ::UMAPrClose(NULL) ;
::SetPort( macPrintFormerPort ) ;
m_ok = FALSE ;
}
dialog.ShowModal();
#if PM_USE_SESSION_APIS
PMSessionEndDocument((PMPrintSession)m_macPrintSessionPort);
- UMAPrClose((PMPrintSession *)&m_macPrintSessionPort) ;
+ UMAPrClose(&m_macPrintSessionPort) ;
#else
PMEndDocument(m_macPrintSessionPort);
- UMAPrClose() ;
+ UMAPrClose(NULL) ;
#endif
::SetPort( macPrintFormerPort ) ;
m_ok = FALSE ;
#include "wx/msgdlg.h"
#include "wx/mac/uma.h"
+#if defined(TARGET_CARBON) && !defined(__DARWIN__)
+# if PM_USE_SESSION_APIS
+# include <PMCore.h>
+# endif
+# include <PMApplication.h>
+#endif
+
// Use generic page setup dialog: use your own native one if one exists.
#if !USE_SHARED_LIBRARY
wxString message ;
#if !TARGET_CARBON
- err = ::UMAPrOpen() ;
+ err = ::UMAPrOpen(NULL) ;
if ( err == noErr )
{
m_printDialogData.ConvertToNative() ;
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
dialog.ShowModal();
}
- ::UMAPrClose() ;
+ ::UMAPrClose(NULL) ;
#else
#if PM_USE_SESSION_APIS
PMPrintSession macPrintSession = kPMNoReference;
wxString message ;
#if !TARGET_CARBON
- err = ::UMAPrOpen() ;
+ err = ::UMAPrOpen(NULL) ;
if ( err == noErr )
{
m_pageSetupData.ConvertToNative() ;
wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ;
dialog.ShowModal();
}
- ::UMAPrClose() ;
+ ::UMAPrClose(NULL) ;
#else
#if PM_USE_SESSION_APIS
PMPrintSession macPrintSession = kPMNoReference;
#include <MacTextEditor.h>
#ifndef __DARWIN__
- #include <Navigation.h>
+# include <Navigation.h>
+# if defined(TARGET_CARBON)
+# if PM_USE_SESSION_APIS
+# include <PMCore.h>
+# endif
+# include <PMApplication.h>
+# endif
#endif
// since we have decided that we only support 8.6 upwards we are
int gPrOpenCounter = 0 ;
-#if TARGET_CARBON && PM_USE_SESSION_APIS
-OSStatus UMAPrOpen(PMPrintSession *macPrintSession)
-#else
-OSStatus UMAPrOpen()
-#endif
+OSStatus UMAPrOpen(void *macPrintSession)
{
#if !TARGET_CARBON
OSErr err = noErr ;
if ( gPrOpenCounter == 1 )
{
#if PM_USE_SESSION_APIS
- err = PMCreateSession(macPrintSession) ;
+ err = PMCreateSession((PMPrintSession *)macPrintSession) ;
#else
err = PMBegin() ;
#endif
#endif
}
-#if TARGET_CARBON && PM_USE_SESSION_APIS
-OSStatus UMAPrClose(PMPrintSession *macPrintSession)
-#else
-OSStatus UMAPrClose()
-#endif
+OSStatus UMAPrClose(void *macPrintSession)
{
#if !TARGET_CARBON
OSErr err = noErr ;
if ( gPrOpenCounter == 1 )
{
#if PM_USE_SESSION_APIS
- err = PMRelease(*macPrintSession) ;
- *macPrintSession = kPMNoReference;
+ err = PMRelease(*(PMPrintSession *)macPrintSession) ;
+ *(PMPrintSession *)macPrintSession = kPMNoReference;
#else
err = PMEnd() ;
#endif