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