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 common 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 int ShowModal() = 0;
35 virtual wxPrintDialogData
& GetPrintDialogData() = 0;
36 virtual wxPrintData
& GetPrintData() = 0;
37 virtual wxDC
*GetPrintDC() = 0;
40 DECLARE_ABSTRACT_CLASS(wxPrintDialogBase
)
41 DECLARE_NO_COPY_CLASS(wxPrintDialogBase
)
44 // ---------------------------------------------------------------------------
45 // wxPrintDialog: the common dialog for printing.
46 // ---------------------------------------------------------------------------
48 class WXDLLEXPORT wxPrintDialog
: public wxObject
51 wxPrintDialog(wxWindow
*parent
, wxPrintDialogData
* data
= NULL
);
52 wxPrintDialog(wxWindow
*parent
, wxPrintData
* data
);
55 virtual int ShowModal();
57 virtual wxPrintDialogData
& GetPrintDialogData();
58 virtual wxPrintData
& GetPrintData();
59 virtual wxDC
*GetPrintDC();
62 wxPrintDialogBase
*m_pimpl
;
65 DECLARE_DYNAMIC_CLASS(wxPrintDialog
)
66 DECLARE_NO_COPY_CLASS(wxPrintDialog
)
71 #if defined(__WXUNIVERSAL__) && (!defined(__WXMSW__) || wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW)
72 #include "wx/generic/prntdlgg.h"
73 #elif defined(__PALMOS__)
74 #include "wx/palmos/printdlg.h"
75 #elif defined(__WXMSW__)
76 #include "wx/msw/printdlg.h"
77 #elif defined(__WXMOTIF__)
78 #include "wx/generic/prntdlgg.h"
79 #elif defined(__WXGTK__)
80 #include "wx/generic/prntdlgg.h"
81 #elif defined(__WXX11__)
82 #include "wx/generic/prntdlgg.h"
83 #elif defined(__WXMGL__)
84 #include "wx/generic/prntdlgg.h"
85 #elif defined(__WXMAC__)
86 #include "wx/mac/printdlg.h"
87 #elif defined(__WXPM__)
88 #include "wx/generic/prntdlgg.h"
91 #if (defined(__WXUNIVERSAL__) && (!defined(__WXMSW__) || wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW) ) || (!defined(__WXMSW__) && !defined(__WXMAC__))
92 #define wxPrintSetupDialog wxGenericPrintSetupDialog
93 #define wxPageSetupDialog wxGenericPageSetupDialog
97 // _WX_PRINTDLG_H_BASE_