]>
Commit | Line | Data |
---|---|---|
0e320a79 DW |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: printdlg.h | |
54da4255 DW |
3 | // Purpose: wxPrintDialog, wxPageSetupDialog classes |
4 | // Author: Julian Smart | |
0e320a79 | 5 | // Modified by: |
54da4255 | 6 | // Created: 01/02/97 |
0e320a79 | 7 | // RCS-ID: $Id$ |
54da4255 DW |
8 | // Copyright: (c) Julian Smart |
9 | // Licence: wxWindows licence | |
0e320a79 DW |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
12 | #ifndef _WX_PRINTDLG_H_ | |
13 | #define _WX_PRINTDLG_H_ | |
14 | ||
15 | #ifdef __GNUG__ | |
16 | #pragma interface "printdlg.h" | |
17 | #endif | |
18 | ||
54da4255 DW |
19 | #if wxUSE_PRINTING_ARCHITECTURE |
20 | ||
0e320a79 DW |
21 | #include "wx/dialog.h" |
22 | #include "wx/cmndata.h" | |
23 | ||
0e320a79 | 24 | class WXDLLEXPORT wxDC; |
54da4255 DW |
25 | |
26 | // --------------------------------------------------------------------------- | |
27 | // wxPrinterDialog: the common dialog for printing. | |
28 | // --------------------------------------------------------------------------- | |
29 | ||
30 | class WXDLLEXPORT wxPrintDialog : public wxDialog | |
0e320a79 | 31 | { |
54da4255 DW |
32 | DECLARE_DYNAMIC_CLASS(wxPrintDialog) |
33 | ||
34 | public: | |
35 | wxPrintDialog(); | |
36 | wxPrintDialog(wxWindow *parent, wxPrintDialogData* data = NULL); | |
37 | wxPrintDialog(wxWindow *parent, wxPrintData* data); | |
38 | virtual ~wxPrintDialog(); | |
39 | ||
40 | bool Create(wxWindow *parent, wxPrintDialogData* data = NULL); | |
41 | virtual int ShowModal(); | |
42 | ||
43 | wxPrintDialogData& GetPrintDialogData() { return m_printDialogData; } | |
44 | wxPrintData& GetPrintData() { return m_printDialogData.GetPrintData(); } | |
45 | virtual wxDC *GetPrintDC(); | |
46 | ||
47 | private: | |
48 | wxPrintDialogData m_printDialogData; | |
49 | wxDC* m_printerDC; | |
50 | bool m_destroyDC; | |
51 | wxWindow* m_dialogParent; | |
0e320a79 DW |
52 | }; |
53 | ||
54 | class WXDLLEXPORT wxPageSetupDialog: public wxDialog | |
55 | { | |
54da4255 | 56 | DECLARE_DYNAMIC_CLASS(wxPageSetupDialog) |
0e320a79 | 57 | |
54da4255 DW |
58 | public: |
59 | wxPageSetupDialog(); | |
60 | wxPageSetupDialog(wxWindow *parent, wxPageSetupData *data = NULL); | |
61 | virtual ~wxPageSetupDialog(); | |
0e320a79 | 62 | |
54da4255 DW |
63 | bool Create(wxWindow *parent, wxPageSetupData *data = NULL); |
64 | virtual int ShowModal(); | |
0e320a79 | 65 | |
54da4255 | 66 | wxPageSetupData& GetPageSetupData() { return m_pageSetupData; } |
0e320a79 | 67 | |
54da4255 DW |
68 | private: |
69 | wxPageSetupData m_pageSetupData; | |
70 | wxWindow* m_dialogParent; | |
0e320a79 DW |
71 | }; |
72 | ||
54da4255 DW |
73 | #endif // wxUSE_PRINTING_ARCHITECTURE |
74 | ||
0e320a79 DW |
75 | #endif |
76 | // _WX_PRINTDLG_H_ |