]> git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/printdlg.h
655a1ad3d6bc05a03bcc1ec8e6ff79e67c87241d
[wxWidgets.git] / include / wx / msw / printdlg.h
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$
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_PRINTDLG_H_
13 #define _WX_PRINTDLG_H_
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
32 public:
33 wxPrintDialog(void);
34 wxPrintDialog(wxWindow *parent, wxPrintDialogData* data = NULL);
35 ~wxPrintDialog(void);
36
37 bool Create(wxWindow *parent, wxPrintDialogData* data = NULL);
38 virtual int ShowModal(void);
39
40 inline wxPrintDialogData& GetPrintDialogData(void) { return m_printDialogData; }
41 inline wxPrintData& GetPrintData(void) { return m_printDialogData.GetPrintData(); }
42 virtual wxDC *GetPrintDC(void);
43
44 private:
45 wxPrintDialogData m_printDialogData;
46 wxDC* m_printerDC;
47 bool m_destroyDC;
48 wxWindow* m_dialogParent;
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
70 // _WX_PRINTDLG_H_