1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxPrintDialog, wxPageSetupDialog classes.
4 // Use generic, PostScript version if no
5 // platform-specific implementation.
6 // Author: Stefan Csomor
10 // Copyright: (c) Stefan Csomor
11 // Licence: wxWindows licence
12 /////////////////////////////////////////////////////////////////////////////
14 #ifndef _WX_PRINTDLG_H_
15 #define _WX_PRINTDLG_H_
17 #include "wx/dialog.h"
18 #include "wx/cmndata.h"
22 * The common dialog for printing.
25 class WXDLLEXPORT wxDC
;
26 class WXDLLEXPORT wxPrintDialog
: public wxDialog
28 DECLARE_DYNAMIC_CLASS(wxPrintDialog
)
32 wxPrintDialog(wxWindow
*parent
, wxPrintDialogData
* data
= NULL
);
33 wxPrintDialog(wxWindow
*parent
, wxPrintData
* data
);
34 virtual ~wxPrintDialog();
36 bool Create(wxWindow
*parent
, wxPrintDialogData
* data
= NULL
);
37 virtual int ShowModal();
39 wxPrintDialogData
& GetPrintDialogData() { return m_printDialogData
; }
40 wxPrintData
& GetPrintData() { return m_printDialogData
.GetPrintData(); }
41 virtual wxDC
*GetPrintDC();
44 wxPrintDialogData m_printDialogData
;
47 wxWindow
* m_dialogParent
;
50 class WXDLLEXPORT wxPageSetupDialog
: public wxDialog
52 DECLARE_DYNAMIC_CLASS(wxPageSetupDialog
)
56 wxPageSetupDialog(wxWindow
*parent
, wxPageSetupData
*data
= NULL
);
57 virtual ~wxPageSetupDialog();
59 bool Create(wxWindow
*parent
, wxPageSetupData
*data
= NULL
);
60 virtual int ShowModal();
62 inline wxPageSetupData
& GetPageSetupData() { return m_pageSetupData
; }
64 wxPageSetupData m_pageSetupData
;
65 wxWindow
* m_dialogParent
;