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"
22 class WXDLLEXPORT wxDC
;
24 // ---------------------------------------------------------------------------
25 // wxPrinterDialog: the common dialog for printing.
26 // ---------------------------------------------------------------------------
28 class WXDLLEXPORT wxPrintDialog
: public wxDialog
30 DECLARE_DYNAMIC_CLASS(wxPrintDialog
)
34 wxPrintDialog(wxWindow
*parent
, wxPrintDialogData
* data
= NULL
);
35 wxPrintDialog(wxWindow
*parent
, wxPrintData
* data
);
36 virtual ~wxPrintDialog();
38 bool Create(wxWindow
*parent
, wxPrintDialogData
* data
= NULL
);
39 virtual int ShowModal();
41 wxPrintDialogData
& GetPrintDialogData() { return m_printDialogData
; }
42 wxPrintData
& GetPrintData() { return m_printDialogData
.GetPrintData(); }
43 virtual wxDC
*GetPrintDC();
46 wxPrintDialogData m_printDialogData
;
49 wxWindow
* m_dialogParent
;
52 class WXDLLEXPORT wxPageSetupDialog
: public wxDialog
54 DECLARE_DYNAMIC_CLASS(wxPageSetupDialog
)
58 wxPageSetupDialog(wxWindow
*parent
, wxPageSetupData
*data
= NULL
);
59 virtual ~wxPageSetupDialog();
61 bool Create(wxWindow
*parent
, wxPageSetupData
*data
= NULL
);
62 virtual int ShowModal();
64 wxPageSetupData
& GetPageSetupData() { return m_pageSetupData
; }
67 wxPageSetupData m_pageSetupData
;
68 wxWindow
* m_dialogParent
;