]> git.saurik.com Git - wxWidgets.git/blame - include/wx/printdlg.h
replaced OnCtlColor(7 params) with MSWControlColor(1 param)
[wxWidgets.git] / include / wx / printdlg.h
CommitLineData
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
22class WXDLLEXPORT wxPrintDialogBase : public wxDialog
23{
24public:
25 wxPrintDialogBase() { }
6ce8c562
VZ
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);
c061373d
RR
32
33 virtual int ShowModal() = 0;
34
35 virtual wxPrintDialogData& GetPrintDialogData() = 0;
36 virtual wxPrintData& GetPrintData() = 0;
37 virtual wxDC *GetPrintDC() = 0;
38
39private:
40 DECLARE_ABSTRACT_CLASS(wxPrintDialogBase)
41 DECLARE_NO_COPY_CLASS(wxPrintDialogBase)
42};
43
44// ---------------------------------------------------------------------------
45// wxPrintDialog: the common dialog for printing.
46// ---------------------------------------------------------------------------
47
48class WXDLLEXPORT wxPrintDialog : public wxObject
49{
50public:
51 wxPrintDialog(wxWindow *parent, wxPrintDialogData* data = NULL);
52 wxPrintDialog(wxWindow *parent, wxPrintData* data);
53 ~wxPrintDialog();
54
55 virtual int ShowModal();
56
57 virtual wxPrintDialogData& GetPrintDialogData();
58 virtual wxPrintData& GetPrintData();
59 virtual wxDC *GetPrintDC();
60
61private:
62 wxPrintDialogBase *m_pimpl;
63
64private:
65 DECLARE_DYNAMIC_CLASS(wxPrintDialog)
66 DECLARE_NO_COPY_CLASS(wxPrintDialog)
67};
68
69#endif
70
12bdd77c 71#if defined(__WXUNIVERSAL__) && (!defined(__WXMSW__) || wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW)
2b5f62a0 72#include "wx/generic/prntdlgg.h"
ffecfa5a
JS
73#elif defined(__PALMOS__)
74#include "wx/palmos/printdlg.h"
2b5f62a0 75#elif defined(__WXMSW__)
c801d85f 76#include "wx/msw/printdlg.h"
2049ba38 77#elif defined(__WXMOTIF__)
c801d85f 78#include "wx/generic/prntdlgg.h"
2049ba38 79#elif defined(__WXGTK__)
c801d85f 80#include "wx/generic/prntdlgg.h"
83df96d6
JS
81#elif defined(__WXX11__)
82#include "wx/generic/prntdlgg.h"
95543830
VS
83#elif defined(__WXMGL__)
84#include "wx/generic/prntdlgg.h"
34138703 85#elif defined(__WXMAC__)
42ff6409 86#include "wx/mac/printdlg.h"
1777b9bb 87#elif defined(__WXPM__)
cdf1e714 88#include "wx/generic/prntdlgg.h"
42ff6409
JS
89#endif
90
12bdd77c 91#if (defined(__WXUNIVERSAL__) && (!defined(__WXMSW__) || wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW) ) || (!defined(__WXMSW__) && !defined(__WXMAC__))
42ff6409 92#define wxPrintSetupDialog wxGenericPrintSetupDialog
42ff6409 93#define wxPageSetupDialog wxGenericPageSetupDialog
c801d85f
KB
94#endif
95
96#endif
34138703 97 // _WX_PRINTDLG_H_BASE_