]> git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/printdlg.h
Unicode support.
[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 class WXDLLEXPORT wxDC;
23
24 // ---------------------------------------------------------------------------
25 // wxPrinterDialog: the common dialog for printing.
26 // ---------------------------------------------------------------------------
27
28 class WXDLLEXPORT wxPrintDialog : public wxDialog
29 {
30 DECLARE_DYNAMIC_CLASS(wxPrintDialog)
31
32 public:
33 wxPrintDialog();
34 wxPrintDialog(wxWindow *parent, wxPrintDialogData* data = NULL);
35 wxPrintDialog(wxWindow *parent, wxPrintData* data);
36 virtual ~wxPrintDialog();
37
38 bool Create(wxWindow *parent, wxPrintDialogData* data = NULL);
39 virtual int ShowModal();
40
41 wxPrintDialogData& GetPrintDialogData() { return m_printDialogData; }
42 wxPrintData& GetPrintData() { return m_printDialogData.GetPrintData(); }
43 virtual wxDC *GetPrintDC();
44
45 private:
46 wxPrintDialogData m_printDialogData;
47 wxDC* m_printerDC;
48 bool m_destroyDC;
49 wxWindow* m_dialogParent;
50 };
51
52 class WXDLLEXPORT wxPageSetupDialog: public wxDialog
53 {
54 DECLARE_DYNAMIC_CLASS(wxPageSetupDialog)
55
56 public:
57 wxPageSetupDialog();
58 wxPageSetupDialog(wxWindow *parent, wxPageSetupData *data = NULL);
59 virtual ~wxPageSetupDialog();
60
61 bool Create(wxWindow *parent, wxPageSetupData *data = NULL);
62 virtual int ShowModal();
63
64 wxPageSetupData& GetPageSetupData() { return m_pageSetupData; }
65
66 private:
67 wxPageSetupData m_pageSetupData;
68 wxWindow* m_dialogParent;
69 };
70
71 #endif
72 // _WX_PRINTDLG_H_