X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bbcdf8bc7ca806d8278c7cb6d09d5590378b67d8..e146b8c8bf449e2264ac3edc6a0228585c619dd1:/include/wx/msw/printdlg.h diff --git a/include/wx/msw/printdlg.h b/include/wx/msw/printdlg.h index cf14ef75b0..655a1ad3d6 100644 --- a/include/wx/msw/printdlg.h +++ b/include/wx/msw/printdlg.h @@ -29,24 +29,23 @@ class WXDLLEXPORT wxPrintDialog: public wxDialog { DECLARE_DYNAMIC_CLASS(wxPrintDialog) - private: - wxPrintData printData; - wxDC *printerDC; - bool destroyDC; - char *deviceName; - char *driverName; - char *portName; - wxWindow *dialogParent; - public: +public: wxPrintDialog(void); - wxPrintDialog(wxWindow *parent, wxPrintData* data = NULL); + wxPrintDialog(wxWindow *parent, wxPrintDialogData* data = NULL); ~wxPrintDialog(void); - bool Create(wxWindow *parent, wxPrintData* data = NULL); + bool Create(wxWindow *parent, wxPrintDialogData* data = NULL); virtual int ShowModal(void); - inline wxPrintData& GetPrintData(void) { return printData; } + inline wxPrintDialogData& GetPrintDialogData(void) { return m_printDialogData; } + inline wxPrintData& GetPrintData(void) { return m_printDialogData.GetPrintData(); } virtual wxDC *GetPrintDC(void); + +private: + wxPrintDialogData m_printDialogData; + wxDC* m_printerDC; + bool m_destroyDC; + wxWindow* m_dialogParent; }; class WXDLLEXPORT wxPageSetupDialog: public wxDialog