]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msw/printdlg.h
wxTopLevelWindows is now a wxWindowList, better compatibility with the old
[wxWidgets.git] / include / wx / msw / printdlg.h
index cf14ef75b037e81f8b071ac2365ae122bc043e17..655a1ad3d6bc05a03bcc1ec8e6ff79e67c87241d 100644 (file)
@@ -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