]>
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 |
65571936 | 9 | // Licence: wxWindows licence |
2bda0e17 KB |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
bbcdf8bc JS |
12 | #ifndef _WX_PRINTDLG_H_ |
13 | #define _WX_PRINTDLG_H_ | |
2bda0e17 | 14 | |
12028905 | 15 | #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) |
2bda0e17 KB |
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" | |
c061373d | 23 | #include "wx/printdlg.h" |
2bda0e17 | 24 | |
2bda0e17 | 25 | class WXDLLEXPORT wxDC; |
103aec29 VZ |
26 | |
27 | // --------------------------------------------------------------------------- | |
28 | // wxPrinterDialog: the common dialog for printing. | |
29 | // --------------------------------------------------------------------------- | |
30 | ||
c061373d | 31 | class WXDLLEXPORT wxWindowsPrintDialog : public wxPrintDialogBase |
2bda0e17 | 32 | { |
7bcb11d3 | 33 | public: |
c061373d RR |
34 | wxWindowsPrintDialog(wxWindow *parent, wxPrintDialogData* data = NULL); |
35 | wxWindowsPrintDialog(wxWindow *parent, wxPrintData* data); | |
36 | virtual ~wxWindowsPrintDialog(); | |
2bda0e17 | 37 | |
103aec29 VZ |
38 | bool Create(wxWindow *parent, wxPrintDialogData* data = NULL); |
39 | virtual int ShowModal(); | |
2bda0e17 | 40 | |
103aec29 VZ |
41 | wxPrintDialogData& GetPrintDialogData() { return m_printDialogData; } |
42 | wxPrintData& GetPrintData() { return m_printDialogData.GetPrintData(); } | |
43 | virtual wxDC *GetPrintDC(); | |
7bcb11d3 | 44 | |
103aec29 VZ |
45 | wxPrintDialogData m_printDialogData; |
46 | wxDC* m_printerDC; | |
47 | bool m_destroyDC; | |
48 | wxWindow* m_dialogParent; | |
22f3361e | 49 | |
c061373d RR |
50 | private: |
51 | DECLARE_NO_COPY_CLASS(wxWindowsPrintDialog) | |
52 | DECLARE_CLASS(wxWindowsPrintDialog) | |
2bda0e17 KB |
53 | }; |
54 | ||
55 | class WXDLLEXPORT wxPageSetupDialog: public wxDialog | |
56 | { | |
103aec29 | 57 | DECLARE_DYNAMIC_CLASS(wxPageSetupDialog) |
2bda0e17 | 58 | |
103aec29 VZ |
59 | public: |
60 | wxPageSetupDialog(); | |
61 | wxPageSetupDialog(wxWindow *parent, wxPageSetupData *data = NULL); | |
62 | virtual ~wxPageSetupDialog(); | |
63 | ||
64 | bool Create(wxWindow *parent, wxPageSetupData *data = NULL); | |
65 | virtual int ShowModal(); | |
2bda0e17 | 66 | |
103aec29 | 67 | wxPageSetupData& GetPageSetupData() { return m_pageSetupData; } |
2bda0e17 | 68 | |
103aec29 VZ |
69 | private: |
70 | wxPageSetupData m_pageSetupData; | |
71 | wxWindow* m_dialogParent; | |
22f3361e VZ |
72 | |
73 | DECLARE_NO_COPY_CLASS(wxPageSetupDialog) | |
2bda0e17 KB |
74 | }; |
75 | ||
d427503c VZ |
76 | #endif // wxUSE_PRINTING_ARCHITECTURE |
77 | ||
2bda0e17 | 78 | #endif |
bbcdf8bc | 79 | // _WX_PRINTDLG_H_ |