]> git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/printdlg.h
now compiles with USE_XPM_IN_MSW on
[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 and Markus Holzem
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef __PRINTDLGH__
13 #define __PRINTDLGH__
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 private:
33 wxPrintData printData;
34 wxDC *printerDC;
35 bool destroyDC;
36 char *deviceName;
37 char *driverName;
38 char *portName;
39 wxWindow *dialogParent;
40 public:
41 wxPrintDialog(void);
42 wxPrintDialog(wxWindow *parent, wxPrintData* data = NULL);
43 ~wxPrintDialog(void);
44
45 bool Create(wxWindow *parent, wxPrintData* data = NULL);
46 virtual int ShowModal(void);
47
48 inline wxPrintData& GetPrintData(void) { return printData; }
49 virtual wxDC *GetPrintDC(void);
50 };
51
52 class WXDLLEXPORT wxPageSetupDialog: public wxDialog
53 {
54 DECLARE_DYNAMIC_CLASS(wxPageSetupDialog)
55
56 private:
57 wxPageSetupData m_pageSetupData;
58 wxWindow* m_dialogParent;
59 public:
60 wxPageSetupDialog(void);
61 wxPageSetupDialog(wxWindow *parent, wxPageSetupData *data = NULL);
62 ~wxPageSetupDialog(void);
63
64 bool Create(wxWindow *parent, wxPageSetupData *data = NULL);
65 virtual int ShowModal(void);
66
67 inline wxPageSetupData& GetPageSetupData(void) { return m_pageSetupData; }
68 };
69
70 #endif
71 // __PRINTDLGH__