X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d6b9496a96223cc5164e5785485d7d622fd9b5e6..00cd8a958f1c032ac48bcc240ee4098f4c8bfa46:/include/wx/cmndata.h?ds=sidebyside diff --git a/include/wx/cmndata.h b/include/wx/cmndata.h index b8faa2b9a8..51d9ca2555 100644 --- a/include/wx/cmndata.h +++ b/include/wx/cmndata.h @@ -18,6 +18,7 @@ #include "wx/font.h" #include "wx/colour.h" +#include "wx/gdicmn.h" #if (defined(__WXMOTIF__) || defined(__WXGTK__)) && wxUSE_POSTSCRIPT class WXDLLEXPORT wxPrintSetupData; @@ -89,6 +90,7 @@ public: int maxSize; }; +#if wxUSE_PRINTING_ARCHITECTURE /* * wxPrintData * Encapsulates printer information (not printer dialog information) @@ -157,7 +159,7 @@ class WXDLLEXPORT wxPrintData: public wxObject void operator=(const wxPrintSetupData& setupData); #endif -#ifdef __WXMSW__ +#if defined(__WXMSW__) // Convert to/from the DEVMODE structure void ConvertToNative(); void ConvertFromNative(); @@ -316,6 +318,8 @@ public: // paper size id member as well. void SetPaperSize(const wxSize& sz); + void SetPaperId(wxPaperSize& id) { m_printData.SetPaperId(id); }; + // Sets the wxPrintData id, plus the paper width/height if found in the paper database. void SetPaperSize(wxPaperSize id); @@ -377,5 +381,7 @@ private: wxPrintData m_printData; }; +#endif // wxUSE_PRINTING_ARCHITECTURE + #endif // _WX_CMNDATA_H_BASE_