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