X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d6b9496a96223cc5164e5785485d7d622fd9b5e6..29ea4a290850e9ae79c258774fa22153a951ff7f:/include/wx/cmndata.h diff --git a/include/wx/cmndata.h b/include/wx/cmndata.h index b8faa2b9a8..ce6cf7c866 100644 --- a/include/wx/cmndata.h +++ b/include/wx/cmndata.h @@ -16,8 +16,10 @@ #pragma interface "cmndata.h" #endif +#include "wx/window.h" #include "wx/font.h" #include "wx/colour.h" +#include "wx/gdicmn.h" #if (defined(__WXMOTIF__) || defined(__WXGTK__)) && wxUSE_POSTSCRIPT class WXDLLEXPORT wxPrintSetupData; @@ -89,6 +91,7 @@ public: int maxSize; }; +#if wxUSE_PRINTING_ARCHITECTURE /* * wxPrintData * Encapsulates printer information (not printer dialog information) @@ -157,7 +160,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 +319,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 +382,7 @@ private: wxPrintData m_printData; }; +#endif // wxUSE_PRINTING_ARCHITECTURE + #endif // _WX_CMNDATA_H_BASE_