]> git.saurik.com Git - wxWidgets.git/blame - include/wx/printdlg.h
remove DoSetSize override, unneeded after r72001
[wxWidgets.git] / include / wx / printdlg.h
CommitLineData
99d80019
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/printdlg.h
3// Purpose: Base header and class for print dialogs
4// Author: Julian Smart
5// Modified by:
6// Created:
7// RCS-ID: $Id$
8// Copyright: (c) Julian Smart
9// Licence: wxWindows Licence
10/////////////////////////////////////////////////////////////////////////////
11
34138703
JS
12#ifndef _WX_PRINTDLG_H_BASE_
13#define _WX_PRINTDLG_H_BASE_
c801d85f 14
c061373d
RR
15#include "wx/defs.h"
16
17#if wxUSE_PRINTING_ARCHITECTURE
18
19#include "wx/event.h"
20#include "wx/dialog.h"
21#include "wx/intl.h"
22#include "wx/cmndata.h"
23
24
25// ---------------------------------------------------------------------------
08680429 26// wxPrintDialogBase: interface for the dialog for printing
c061373d
RR
27// ---------------------------------------------------------------------------
28
53a2db12 29class WXDLLIMPEXP_CORE wxPrintDialogBase : public wxDialog
c061373d
RR
30{
31public:
32 wxPrintDialogBase() { }
6ce8c562
VZ
33 wxPrintDialogBase(wxWindow *parent,
34 wxWindowID id = wxID_ANY,
35 const wxString &title = wxEmptyString,
36 const wxPoint &pos = wxDefaultPosition,
37 const wxSize &size = wxDefaultSize,
38 long style = wxDEFAULT_DIALOG_STYLE);
03647350 39
c061373d
RR
40 virtual wxPrintDialogData& GetPrintDialogData() = 0;
41 virtual wxPrintData& GetPrintData() = 0;
42 virtual wxDC *GetPrintDC() = 0;
03647350 43
c061373d
RR
44private:
45 DECLARE_ABSTRACT_CLASS(wxPrintDialogBase)
c0c133e1 46 wxDECLARE_NO_COPY_CLASS(wxPrintDialogBase);
c061373d
RR
47};
48
49// ---------------------------------------------------------------------------
08680429 50// wxPrintDialog: the dialog for printing.
c061373d
RR
51// ---------------------------------------------------------------------------
52
53a2db12 53class WXDLLIMPEXP_CORE wxPrintDialog : public wxObject
c061373d
RR
54{
55public:
56 wxPrintDialog(wxWindow *parent, wxPrintDialogData* data = NULL);
57 wxPrintDialog(wxWindow *parent, wxPrintData* data);
d3c7fc99 58 virtual ~wxPrintDialog();
c061373d
RR
59
60 virtual int ShowModal();
61
62 virtual wxPrintDialogData& GetPrintDialogData();
63 virtual wxPrintData& GetPrintData();
64 virtual wxDC *GetPrintDC();
03647350 65
c061373d
RR
66private:
67 wxPrintDialogBase *m_pimpl;
03647350 68
c061373d
RR
69private:
70 DECLARE_DYNAMIC_CLASS(wxPrintDialog)
c0c133e1 71 wxDECLARE_NO_COPY_CLASS(wxPrintDialog);
c061373d
RR
72};
73
08680429
RR
74// ---------------------------------------------------------------------------
75// wxPageSetupDialogBase: interface for the page setup dialog
76// ---------------------------------------------------------------------------
c061373d 77
53a2db12 78class WXDLLIMPEXP_CORE wxPageSetupDialogBase: public wxDialog
08680429
RR
79{
80public:
81 wxPageSetupDialogBase() { }
82 wxPageSetupDialogBase(wxWindow *parent,
83 wxWindowID id = wxID_ANY,
84 const wxString &title = wxEmptyString,
85 const wxPoint &pos = wxDefaultPosition,
86 const wxSize &size = wxDefaultSize,
87 long style = wxDEFAULT_DIALOG_STYLE);
88
89 virtual wxPageSetupDialogData& GetPageSetupDialogData() = 0;
90
91private:
92 DECLARE_ABSTRACT_CLASS(wxPageSetupDialogBase)
c0c133e1 93 wxDECLARE_NO_COPY_CLASS(wxPageSetupDialogBase);
08680429
RR
94};
95
96// ---------------------------------------------------------------------------
97// wxPageSetupDialog: the page setup dialog
98// ---------------------------------------------------------------------------
99
53a2db12 100class WXDLLIMPEXP_CORE wxPageSetupDialog: public wxObject
08680429
RR
101{
102public:
103 wxPageSetupDialog(wxWindow *parent, wxPageSetupDialogData *data = NULL);
d3c7fc99 104 virtual ~wxPageSetupDialog();
08680429
RR
105
106 int ShowModal();
107 wxPageSetupDialogData& GetPageSetupDialogData();
108 // old name
109 wxPageSetupDialogData& GetPageSetupData();
110
111private:
112 wxPageSetupDialogBase *m_pimpl;
03647350 113
08680429
RR
114private:
115 DECLARE_DYNAMIC_CLASS(wxPageSetupDialog)
c0c133e1 116 wxDECLARE_NO_COPY_CLASS(wxPageSetupDialog);
08680429 117};
42ff6409 118
c801d85f
KB
119#endif
120
121#endif
34138703 122 // _WX_PRINTDLG_H_BASE_