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