- DECLARE_DYNAMIC_CLASS(wxPrintDialog)
-
- private:
- wxPrintData printData;
- wxDC *printerDC;
- bool destroyDC;
- char *deviceName;
- char *driverName;
- char *portName;
- wxWindow *dialogParent;
- public:
- wxPrintDialog(void);
- wxPrintDialog(wxWindow *parent, wxPrintData* data = NULL);
- ~wxPrintDialog(void);
-
- bool Create(wxWindow *parent, wxPrintData* data = NULL);
- virtual int ShowModal(void);
-
- inline wxPrintData& GetPrintData(void) { return printData; }
- virtual wxDC *GetPrintDC(void);
+ DECLARE_DYNAMIC_CLASS(wxPrintDialog)
+
+public:
+ wxPrintDialog();
+ wxPrintDialog(wxWindow *parent, wxPrintDialogData* data = NULL);
+ wxPrintDialog(wxWindow *parent, wxPrintData* data);
+ virtual ~wxPrintDialog();
+
+ bool Create(wxWindow *parent, wxPrintDialogData* data = NULL);
+ virtual int ShowModal();
+
+ wxPrintDialogData& GetPrintDialogData() { return m_printDialogData; }
+ wxPrintData& GetPrintData() { return m_printDialogData.GetPrintData(); }
+ virtual wxDC *GetPrintDC();
+
+private:
+ wxPrintDialogData m_printDialogData;
+ wxDC* m_printerDC;
+ bool m_destroyDC;
+ wxWindow* m_dialogParent;