1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxPrintDialog, wxPageSetupDialog classes
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_PRINTDLG_H_
13 #define _WX_PRINTDLG_H_
16 #pragma interface "printdlg.h"
19 #include "wx/dialog.h"
20 #include "wx/cmndata.h"
24 * The common dialog for printing.
27 class WXDLLEXPORT wxDC
;
28 class WXDLLEXPORT wxPrintDialog
: public wxDialog
30 DECLARE_DYNAMIC_CLASS(wxPrintDialog
)
33 wxPrintData printData
;
39 wxWindow
*dialogParent
;
42 wxPrintDialog(wxWindow
*parent
, wxPrintData
* data
= NULL
);
45 bool Create(wxWindow
*parent
, wxPrintData
* data
= NULL
);
46 virtual int ShowModal(void);
48 inline wxPrintData
& GetPrintData(void) { return printData
; }
49 virtual wxDC
*GetPrintDC(void);
52 class WXDLLEXPORT wxPageSetupDialog
: public wxDialog
54 DECLARE_DYNAMIC_CLASS(wxPageSetupDialog
)
57 wxPageSetupData m_pageSetupData
;
58 wxWindow
* m_dialogParent
;
60 wxPageSetupDialog(void);
61 wxPageSetupDialog(wxWindow
*parent
, wxPageSetupData
*data
= NULL
);
62 ~wxPageSetupDialog(void);
64 bool Create(wxWindow
*parent
, wxPageSetupData
*data
= NULL
);
65 virtual int ShowModal(void);
67 inline wxPageSetupData
& GetPageSetupData(void) { return m_pageSetupData
; }