]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/pagedlg.tex
fixed Assign(fullpath, fullname)
[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
85f3749f 120Returns the left (x) and top (y) margins in millimetres.
a660d684 121
7bcb11d3 122\membersection{wxPageSetupDialogData::GetMarginBottomRight}\label{wxpagesetupdialogdatagetmarginbottomright}
a660d684 123
7bcb11d3 124\constfunc{wxPoint}{GetMarginBottomRight}{\void}
a660d684 125
85f3749f 126Returns the right (x) and bottom (y) margins in millimetres.
a660d684 127
7bcb11d3 128\membersection{wxPageSetupDialogData::GetMinMarginTopLeft}\label{wxpagesetupdialogdatagetminmargintopleft}
a660d684 129
7bcb11d3 130\constfunc{wxPoint}{GetMinMarginTopLeft}{\void}
a660d684 131
85f3749f
JS
132Returns the left (x) and top (y) minimum margins the user can enter (Windows only). Units
133are in millimetres
a660d684 134
7bcb11d3 135\membersection{wxPageSetupDialogData::GetMinMarginBottomRight}\label{wxpagesetupdialogdatagetminmarginbottomright}
a660d684 136
7bcb11d3 137\constfunc{wxPoint}{GetMinMarginBottomRight}{\void}
a660d684 138
85f3749f
JS
139Returns the right (x) and bottom (y) minimum margins the user can enter (Windows only). Units
140are in millimetres
a660d684 141
7bcb11d3 142\membersection{wxPageSetupDialogData::GetPaperId}\label{wxpagesetupdialogdatagetpaperid}
a660d684 143
7bcb11d3 144\constfunc{wxPaperSize}{GetPaperId}{\void}
a660d684 145
7bcb11d3 146Returns the paper id (stored in the internal wxPrintData object).
a660d684 147
7bcb11d3 148For further information, see \helpref{wxPrintData::SetPaperId}{wxprintdatasetpaperid}.
a660d684 149
7bcb11d3 150\membersection{wxPageSetupDialogData::GetPaperSize}\label{wxpagesetupdialogdatagetpapersize}
a660d684 151
7bcb11d3
JS
152\constfunc{wxSize}{GetPaperSize}{\void}
153
154Returns the paper size in millimetres.
155
156\membersection{wxPageSetupDialogData::GetPrintData}\label{wxpagesetupdialogdatagetprintdata}
157
158\func{wxPrintData\&}{GetPrintData}{\void}
159
160Returns a reference to the \helpref{print data}{wxprintdata} associated with this object.
161
162\membersection{wxPageSetupDialogData::SetDefaultInfo}\label{wxpagesetupdialogdatasetdefaultinfo}
163
164\func{void}{SetDefaultInfo}{\param{bool}{ flag}}
165
166Pass TRUE if the dialog will simply return default printer information (such as orientation)
a660d684
KB
167instead of showing a dialog. Windows only.
168
7bcb11d3 169\membersection{wxPageSetupDialogData::SetDefaultMinMargins}\label{wxpagesetupdialogdatasetdefaultminmargins}
a660d684 170
7bcb11d3 171\func{void}{SetDefaultMinMargins}{\param{bool}{ flag}}
a660d684 172
7bcb11d3 173Pass TRUE if the page setup dialog will take its minimum margin values from the currently
85f3749f 174selected printer properties. Windows only. Units are in millimetres
a660d684 175
7bcb11d3 176\membersection{wxPageSetupDialogData::SetMarginTopLeft}\label{wxpagesetupdialogdatasetmargintopleft}
a660d684
KB
177
178\func{void}{GetMarginTopLeft}{\param{const wxPoint\& }{pt}}
179
85f3749f 180Sets the left (x) and top (y) margins in millimetres.
a660d684 181
7bcb11d3 182\membersection{wxPageSetupDialogData::SetMarginBottomRight}\label{wxpagesetupdialogdatasetmarginbottomright}
a660d684
KB
183
184\func{void}{SetMarginBottomRight}{\param{const wxPoint\& }{pt}}
185
85f3749f 186Sets the right (x) and bottom (y) margins in millimetres.
a660d684 187
7bcb11d3 188\membersection{wxPageSetupDialogData::SetMinMarginTopLeft}\label{wxpagesetupdialogdatasetminmargintopleft}
a660d684
KB
189
190\func{void}{SetMinMarginTopLeft}{\param{const wxPoint\& }{pt}}
191
85f3749f
JS
192Sets the left (x) and top (y) minimum margins the user can enter (Windows only). Units are
193in millimetres.
a660d684 194
7bcb11d3 195\membersection{wxPageSetupDialogData::SetMinMarginBottomRight}\label{wxpagesetupdialogdatasetminmarginbottomright}
a660d684
KB
196
197\func{void}{SetMinMarginBottomRight}{\param{const wxPoint\& }{pt}}
198
85f3749f
JS
199Sets the right (x) and bottom (y) minimum margins the user can enter (Windows only). Units are
200in millimetres.
a660d684 201
7bcb11d3 202\membersection{wxPageSetupDialogData::SetPaperId}\label{wxpagesetupdialogdatasetpaperid}
a660d684 203
7bcb11d3 204\func{void}{SetPaperId}{\param{wxPaperSize\& }{id}}
a660d684 205
7bcb11d3 206Sets the paper size id. For further information, see \helpref{wxPrintData::SetPaperId}{wxprintdatasetpaperid}.
a660d684 207
7bcb11d3 208Calling this function overrides the explicit paper dimensions passed in \helpref{wxPageSetupDialogData::SetPaperSize}{wxpagesetupdialogdatasetpapersize}.
a660d684 209
7bcb11d3 210\membersection{wxPageSetupDialogData::SetPaperSize}\label{wxpagesetupdialogdatasetpapersize}
a660d684 211
7bcb11d3 212\func{void}{SetPaperSize}{\param{const wxSize\& }{size}}
a660d684 213
7bcb11d3
JS
214Sets the paper size in millimetres. If a corresponding paper id is found, it will be set in the
215internal wxPrintData object, otherwise the paper size overrides the paper id.
a660d684 216
7bcb11d3 217\membersection{wxPageSetupDialogData::SetPrintData}\label{wxpagesetupdialogdatasetprintdata}
a660d684 218
7bcb11d3
JS
219\func{void}{SetPrintData}{\param{const wxPrintData\&}{ printData}}
220
221Sets the \helpref{print data}{wxprintdata} associated with this object.
222
223\membersection{wxPageSetupDialogData::operator $=$}\label{wxpagesetupdialogdataassign}
224
225\func{void}{operator $=$}{\param{const wxPrintData\&}{ data}}
226
227Assigns print data to this object.
228
229\func{void}{operator $=$}{\param{const wxPageSetupDialogData\&}{ data}}
230
231Assigns page setup data to this object.
a660d684
KB
232
233\section{\class{wxPageSetupDialog}}\label{wxpagesetupdialog}
234
235This class represents the page setup common dialog. The page setup dialog is standard from
236Windows 95 on, replacing the print setup dialog (which is retained in Windows and wxWindows
237for backward compatibility). On Windows 95 and NT 4.0 and above, the page setup dialog is
238native to the windowing system, otherwise it is emulated.
239
240The page setup dialog contains controls for paper size (A4, A5 etc.), orientation (landscape
241or portrait), and controls for setting left, top, right and bottom margin sizes in millimetres.
7bcb11d3
JS
242
243When the dialog has been closed, you need to query the \helpref{wxPageSetupDialogData}{wxpagesetupdialogdata} object
a660d684
KB
244associated with the dialog.
245
246Note that the OK and Cancel buttons do not destroy the dialog; this must be done by the
247application.
248
249\wxheading{Derived from}
250
251\helpref{wxDialog}{wxdialog}\\
252\helpref{wxWindow}{wxwindow}\\
253\helpref{wxEvtHandler}{wxevthandler}\\
254\helpref{wxObject}{wxobject}
255
954b8ae6
JS
256\wxheading{Include files}
257
258<wx/printdlg.h>
259
a660d684
KB
260\wxheading{See also}
261
7bcb11d3 262\helpref{wxPrintDialog}{wxprintdialog}, \helpref{wxPageSetupDialogData}{wxpagesetupdialogdata}
a660d684
KB
263
264\latexignore{\rtfignore{\wxheading{Members}}}
265
266\membersection{wxPageSetupDialog::wxPageSetupDialog}
267
7bcb11d3 268\func{}{wxPageSetupDialog}{\param{wxWindow* }{parent}, \param{wxPageSetupDialogData* }{data = NULL}}
a660d684
KB
269
270Constructor. Pass a parent window, and optionally a pointer to a block of page setup
271data, which will be copied to the print dialog's internal data.
272
273\membersection{wxPageSetupDialog::\destruct{wxPageSetupDialog}}
274
275\func{}{\destruct{wxPageSetupDialog}}{\void}
276
277Destructor.
278
279\membersection{wxPageSetupDialog::GetPageSetupData}\label{wxpagesetupdialoggetpagesetupdata}
280
7bcb11d3 281\func{wxPageSetupDialogData\&}{GetPageSetupData}{\void}
a660d684 282
7bcb11d3 283Returns the \helpref{page setup data}{wxpagesetupdialogdata} associated with the dialog.
a660d684
KB
284
285\membersection{wxPageSetupDialog::ShowModal}\label{wxpagesetupdialogshowmodal}
286
287\func{int}{ShowModal}{\void}
288
289Shows the dialog, returning wxID\_OK if the user pressed OK, and wxID\_CANCEL
290otherwise.
291