]>
Commit | Line | Data |
---|---|---|
34138703 JS |
1 | #ifndef _WX_PRINTDLG_H_BASE_ |
2 | #define _WX_PRINTDLG_H_BASE_ | |
c801d85f | 3 | |
c061373d RR |
4 | #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) |
5 | #pragma interface "printdlg.h" | |
6 | #endif | |
7 | ||
8 | #include "wx/defs.h" | |
9 | ||
10 | #if wxUSE_PRINTING_ARCHITECTURE | |
11 | ||
12 | #include "wx/event.h" | |
13 | #include "wx/dialog.h" | |
14 | #include "wx/intl.h" | |
15 | #include "wx/cmndata.h" | |
16 | ||
17 | ||
18 | // --------------------------------------------------------------------------- | |
19 | // wxPrintDialogBase: interface for the common dialog for printing. | |
20 | // --------------------------------------------------------------------------- | |
21 | ||
22 | class WXDLLEXPORT wxPrintDialogBase : public wxDialog | |
23 | { | |
24 | public: | |
25 | wxPrintDialogBase() { } | |
26 | wxPrintDialogBase(wxWindow *parent, wxWindowID id = -1, const wxString &title = _("Print"), | |
27 | const wxPoint &pos = wxDefaultPosition, | |
28 | const wxSize &size = wxDefaultSize, | |
29 | long style = wxDEFAULT_DIALOG_STYLE ); | |
30 | ||
31 | virtual int ShowModal() = 0; | |
32 | ||
33 | virtual wxPrintDialogData& GetPrintDialogData() = 0; | |
34 | virtual wxPrintData& GetPrintData() = 0; | |
35 | virtual wxDC *GetPrintDC() = 0; | |
36 | ||
37 | private: | |
38 | DECLARE_ABSTRACT_CLASS(wxPrintDialogBase) | |
39 | DECLARE_NO_COPY_CLASS(wxPrintDialogBase) | |
40 | }; | |
41 | ||
42 | // --------------------------------------------------------------------------- | |
43 | // wxPrintDialog: the common dialog for printing. | |
44 | // --------------------------------------------------------------------------- | |
45 | ||
46 | class WXDLLEXPORT wxPrintDialog : public wxObject | |
47 | { | |
48 | public: | |
49 | wxPrintDialog(wxWindow *parent, wxPrintDialogData* data = NULL); | |
50 | wxPrintDialog(wxWindow *parent, wxPrintData* data); | |
51 | ~wxPrintDialog(); | |
52 | ||
53 | virtual int ShowModal(); | |
54 | ||
55 | virtual wxPrintDialogData& GetPrintDialogData(); | |
56 | virtual wxPrintData& GetPrintData(); | |
57 | virtual wxDC *GetPrintDC(); | |
58 | ||
59 | private: | |
60 | wxPrintDialogBase *m_pimpl; | |
61 | ||
62 | private: | |
63 | DECLARE_DYNAMIC_CLASS(wxPrintDialog) | |
64 | DECLARE_NO_COPY_CLASS(wxPrintDialog) | |
65 | }; | |
66 | ||
67 | #endif | |
68 | ||
12bdd77c | 69 | #if defined(__WXUNIVERSAL__) && (!defined(__WXMSW__) || wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW) |
2b5f62a0 VZ |
70 | #include "wx/generic/prntdlgg.h" |
71 | #elif defined(__WXMSW__) | |
c801d85f | 72 | #include "wx/msw/printdlg.h" |
2049ba38 | 73 | #elif defined(__WXMOTIF__) |
c801d85f | 74 | #include "wx/generic/prntdlgg.h" |
2049ba38 | 75 | #elif defined(__WXGTK__) |
c801d85f | 76 | #include "wx/generic/prntdlgg.h" |
83df96d6 JS |
77 | #elif defined(__WXX11__) |
78 | #include "wx/generic/prntdlgg.h" | |
95543830 VS |
79 | #elif defined(__WXMGL__) |
80 | #include "wx/generic/prntdlgg.h" | |
34138703 | 81 | #elif defined(__WXMAC__) |
42ff6409 | 82 | #include "wx/mac/printdlg.h" |
1777b9bb | 83 | #elif defined(__WXPM__) |
cdf1e714 | 84 | #include "wx/generic/prntdlgg.h" |
42ff6409 JS |
85 | #endif |
86 | ||
12bdd77c | 87 | #if (defined(__WXUNIVERSAL__) && (!defined(__WXMSW__) || wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW) ) || (!defined(__WXMSW__) && !defined(__WXMAC__)) |
42ff6409 | 88 | #define wxPrintSetupDialog wxGenericPrintSetupDialog |
42ff6409 | 89 | #define wxPageSetupDialog wxGenericPageSetupDialog |
c801d85f KB |
90 | #endif |
91 | ||
92 | #endif | |
34138703 | 93 | // _WX_PRINTDLG_H_BASE_ |