X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d6b9496a96223cc5164e5785485d7d622fd9b5e6..9df8c2df09b78461a52f8b6d12ee9f3475e8c3da:/include/wx/cmndata.h diff --git a/include/wx/cmndata.h b/include/wx/cmndata.h index b8faa2b9a8..2b298bd016 100644 --- a/include/wx/cmndata.h +++ b/include/wx/cmndata.h @@ -89,6 +89,7 @@ public: int maxSize; }; +#if wxUSE_PRINTING_ARCHITECTURE /* * wxPrintData * Encapsulates printer information (not printer dialog information) @@ -157,7 +158,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 +317,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 +380,7 @@ private: wxPrintData m_printData; }; +#endif // wxUSE_PRINTING_ARCHITECTURE + #endif // _WX_CMNDATA_H_BASE_