]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/pagedlg.tex
Several changes and updates
[wxWidgets.git] / docs / latex / wx / pagedlg.tex
CommitLineData
7bcb11d3 1\section{\class{wxPageSetupDialogData}}\label{wxpagesetupdialogdata}
a660d684
KB
2
3This class holds a variety of information related to \helpref{wxPageSetupDialog}{wxpagesetupdialog}.
4
7bcb11d3
JS
5It contains a \helpref{wxPrintData}{wxprintdata} member which is used to hold basic printer configuration data (as opposed to the
6user-interface configuration settings stored by wxPageSetupDialogData).
7
a660d684
KB
8\wxheading{Derived from}
9
10\helpref{wxObject}{wxobject}
11
954b8ae6
JS
12\wxheading{Include files}
13
14<wx/cmndata.h>
15
a660d684
KB
16\wxheading{See also}
17
18\helpref{wxPageSetupDialog}{wxpagesetupdialog}
19
20\latexignore{\rtfignore{\wxheading{Members}}}
21
7bcb11d3
JS
22\membersection{wxPageSetupDialogData::wxPageSetupDialogData}
23
24\func{}{wxPageSetupDialogData}{\void}
25
26Default constructor.
27
28\func{}{wxPageSetupDialogData}{\param{wxPageSetupDialogData\&}{ data}}
a660d684 29
7bcb11d3 30Copy constructor.
a660d684 31
7bcb11d3 32\func{}{wxPrintDialogData}{\param{wxPrintData\&}{ printData}}
a660d684 33
7bcb11d3 34Construct an object from a print dialog data object.
a660d684 35
7bcb11d3
JS
36\membersection{wxPageSetupDialogData::\destruct{wxPageSetupDialogData}}
37
38\func{}{\destruct{wxPageSetupDialogData}}{\void}
a660d684
KB
39
40Destructor.
41
7bcb11d3 42\membersection{wxPageSetupDialogData::EnableHelp}\label{wxpagesetupdialogdataenablehelp}
a660d684
KB
43
44\func{void}{EnableHelp}{\param{bool }{flag}}
45
46Enables or disables the `Help' button (Windows only).
47
7bcb11d3 48\membersection{wxPageSetupDialogData::EnableMargins}\label{wxpagesetupdialogdataenablemargins}
a660d684
KB
49
50\func{void}{EnableMargins}{\param{bool }{flag}}
51
52Enables or disables the margin controls (Windows only).
53
7bcb11d3 54\membersection{wxPageSetupDialogData::EnableOrientation}\label{wxpagesetupdialogdataenableorientation}
a660d684
KB
55
56\func{void}{EnableOrientation}{\param{bool }{flag}}
57
58Enables or disables the orientation control (Windows only).
59
7bcb11d3 60\membersection{wxPageSetupDialogData::EnablePaper}\label{wxpagesetupdialogdataenablepaper}
a660d684
KB
61
62\func{void}{EnablePaper}{\param{bool }{flag}}
63
64Enables or disables the paper size control (Windows only).
65
7bcb11d3 66\membersection{wxPageSetupDialogData::EnablePrinter}\label{wxpagesetupdialogdataenableprinter}
a660d684
KB
67
68\func{void}{EnablePrinter}{\param{bool }{flag}}
69
70Enables or disables the {\bf Printer} button, which invokes a printer setup dialog.
71
7bcb11d3 72\membersection{wxPageSetupDialogData::GetDefaultMinMargins}\label{wxpagesetupdialogdatagetdefaultminmargins}
a660d684 73
7bcb11d3 74\constfunc{bool}{GetDefaultMinMargins}{\void}
a660d684 75
7bcb11d3
JS
76Returns TRUE if the page setup dialog will take its minimum margin values from the currently
77selected printer properties. Windows only.
a660d684 78
7bcb11d3 79\membersection{wxPageSetupDialogData::GetEnableMargins}\label{wxpagesetupdialogdatagetenablemargins}
a660d684 80
7bcb11d3 81\constfunc{bool}{GetEnableMargins}{\void}
a660d684 82
7bcb11d3 83Returns TRUE if the margin controls are enabled (Windows only).
a660d684 84
7bcb11d3 85\membersection{wxPageSetupDialogData::GetEnableOrientation}\label{wxpagesetupdialogdatagetenableorientation}
a660d684 86
7bcb11d3 87\constfunc{bool}{GetEnableOrientation}{\void}
a660d684 88
7bcb11d3 89Returns TRUE if the orientation control is enabled (Windows only).
a660d684 90
7bcb11d3 91\membersection{wxPageSetupDialogData::GetEnablePaper}\label{wxpagesetupdialogdatagetenablepaper}
a660d684 92
7bcb11d3 93\constfunc{bool}{GetEnablePaper}{\void}
a660d684 94
7bcb11d3 95Returns TRUE if the paper size control is enabled (Windows only).
a660d684 96
7bcb11d3 97\membersection{wxPageSetupDialogData::GetEnablePrinter}\label{wxpagesetupdialogdatagetenableprinter}
a660d684 98
7bcb11d3 99\constfunc{bool}{GetEnablePrinter}{\void}
a660d684 100
7bcb11d3 101Returns TRUE if the printer setup button is enabled.
a660d684 102
7bcb11d3 103\membersection{wxPageSetupDialogData::GetEnableHelp}\label{wxpagesetupdialogdatagetenablehelp}
a660d684 104
7bcb11d3 105\constfunc{bool}{GetEnableHelp}{\void}
a660d684 106
7bcb11d3 107Returns TRUE if the printer setup button is enabled.
a660d684 108
7bcb11d3 109\membersection{wxPageSetupDialogData::GetDefaultInfo}\label{wxpagesetupdialogdatagetdefaultinfo}
a660d684 110
7bcb11d3 111\constfunc{bool}{GetDefaultInfo}{\void}
a660d684 112
7bcb11d3
JS
113Returns TRUE if the dialog will simply return default printer information (such as orientation)
114instead of showing a dialog. Windows only.
a660d684 115
7bcb11d3 116\membersection{wxPageSetupDialogData::GetMarginTopLeft}\label{wxpagesetupdialogdatagetmargintopleft}
a660d684 117
7bcb11d3 118\constfunc{wxPoint}{GetMarginTopLeft}{\void}
a660d684 119
7bcb11d3 120Returns the left (x) and top (y) margins.
a660d684 121
7bcb11d3 122\membersection{wxPageSetupDialogData::GetMarginBottomRight}\label{wxpagesetupdialogdatagetmarginbottomright}
a660d684 123
7bcb11d3 124\constfunc{wxPoint}{GetMarginBottomRight}{\void}
a660d684 125
7bcb11d3 126Returns the right (x) and bottom (y) margins.
a660d684 127
7bcb11d3 128\membersection{wxPageSetupDialogData::GetMinMarginTopLeft}\label{wxpagesetupdialogdatagetminmargintopleft}
a660d684 129
7bcb11d3 130\constfunc{wxPoint}{GetMinMarginTopLeft}{\void}
a660d684 131
7bcb11d3 132Returns the left (x) and top (y) minimum margins the user can enter (Windows only).
a660d684 133
7bcb11d3 134\membersection{wxPageSetupDialogData::GetMinMarginBottomRight}\label{wxpagesetupdialogdatagetminmarginbottomright}
a660d684 135
7bcb11d3 136\constfunc{wxPoint}{GetMinMarginBottomRight}{\void}
a660d684 137
7bcb11d3 138Returns the right (x) and bottom (y) minimum margins the user can enter (Windows only).
a660d684 139
7bcb11d3 140\membersection{wxPageSetupDialogData::GetPaperId}\label{wxpagesetupdialogdatagetpaperid}
a660d684 141
7bcb11d3 142\constfunc{wxPaperSize}{GetPaperId}{\void}
a660d684 143
7bcb11d3 144Returns the paper id (stored in the internal wxPrintData object).
a660d684 145
7bcb11d3 146For further information, see \helpref{wxPrintData::SetPaperId}{wxprintdatasetpaperid}.
a660d684 147
7bcb11d3 148\membersection{wxPageSetupDialogData::GetPaperSize}\label{wxpagesetupdialogdatagetpapersize}
a660d684 149
7bcb11d3
JS
150\constfunc{wxSize}{GetPaperSize}{\void}
151
152Returns the paper size in millimetres.
153
154\membersection{wxPageSetupDialogData::GetPrintData}\label{wxpagesetupdialogdatagetprintdata}
155
156\func{wxPrintData\&}{GetPrintData}{\void}
157
158Returns a reference to the \helpref{print data}{wxprintdata} associated with this object.
159
160\membersection{wxPageSetupDialogData::SetDefaultInfo}\label{wxpagesetupdialogdatasetdefaultinfo}
161
162\func{void}{SetDefaultInfo}{\param{bool}{ flag}}
163
164Pass TRUE if the dialog will simply return default printer information (such as orientation)
a660d684
KB
165instead of showing a dialog. Windows only.
166
7bcb11d3 167\membersection{wxPageSetupDialogData::SetDefaultMinMargins}\label{wxpagesetupdialogdatasetdefaultminmargins}
a660d684 168
7bcb11d3 169\func{void}{SetDefaultMinMargins}{\param{bool}{ flag}}
a660d684 170
7bcb11d3
JS
171Pass TRUE if the page setup dialog will take its minimum margin values from the currently
172selected printer properties. Windows only.
a660d684 173
7bcb11d3 174\membersection{wxPageSetupDialogData::SetMarginTopLeft}\label{wxpagesetupdialogdatasetmargintopleft}
a660d684
KB
175
176\func{void}{GetMarginTopLeft}{\param{const wxPoint\& }{pt}}
177
178Sets the left (x) and top (y) margins.
179
7bcb11d3 180\membersection{wxPageSetupDialogData::SetMarginBottomRight}\label{wxpagesetupdialogdatasetmarginbottomright}
a660d684
KB
181
182\func{void}{SetMarginBottomRight}{\param{const wxPoint\& }{pt}}
183
184Sets the right (x) and bottom (y) margins.
185
7bcb11d3 186\membersection{wxPageSetupDialogData::SetMinMarginTopLeft}\label{wxpagesetupdialogdatasetminmargintopleft}
a660d684
KB
187
188\func{void}{SetMinMarginTopLeft}{\param{const wxPoint\& }{pt}}
189
190Sets the left (x) and top (y) minimum margins the user can enter (Windows only).
191
7bcb11d3 192\membersection{wxPageSetupDialogData::SetMinMarginBottomRight}\label{wxpagesetupdialogdatasetminmarginbottomright}
a660d684
KB
193
194\func{void}{SetMinMarginBottomRight}{\param{const wxPoint\& }{pt}}
195
196Sets the right (x) and bottom (y) minimum margins the user can enter (Windows only).
197
7bcb11d3 198\membersection{wxPageSetupDialogData::SetPaperId}\label{wxpagesetupdialogdatasetpaperid}
a660d684 199
7bcb11d3 200\func{void}{SetPaperId}{\param{wxPaperSize\& }{id}}
a660d684 201
7bcb11d3 202Sets the paper size id. For further information, see \helpref{wxPrintData::SetPaperId}{wxprintdatasetpaperid}.
a660d684 203
7bcb11d3 204Calling this function overrides the explicit paper dimensions passed in \helpref{wxPageSetupDialogData::SetPaperSize}{wxpagesetupdialogdatasetpapersize}.
a660d684 205
7bcb11d3 206\membersection{wxPageSetupDialogData::SetPaperSize}\label{wxpagesetupdialogdatasetpapersize}
a660d684 207
7bcb11d3 208\func{void}{SetPaperSize}{\param{const wxSize\& }{size}}
a660d684 209
7bcb11d3
JS
210Sets the paper size in millimetres. If a corresponding paper id is found, it will be set in the
211internal wxPrintData object, otherwise the paper size overrides the paper id.
a660d684 212
7bcb11d3 213\membersection{wxPageSetupDialogData::SetPrintData}\label{wxpagesetupdialogdatasetprintdata}
a660d684 214
7bcb11d3
JS
215\func{void}{SetPrintData}{\param{const wxPrintData\&}{ printData}}
216
217Sets the \helpref{print data}{wxprintdata} associated with this object.
218
219\membersection{wxPageSetupDialogData::operator $=$}\label{wxpagesetupdialogdataassign}
220
221\func{void}{operator $=$}{\param{const wxPrintData\&}{ data}}
222
223Assigns print data to this object.
224
225\func{void}{operator $=$}{\param{const wxPageSetupDialogData\&}{ data}}
226
227Assigns page setup data to this object.
a660d684
KB
228
229\section{\class{wxPageSetupDialog}}\label{wxpagesetupdialog}
230
231This class represents the page setup common dialog. The page setup dialog is standard from
232Windows 95 on, replacing the print setup dialog (which is retained in Windows and wxWindows
233for backward compatibility). On Windows 95 and NT 4.0 and above, the page setup dialog is
234native to the windowing system, otherwise it is emulated.
235
236The page setup dialog contains controls for paper size (A4, A5 etc.), orientation (landscape
237or portrait), and controls for setting left, top, right and bottom margin sizes in millimetres.
7bcb11d3
JS
238
239When the dialog has been closed, you need to query the \helpref{wxPageSetupDialogData}{wxpagesetupdialogdata} object
a660d684
KB
240associated with the dialog.
241
242Note that the OK and Cancel buttons do not destroy the dialog; this must be done by the
243application.
244
245\wxheading{Derived from}
246
247\helpref{wxDialog}{wxdialog}\\
248\helpref{wxWindow}{wxwindow}\\
249\helpref{wxEvtHandler}{wxevthandler}\\
250\helpref{wxObject}{wxobject}
251
954b8ae6
JS
252\wxheading{Include files}
253
254<wx/printdlg.h>
255
a660d684
KB
256\wxheading{See also}
257
7bcb11d3 258\helpref{wxPrintDialog}{wxprintdialog}, \helpref{wxPageSetupDialogData}{wxpagesetupdialogdata}
a660d684
KB
259
260\latexignore{\rtfignore{\wxheading{Members}}}
261
262\membersection{wxPageSetupDialog::wxPageSetupDialog}
263
7bcb11d3 264\func{}{wxPageSetupDialog}{\param{wxWindow* }{parent}, \param{wxPageSetupDialogData* }{data = NULL}}
a660d684
KB
265
266Constructor. Pass a parent window, and optionally a pointer to a block of page setup
267data, which will be copied to the print dialog's internal data.
268
269\membersection{wxPageSetupDialog::\destruct{wxPageSetupDialog}}
270
271\func{}{\destruct{wxPageSetupDialog}}{\void}
272
273Destructor.
274
275\membersection{wxPageSetupDialog::GetPageSetupData}\label{wxpagesetupdialoggetpagesetupdata}
276
7bcb11d3 277\func{wxPageSetupDialogData\&}{GetPageSetupData}{\void}
a660d684 278
7bcb11d3 279Returns the \helpref{page setup data}{wxpagesetupdialogdata} associated with the dialog.
a660d684
KB
280
281\membersection{wxPageSetupDialog::ShowModal}\label{wxpagesetupdialogshowmodal}
282
283\func{int}{ShowModal}{\void}
284
285Shows the dialog, returning wxID\_OK if the user pressed OK, and wxID\_CANCEL
286otherwise.
287
288