use Print Manager session APIs if PM_USE_SESSION_APIS is true

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10652 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Gilles Depeyrot
2001-06-23 17:13:03 +00:00
parent 09b7e6184a
commit 0ab2593768
2 changed files with 12 additions and 3 deletions

View File

@@ -35,11 +35,15 @@ class WXDLLEXPORT wxPrinterDC: public wxDC
virtual void EndPage(void) ;
protected :
#if TARGET_CARBON
PMPrintContext m_macPrintPort ;
#if PM_USE_SESSION_APIS
PMPrintSession m_macPrintPort ;
#else
PMPrintContext m_macPrintPort ;
#endif
#else
TPPrPort m_macPrintPort ;
TPPrPort m_macPrintPort ;
#endif
wxPrintData m_printData ;
wxPrintData m_printData ;
#endif // wxUSE_PRINTING_ARCHITECTURE
};

View File

@@ -82,8 +82,13 @@ void UMADrawMenuBar() ;
void UMAShowWatchCursor() ;
void UMAShowArrowCursor() ;
#if PM_USE_SESSION_APIS
OSStatus UMAPrOpen(PMPrintSession *macPrintPort) ;
OSStatus UMAPrClose(PMPrintSession *macPrintPort) ;
#else
OSStatus UMAPrOpen() ;
OSStatus UMAPrClose() ;
#endif
// window manager