From 0ab25937686d2e1c38f62073d84b627b25dda568 Mon Sep 17 00:00:00 2001 From: Gilles Depeyrot Date: Sat, 23 Jun 2001 17:13:03 +0000 Subject: [PATCH] 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 --- include/wx/mac/dcprint.h | 10 +++++++--- include/wx/mac/uma.h | 5 +++++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/include/wx/mac/dcprint.h b/include/wx/mac/dcprint.h index cd3722edee..f699f65351 100644 --- a/include/wx/mac/dcprint.h +++ b/include/wx/mac/dcprint.h @@ -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 }; diff --git a/include/wx/mac/uma.h b/include/wx/mac/uma.h index fd2017069e..01885e7519 100644 --- a/include/wx/mac/uma.h +++ b/include/wx/mac/uma.h @@ -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 -- 2.50.0