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
)
34 wxPrintDialog(wxWindow
*parent
, wxPrintDialogData
* data
= NULL
);
37 bool Create(wxWindow
*parent
, wxPrintDialogData
* data
= NULL
);
38 virtual int ShowModal(void);
40 inline wxPrintDialogData
& GetPrintDialogData(void) { return m_printDialogData
; }
41 inline wxPrintData
& GetPrintData(void) { return m_printDialogData
.GetPrintData(); }
42 virtual wxDC
*GetPrintDC(void);
45 wxPrintDialogData m_printDialogData
;
48 wxWindow
* m_dialogParent
;
51 class WXDLLEXPORT wxPageSetupDialog
: public wxDialog
53 DECLARE_DYNAMIC_CLASS(wxPageSetupDialog
)
56 wxPageSetupData m_pageSetupData
;
57 wxWindow
* m_dialogParent
;
59 wxPageSetupDialog(void);
60 wxPageSetupDialog(wxWindow
*parent
, wxPageSetupData
*data
= NULL
);
61 ~wxPageSetupDialog(void);
63 bool Create(wxWindow
*parent
, wxPageSetupData
*data
= NULL
);
64 virtual int ShowModal(void);
66 inline wxPageSetupData
& GetPageSetupData(void) { return m_pageSetupData
; }