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_
15 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16 #pragma interface "printdlg.h"
19 #if wxUSE_PRINTING_ARCHITECTURE
21 #include "wx/dialog.h"
22 #include "wx/cmndata.h"
24 class WXDLLEXPORT wxDC
;
26 // ---------------------------------------------------------------------------
27 // wxPrinterDialog: the common dialog for printing.
28 // ---------------------------------------------------------------------------
30 class WXDLLEXPORT wxPrintDialog
: public wxDialog
32 DECLARE_DYNAMIC_CLASS(wxPrintDialog
)
36 wxPrintDialog(wxWindow
*parent
, wxPrintDialogData
* data
= NULL
);
37 wxPrintDialog(wxWindow
*parent
, wxPrintData
* data
);
38 virtual ~wxPrintDialog();
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
;
53 DECLARE_NO_COPY_CLASS(wxPrintDialog
)
56 class WXDLLEXPORT wxPageSetupDialog
: public wxDialog
58 DECLARE_DYNAMIC_CLASS(wxPageSetupDialog
)
62 wxPageSetupDialog(wxWindow
*parent
, wxPageSetupData
*data
= NULL
);
63 virtual ~wxPageSetupDialog();
65 bool Create(wxWindow
*parent
, wxPageSetupData
*data
= NULL
);
66 virtual int ShowModal();
68 wxPageSetupData
& GetPageSetupData() { return m_pageSetupData
; }
71 wxPageSetupData m_pageSetupData
;
72 wxWindow
* m_dialogParent
;
74 DECLARE_NO_COPY_CLASS(wxPageSetupDialog
)
77 #endif // wxUSE_PRINTING_ARCHITECTURE