]>
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 JS |
8 | // Copyright: (c) Julian Smart |
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 | ||
19 | #include "wx/dialog.h" | |
20 | #include "wx/cmndata.h" | |
21 | ||
22 | /* | |
23 | * wxPrinterDialog | |
24 | * The common dialog for printing. | |
25 | */ | |
26 | ||
27 | class WXDLLEXPORT wxDC; | |
28 | class WXDLLEXPORT wxPrintDialog: public wxDialog | |
29 | { | |
30 | DECLARE_DYNAMIC_CLASS(wxPrintDialog) | |
31 | ||
7bcb11d3 | 32 | public: |
2bda0e17 | 33 | wxPrintDialog(void); |
7bcb11d3 | 34 | wxPrintDialog(wxWindow *parent, wxPrintDialogData* data = NULL); |
2bda0e17 KB |
35 | ~wxPrintDialog(void); |
36 | ||
7bcb11d3 | 37 | bool Create(wxWindow *parent, wxPrintDialogData* data = NULL); |
2bda0e17 KB |
38 | virtual int ShowModal(void); |
39 | ||
7bcb11d3 JS |
40 | inline wxPrintDialogData& GetPrintDialogData(void) { return m_printDialogData; } |
41 | inline wxPrintData& GetPrintData(void) { return m_printDialogData.GetPrintData(); } | |
2bda0e17 | 42 | virtual wxDC *GetPrintDC(void); |
7bcb11d3 JS |
43 | |
44 | private: | |
45 | wxPrintDialogData m_printDialogData; | |
46 | wxDC* m_printerDC; | |
47 | bool m_destroyDC; | |
48 | wxWindow* m_dialogParent; | |
2bda0e17 KB |
49 | }; |
50 | ||
51 | class WXDLLEXPORT wxPageSetupDialog: public wxDialog | |
52 | { | |
53 | DECLARE_DYNAMIC_CLASS(wxPageSetupDialog) | |
54 | ||
55 | private: | |
56 | wxPageSetupData m_pageSetupData; | |
57 | wxWindow* m_dialogParent; | |
58 | public: | |
59 | wxPageSetupDialog(void); | |
60 | wxPageSetupDialog(wxWindow *parent, wxPageSetupData *data = NULL); | |
61 | ~wxPageSetupDialog(void); | |
62 | ||
63 | bool Create(wxWindow *parent, wxPageSetupData *data = NULL); | |
64 | virtual int ShowModal(void); | |
65 | ||
66 | inline wxPageSetupData& GetPageSetupData(void) { return m_pageSetupData; } | |
67 | }; | |
68 | ||
69 | #endif | |
bbcdf8bc | 70 | // _WX_PRINTDLG_H_ |