X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5b781a6729859abc77e6ca5b1f81cbaad974a78f..928343657681447e416acf5d7574d7ef5b6d3a1d:/include/wx/cmndata.h diff --git a/include/wx/cmndata.h b/include/wx/cmndata.h index 49afce9415..2b4063f317 100644 --- a/include/wx/cmndata.h +++ b/include/wx/cmndata.h @@ -21,11 +21,14 @@ #include "wx/colour.h" #include "wx/gdicmn.h" -#if defined( __WXMAC__ ) && defined( TARGET_CARBON ) -#include +#if defined(__WXMAC__) && defined(TARGET_CARBON) && !defined(__UNIX__) + #if PM_USE_SESSION_APIS + #include + #endif + #include #endif -#if (defined(__WXMOTIF__) || defined(__WXGTK__) || defined(__WXPM__)) && wxUSE_POSTSCRIPT +#if (defined(__WXMOTIF__) || defined(__WXGTK__) || defined(__WXPM__) || defined(__WXMAC__)) && wxUSE_POSTSCRIPT class WXDLLEXPORT wxPrintSetupData; #endif @@ -169,7 +172,7 @@ class WXDLLEXPORT wxPrintData: public wxObject void operator=(const wxPrintData& data); // For compatibility -#if (defined(__WXMOTIF__) || defined(__WXGTK__) || defined(__WXPM__)) && wxUSE_POSTSCRIPT +#if (defined(__WXMOTIF__) || defined(__WXGTK__) || defined(__WXPM__) || defined(__WXMAC__)) && wxUSE_POSTSCRIPT void operator=(const wxPrintSetupData& setupData); #endif @@ -181,7 +184,7 @@ class WXDLLEXPORT wxPrintData: public wxObject void SetNativeData(void* data) { m_devMode = data; } void* GetNativeDataDevNames() const { return m_devNames; } void SetNativeDataDevNames(void* data) { m_devNames = data; } -#elif defined( __WXMAC__) +#elif defined(__WXMAC__) void ConvertToNative(); void ConvertFromNative(); #endif @@ -191,12 +194,12 @@ public: void* m_devMode; void* m_devNames; #elif defined( __WXMAC__ ) -#if TARGET_CARBON + #if TARGET_CARBON PMPageFormat m_macPageFormat ; PMPrintSettings m_macPrintSettings ; -#else + #else THPrint m_macPrintInfo ; -#endif + #endif #endif private: @@ -286,7 +289,7 @@ class WXDLLEXPORT wxPrintDialogData: public wxObject void ConvertFromNative(); void SetOwnerWindow(wxWindow* win); void* GetNativeData() const { return m_printDlgData; } -#elif defined( __WXMAC__) +#elif defined(__WXMAC__) void ConvertToNative(); void ConvertFromNative(); #endif @@ -375,7 +378,7 @@ public: void ConvertFromNative(); void SetOwnerWindow(wxWindow* win); void* GetNativeData() const { return m_pageSetupData; } -#elif defined( __WXMAC__) +#elif defined(__WXMAC__) void ConvertToNative(); void ConvertFromNative(); #endif