]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/printdlg.h
resizeable dialogs support
[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
JS
8// Copyright: (c) Julian Smart
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
22/*
23 * wxPrinterDialog
24 * The common dialog for printing.
25 */
26
27class WXDLLEXPORT wxDC;
28class 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
52class 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
bbcdf8bc 71 // _WX_PRINTDLG_H_