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 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
18 #pragma interface "printdlg.h"
21 #include "wx/dialog.h"
22 #include "wx/cmndata.h"
26 * The common dialog for printing.
29 class WXDLLEXPORT wxDC
;
30 class WXDLLEXPORT wxPrintDialog
: public wxDialog
32 DECLARE_DYNAMIC_CLASS(wxPrintDialog
)
36 wxPrintDialog(wxWindow
*parent
, wxPrintDialogData
* data
= NULL
);
37 wxPrintDialog(wxWindow
*parent
, wxPrintData
* data
);
40 bool Create(wxWindow
*parent
, wxPrintDialogData
* data
= NULL
);
41 virtual int ShowModal();
43 wxPrintDialogData
& GetPrintDialogData() { return m_printDialogData
; }
44 wxPrintData
& GetPrintData() { return m_printDialogData
.GetPrintData(); }
45 virtual wxDC
*GetPrintDC();
48 wxPrintDialogData m_printDialogData
;
51 wxWindow
* m_dialogParent
;
54 class WXDLLEXPORT wxPageSetupDialog
: public wxDialog
56 DECLARE_DYNAMIC_CLASS(wxPageSetupDialog
)
60 wxPageSetupDialog(wxWindow
*parent
, wxPageSetupData
*data
= NULL
);
63 bool Create(wxWindow
*parent
, wxPageSetupData
*data
= NULL
);
64 virtual int ShowModal();
66 inline wxPageSetupData
& GetPageSetupData() { return m_pageSetupData
; }
68 wxPageSetupData m_pageSetupData
;
69 wxWindow
* m_dialogParent
;