]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/stubs/printdlg.h
WXFARPROC prototyped as `typedef int (__stdcall *WXFARPROC)()' (does Borland
[wxWidgets.git] / include / wx / stubs / printdlg.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: printdlg.h
3// Purpose: wxPrintDialog, wxPageSetupDialog classes
4// Author: AUTHOR
5// Modified by:
6// Created: ??/??/98
7// RCS-ID: $Id$
8// Copyright: (c) AUTHOR
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/*
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 public:
33 wxPrintDialog();
34 wxPrintDialog(wxWindow *parent, wxPrintData* data = NULL);
35 ~wxPrintDialog();
36
37 bool Create(wxWindow *parent, wxPrintData* data = NULL);
38 virtual int ShowModal();
39
40 inline wxPrintData& GetPrintData() { return m_printData; }
41 virtual wxDC *GetPrintDC();
42
43 private:
44 wxPrintData m_printData;
45 wxDC* m_printerDC;
46 bool m_destroyDC;
47 char* m_deviceName;
48 char* m_driverName;
49 char* m_portName;
50 wxWindow* m_dialogParent;
51};
52
53class WXDLLEXPORT wxPageSetupDialog: public wxDialog
54{
55 DECLARE_DYNAMIC_CLASS(wxPageSetupDialog)
56
57 private:
58 wxPageSetupData m_pageSetupData;
59 wxWindow* m_dialogParent;
60 public:
61 wxPageSetupDialog();
62 wxPageSetupDialog(wxWindow *parent, wxPageSetupData *data = NULL);
63 ~wxPageSetupDialog();
64
65 bool Create(wxWindow *parent, wxPageSetupData *data = NULL);
66 virtual int ShowModal();
67
68 inline wxPageSetupData& GetPageSetupData() { return m_pageSetupData; }
69};
70
71#endif
72 // _WX_PRINTDLG_H_