1 \section{\class{wxPageSetupDialogData
}}\label{wxpagesetupdialogdata
}
3 This class holds a variety of information related to
\helpref{wxPageSetupDialog
}{wxpagesetupdialog
}.
5 It contains a
\helpref{wxPrintData
}{wxprintdata
} member which is used to hold basic printer configuration data (as opposed to the
6 user-interface configuration settings stored by wxPageSetupDialogData).
8 \wxheading{Derived from
}
10 \helpref{wxObject
}{wxobject
}
12 \wxheading{Include files
}
18 \helpref{wxPageSetupDialog
}{wxpagesetupdialog
}
20 \latexignore{\rtfignore{\wxheading{Members
}}}
22 \membersection{wxPageSetupDialogData::wxPageSetupDialogData
}
24 \func{}{wxPageSetupDialogData
}{\void}
28 \func{}{wxPageSetupDialogData
}{\param{wxPageSetupDialogData\&
}{ data
}}
32 \func{}{wxPrintDialogData
}{\param{wxPrintData\&
}{ printData
}}
34 Construct an object from a print dialog data object.
36 \membersection{wxPageSetupDialogData::
\destruct{wxPageSetupDialogData
}}
38 \func{}{\destruct{wxPageSetupDialogData
}}{\void}
42 \membersection{wxPageSetupDialogData::EnableHelp
}\label{wxpagesetupdialogdataenablehelp
}
44 \func{void
}{EnableHelp
}{\param{bool
}{flag
}}
46 Enables or disables the `Help' button (Windows only).
48 \membersection{wxPageSetupDialogData::EnableMargins
}\label{wxpagesetupdialogdataenablemargins
}
50 \func{void
}{EnableMargins
}{\param{bool
}{flag
}}
52 Enables or disables the margin controls (Windows only).
54 \membersection{wxPageSetupDialogData::EnableOrientation
}\label{wxpagesetupdialogdataenableorientation
}
56 \func{void
}{EnableOrientation
}{\param{bool
}{flag
}}
58 Enables or disables the orientation control (Windows only).
60 \membersection{wxPageSetupDialogData::EnablePaper
}\label{wxpagesetupdialogdataenablepaper
}
62 \func{void
}{EnablePaper
}{\param{bool
}{flag
}}
64 Enables or disables the paper size control (Windows only).
66 \membersection{wxPageSetupDialogData::EnablePrinter
}\label{wxpagesetupdialogdataenableprinter
}
68 \func{void
}{EnablePrinter
}{\param{bool
}{flag
}}
70 Enables or disables the
{\bf Printer
} button, which invokes a printer setup dialog.
72 \membersection{wxPageSetupDialogData::GetDefaultMinMargins
}\label{wxpagesetupdialogdatagetdefaultminmargins
}
74 \constfunc{bool
}{GetDefaultMinMargins
}{\void}
76 Returns TRUE if the page setup dialog will take its minimum margin values from the currently
77 selected printer properties. Windows only.
79 \membersection{wxPageSetupDialogData::GetEnableMargins
}\label{wxpagesetupdialogdatagetenablemargins
}
81 \constfunc{bool
}{GetEnableMargins
}{\void}
83 Returns TRUE if the margin controls are enabled (Windows only).
85 \membersection{wxPageSetupDialogData::GetEnableOrientation
}\label{wxpagesetupdialogdatagetenableorientation
}
87 \constfunc{bool
}{GetEnableOrientation
}{\void}
89 Returns TRUE if the orientation control is enabled (Windows only).
91 \membersection{wxPageSetupDialogData::GetEnablePaper
}\label{wxpagesetupdialogdatagetenablepaper
}
93 \constfunc{bool
}{GetEnablePaper
}{\void}
95 Returns TRUE if the paper size control is enabled (Windows only).
97 \membersection{wxPageSetupDialogData::GetEnablePrinter
}\label{wxpagesetupdialogdatagetenableprinter
}
99 \constfunc{bool
}{GetEnablePrinter
}{\void}
101 Returns TRUE if the printer setup button is enabled.
103 \membersection{wxPageSetupDialogData::GetEnableHelp
}\label{wxpagesetupdialogdatagetenablehelp
}
105 \constfunc{bool
}{GetEnableHelp
}{\void}
107 Returns TRUE if the printer setup button is enabled.
109 \membersection{wxPageSetupDialogData::GetDefaultInfo
}\label{wxpagesetupdialogdatagetdefaultinfo
}
111 \constfunc{bool
}{GetDefaultInfo
}{\void}
113 Returns TRUE if the dialog will simply return default printer information (such as orientation)
114 instead of showing a dialog. Windows only.
116 \membersection{wxPageSetupDialogData::GetMarginTopLeft
}\label{wxpagesetupdialogdatagetmargintopleft
}
118 \constfunc{wxPoint
}{GetMarginTopLeft
}{\void}
120 Returns the left (x) and top (y) margins in millimetres.
122 \membersection{wxPageSetupDialogData::GetMarginBottomRight
}\label{wxpagesetupdialogdatagetmarginbottomright
}
124 \constfunc{wxPoint
}{GetMarginBottomRight
}{\void}
126 Returns the right (x) and bottom (y) margins in millimetres.
128 \membersection{wxPageSetupDialogData::GetMinMarginTopLeft
}\label{wxpagesetupdialogdatagetminmargintopleft
}
130 \constfunc{wxPoint
}{GetMinMarginTopLeft
}{\void}
132 Returns the left (x) and top (y) minimum margins the user can enter (Windows only). Units
135 \membersection{wxPageSetupDialogData::GetMinMarginBottomRight
}\label{wxpagesetupdialogdatagetminmarginbottomright
}
137 \constfunc{wxPoint
}{GetMinMarginBottomRight
}{\void}
139 Returns the right (x) and bottom (y) minimum margins the user can enter (Windows only). Units
142 \membersection{wxPageSetupDialogData::GetPaperId
}\label{wxpagesetupdialogdatagetpaperid
}
144 \constfunc{wxPaperSize
}{GetPaperId
}{\void}
146 Returns the paper id (stored in the internal wxPrintData object).
148 For further information, see
\helpref{wxPrintData::SetPaperId
}{wxprintdatasetpaperid
}.
150 \membersection{wxPageSetupDialogData::GetPaperSize
}\label{wxpagesetupdialogdatagetpapersize
}
152 \constfunc{wxSize
}{GetPaperSize
}{\void}
154 Returns the paper size in millimetres.
156 \membersection{wxPageSetupDialogData::GetPrintData
}\label{wxpagesetupdialogdatagetprintdata
}
158 \func{wxPrintData\&
}{GetPrintData
}{\void}
160 Returns a reference to the
\helpref{print data
}{wxprintdata
} associated with this object.
162 \membersection{wxPageSetupDialogData::SetDefaultInfo
}\label{wxpagesetupdialogdatasetdefaultinfo
}
164 \func{void
}{SetDefaultInfo
}{\param{bool
}{ flag
}}
166 Pass TRUE if the dialog will simply return default printer information (such as orientation)
167 instead of showing a dialog. Windows only.
169 \membersection{wxPageSetupDialogData::SetDefaultMinMargins
}\label{wxpagesetupdialogdatasetdefaultminmargins
}
171 \func{void
}{SetDefaultMinMargins
}{\param{bool
}{ flag
}}
173 Pass TRUE if the page setup dialog will take its minimum margin values from the currently
174 selected printer properties. Windows only. Units are in millimetres
176 \membersection{wxPageSetupDialogData::SetMarginTopLeft
}\label{wxpagesetupdialogdatasetmargintopleft
}
178 \func{void
}{GetMarginTopLeft
}{\param{const wxPoint\&
}{pt
}}
180 Sets the left (x) and top (y) margins in millimetres.
182 \membersection{wxPageSetupDialogData::SetMarginBottomRight
}\label{wxpagesetupdialogdatasetmarginbottomright
}
184 \func{void
}{SetMarginBottomRight
}{\param{const wxPoint\&
}{pt
}}
186 Sets the right (x) and bottom (y) margins in millimetres.
188 \membersection{wxPageSetupDialogData::SetMinMarginTopLeft
}\label{wxpagesetupdialogdatasetminmargintopleft
}
190 \func{void
}{SetMinMarginTopLeft
}{\param{const wxPoint\&
}{pt
}}
192 Sets the left (x) and top (y) minimum margins the user can enter (Windows only). Units are
195 \membersection{wxPageSetupDialogData::SetMinMarginBottomRight
}\label{wxpagesetupdialogdatasetminmarginbottomright
}
197 \func{void
}{SetMinMarginBottomRight
}{\param{const wxPoint\&
}{pt
}}
199 Sets the right (x) and bottom (y) minimum margins the user can enter (Windows only). Units are
202 \membersection{wxPageSetupDialogData::SetPaperId
}\label{wxpagesetupdialogdatasetpaperid
}
204 \func{void
}{SetPaperId
}{\param{wxPaperSize\&
}{id
}}
206 Sets the paper size id. For further information, see
\helpref{wxPrintData::SetPaperId
}{wxprintdatasetpaperid
}.
208 Calling this function overrides the explicit paper dimensions passed in
\helpref{wxPageSetupDialogData::SetPaperSize
}{wxpagesetupdialogdatasetpapersize
}.
210 \membersection{wxPageSetupDialogData::SetPaperSize
}\label{wxpagesetupdialogdatasetpapersize
}
212 \func{void
}{SetPaperSize
}{\param{const wxSize\&
}{size
}}
214 Sets the paper size in millimetres. If a corresponding paper id is found, it will be set in the
215 internal wxPrintData object, otherwise the paper size overrides the paper id.
217 \membersection{wxPageSetupDialogData::SetPrintData
}\label{wxpagesetupdialogdatasetprintdata
}
219 \func{void
}{SetPrintData
}{\param{const wxPrintData\&
}{ printData
}}
221 Sets the
\helpref{print data
}{wxprintdata
} associated with this object.
223 \membersection{wxPageSetupDialogData::operator $=$
}\label{wxpagesetupdialogdataassign
}
225 \func{void
}{operator $=$
}{\param{const wxPrintData\&
}{ data
}}
227 Assigns print data to this object.
229 \func{void
}{operator $=$
}{\param{const wxPageSetupDialogData\&
}{ data
}}
231 Assigns page setup data to this object.
233 \section{\class{wxPageSetupDialog
}}\label{wxpagesetupdialog
}
235 This class represents the page setup common dialog. The page setup dialog is standard from
236 Windows
95 on, replacing the print setup dialog (which is retained in Windows and wxWindows
237 for backward compatibility). On Windows
95 and NT
4.0 and above, the page setup dialog is
238 native to the windowing system, otherwise it is emulated.
240 The page setup dialog contains controls for paper size (A4, A5 etc.), orientation (landscape
241 or portrait), and controls for setting left, top, right and bottom margin sizes in millimetres.
243 When the dialog has been closed, you need to query the
\helpref{wxPageSetupDialogData
}{wxpagesetupdialogdata
} object
244 associated with the dialog.
246 Note that the OK and Cancel buttons do not destroy the dialog; this must be done by the
249 \wxheading{Derived from
}
251 \helpref{wxDialog
}{wxdialog
}\\
252 \helpref{wxWindow
}{wxwindow
}\\
253 \helpref{wxEvtHandler
}{wxevthandler
}\\
254 \helpref{wxObject
}{wxobject
}
256 \wxheading{Include files
}
262 \helpref{wxPrintDialog
}{wxprintdialog
},
\helpref{wxPageSetupDialogData
}{wxpagesetupdialogdata
}
264 \latexignore{\rtfignore{\wxheading{Members
}}}
266 \membersection{wxPageSetupDialog::wxPageSetupDialog
}
268 \func{}{wxPageSetupDialog
}{\param{wxWindow*
}{parent
},
\param{wxPageSetupDialogData*
}{data = NULL
}}
270 Constructor. Pass a parent window, and optionally a pointer to a block of page setup
271 data, which will be copied to the print dialog's internal data.
273 \membersection{wxPageSetupDialog::
\destruct{wxPageSetupDialog
}}
275 \func{}{\destruct{wxPageSetupDialog
}}{\void}
279 \membersection{wxPageSetupDialog::GetPageSetupData
}\label{wxpagesetupdialoggetpagesetupdata
}
281 \func{wxPageSetupDialogData\&
}{GetPageSetupData
}{\void}
283 Returns the
\helpref{page setup data
}{wxpagesetupdialogdata
} associated with the dialog.
285 \membersection{wxPageSetupDialog::ShowModal
}\label{wxpagesetupdialogshowmodal
}
287 \func{int
}{ShowModal
}{\void}
289 Shows the dialog, returning wxID
\_OK if the user pressed OK, and wxID
\_CANCEL