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