]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mac/printdlg.h
Added possibility of 2-step initialisation, and wxWIZARD_EX_HELPBUTTON style.
[wxWidgets.git] / include / wx / mac / printdlg.h
CommitLineData
0dbd6262
SC
1/////////////////////////////////////////////////////////////////////////////
2// Name: printdlg.h
3// Purpose: wxPrintDialog, wxPageSetupDialog classes.
4// Use generic, PostScript version if no
5// platform-specific implementation.
6// Author: AUTHOR
7// Modified by:
8// Created: ??/??/98
9// RCS-ID: $Id$
10// Copyright: (c) AUTHOR
11// Licence: wxWindows licence
12/////////////////////////////////////////////////////////////////////////////
13
14#ifndef _WX_PRINTDLG_H_
15#define _WX_PRINTDLG_H_
16
17#ifdef __GNUG__
18#pragma interface "printdlg.h"
19#endif
20
21#include "wx/dialog.h"
22#include "wx/cmndata.h"
23
24/*
25 * wxPrinterDialog
26 * The common dialog for printing.
27 */
28
29class WXDLLEXPORT wxDC;
30class WXDLLEXPORT wxPrintDialog: public wxDialog
31{
32 DECLARE_DYNAMIC_CLASS(wxPrintDialog)
33
34 public:
35 wxPrintDialog();
e7549107
SC
36 wxPrintDialog(wxWindow *parent, wxPrintDialogData* data = NULL);
37 wxPrintDialog(wxWindow *parent, wxPrintData* data );
0dbd6262
SC
38 ~wxPrintDialog();
39
e7549107 40 bool Create(wxWindow *parent, wxPrintDialogData* data = NULL);
0dbd6262
SC
41 virtual int ShowModal();
42
e7549107
SC
43 wxPrintDialogData& GetPrintDialogData() { return m_printDialogData; }
44 wxPrintData& GetPrintData() { return m_printDialogData.GetPrintData(); }
0dbd6262
SC
45 virtual wxDC *GetPrintDC();
46
47 private:
e7549107 48 wxPrintDialogData m_printDialogData;
0dbd6262 49 wxDC* m_printerDC;
e7549107 50 bool m_destroyDC;
0dbd6262
SC
51 wxWindow* m_dialogParent;
52};
53
54class WXDLLEXPORT wxPageSetupDialog: public wxDialog
55{
56 DECLARE_DYNAMIC_CLASS(wxPageSetupDialog)
57
0dbd6262
SC
58 public:
59 wxPageSetupDialog();
60 wxPageSetupDialog(wxWindow *parent, wxPageSetupData *data = NULL);
61 ~wxPageSetupDialog();
62
63 bool Create(wxWindow *parent, wxPageSetupData *data = NULL);
64 virtual int ShowModal();
65
66 inline wxPageSetupData& GetPageSetupData() { return m_pageSetupData; }
e7549107
SC
67 private:
68 wxPageSetupData m_pageSetupData;
69 wxWindow* m_dialogParent;
0dbd6262
SC
70};
71
72#endif
73 // _WX_PRINTDLG_H_