X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/519cb848a8f4c91c73421bb75314754284e593a4..bcb7cc7693846151a179c6f199105c19df2c77a2:/include/wx/mac/dcprint.h diff --git a/include/wx/mac/dcprint.h b/include/wx/mac/dcprint.h index 07f876fc85..b06714920c 100644 --- a/include/wx/mac/dcprint.h +++ b/include/wx/mac/dcprint.h @@ -24,6 +24,7 @@ class WXDLLEXPORT wxPrinterDC: public wxDC public: DECLARE_CLASS(wxPrinterDC) +#if wxUSE_PRINTING_ARCHITECTURE // Create a printer DC wxPrinterDC(const wxPrintData& printdata ); ~wxPrinterDC(); @@ -33,8 +34,17 @@ class WXDLLEXPORT wxPrinterDC: public wxDC virtual void StartPage(void) ; virtual void EndPage(void) ; protected : - TPPrPort m_macPrintPort ; - wxPrintData m_printData ; + #if TARGET_CARBON + #if PM_USE_SESSION_APIS + PMPrintSession m_macPrintSession; + #else + PMPrintContext m_macPrintPort ; + #endif + #else + TPPrPort m_macPrintPort ; + #endif + wxPrintData m_printData ; +#endif // wxUSE_PRINTING_ARCHITECTURE }; #endif