1 #ifndef _WX_PRINTDLG_H_BASE_
2 #define _WX_PRINTDLG_H_BASE_
4 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
5 #pragma interface "printdlg.h"
10 #if wxUSE_PRINTING_ARCHITECTURE
13 #include "wx/dialog.h"
15 #include "wx/cmndata.h"
18 // ---------------------------------------------------------------------------
19 // wxPrintDialogBase: interface for the dialog for printing
20 // ---------------------------------------------------------------------------
22 class WXDLLEXPORT wxPrintDialogBase
: public wxDialog
25 wxPrintDialogBase() { }
26 wxPrintDialogBase(wxWindow
*parent
,
27 wxWindowID id
= wxID_ANY
,
28 const wxString
&title
= wxEmptyString
,
29 const wxPoint
&pos
= wxDefaultPosition
,
30 const wxSize
&size
= wxDefaultSize
,
31 long style
= wxDEFAULT_DIALOG_STYLE
);
33 virtual wxPrintDialogData
& GetPrintDialogData() = 0;
34 virtual wxPrintData
& GetPrintData() = 0;
35 virtual wxDC
*GetPrintDC() = 0;
38 DECLARE_ABSTRACT_CLASS(wxPrintDialogBase
)
39 DECLARE_NO_COPY_CLASS(wxPrintDialogBase
)
42 // ---------------------------------------------------------------------------
43 // wxPrintDialog: the dialog for printing.
44 // ---------------------------------------------------------------------------
46 class WXDLLEXPORT wxPrintDialog
: public wxObject
49 wxPrintDialog(wxWindow
*parent
, wxPrintDialogData
* data
= NULL
);
50 wxPrintDialog(wxWindow
*parent
, wxPrintData
* data
);
53 virtual int ShowModal();
55 virtual wxPrintDialogData
& GetPrintDialogData();
56 virtual wxPrintData
& GetPrintData();
57 virtual wxDC
*GetPrintDC();
60 wxPrintDialogBase
*m_pimpl
;
63 DECLARE_DYNAMIC_CLASS(wxPrintDialog
)
64 DECLARE_NO_COPY_CLASS(wxPrintDialog
)
67 // ---------------------------------------------------------------------------
68 // wxPageSetupDialogBase: interface for the page setup dialog
69 // ---------------------------------------------------------------------------
71 class WXDLLEXPORT wxPageSetupDialogBase
: public wxDialog
74 wxPageSetupDialogBase() { }
75 wxPageSetupDialogBase(wxWindow
*parent
,
76 wxWindowID id
= wxID_ANY
,
77 const wxString
&title
= wxEmptyString
,
78 const wxPoint
&pos
= wxDefaultPosition
,
79 const wxSize
&size
= wxDefaultSize
,
80 long style
= wxDEFAULT_DIALOG_STYLE
);
82 virtual wxPageSetupDialogData
& GetPageSetupDialogData() = 0;
85 DECLARE_ABSTRACT_CLASS(wxPageSetupDialogBase
)
86 DECLARE_NO_COPY_CLASS(wxPageSetupDialogBase
)
89 // ---------------------------------------------------------------------------
90 // wxPageSetupDialog: the page setup dialog
91 // ---------------------------------------------------------------------------
93 class WXDLLEXPORT wxPageSetupDialog
: public wxObject
96 wxPageSetupDialog(wxWindow
*parent
, wxPageSetupDialogData
*data
= NULL
);
100 wxPageSetupDialogData
& GetPageSetupDialogData();
102 wxPageSetupDialogData
& GetPageSetupData();
105 wxPageSetupDialogBase
*m_pimpl
;
108 DECLARE_DYNAMIC_CLASS(wxPageSetupDialog
)
109 DECLARE_NO_COPY_CLASS(wxPageSetupDialog
)
115 // _WX_PRINTDLG_H_BASE_