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.
122 \membersection{wxPageSetupDialogData::GetMarginBottomRight
}\label{wxpagesetupdialogdatagetmarginbottomright
}
124 \constfunc{wxPoint
}{GetMarginBottomRight
}{\void}
126 Returns the right (x) and bottom (y) margins.
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).
134 \membersection{wxPageSetupDialogData::GetMinMarginBottomRight
}\label{wxpagesetupdialogdatagetminmarginbottomright
}
136 \constfunc{wxPoint
}{GetMinMarginBottomRight
}{\void}
138 Returns the right (x) and bottom (y) minimum margins the user can enter (Windows only).
140 \membersection{wxPageSetupDialogData::GetPaperId
}\label{wxpagesetupdialogdatagetpaperid
}
142 \constfunc{wxPaperSize
}{GetPaperId
}{\void}
144 Returns the paper id (stored in the internal wxPrintData object).
146 For further information, see
\helpref{wxPrintData::SetPaperId
}{wxprintdatasetpaperid
}.
148 \membersection{wxPageSetupDialogData::GetPaperSize
}\label{wxpagesetupdialogdatagetpapersize
}
150 \constfunc{wxSize
}{GetPaperSize
}{\void}
152 Returns the paper size in millimetres.
154 \membersection{wxPageSetupDialogData::GetPrintData
}\label{wxpagesetupdialogdatagetprintdata
}
156 \func{wxPrintData\&
}{GetPrintData
}{\void}
158 Returns a reference to the
\helpref{print data
}{wxprintdata
} associated with this object.
160 \membersection{wxPageSetupDialogData::SetDefaultInfo
}\label{wxpagesetupdialogdatasetdefaultinfo
}
162 \func{void
}{SetDefaultInfo
}{\param{bool
}{ flag
}}
164 Pass TRUE if the dialog will simply return default printer information (such as orientation)
165 instead of showing a dialog. Windows only.
167 \membersection{wxPageSetupDialogData::SetDefaultMinMargins
}\label{wxpagesetupdialogdatasetdefaultminmargins
}
169 \func{void
}{SetDefaultMinMargins
}{\param{bool
}{ flag
}}
171 Pass TRUE if the page setup dialog will take its minimum margin values from the currently
172 selected printer properties. Windows only.
174 \membersection{wxPageSetupDialogData::SetMarginTopLeft
}\label{wxpagesetupdialogdatasetmargintopleft
}
176 \func{void
}{GetMarginTopLeft
}{\param{const wxPoint\&
}{pt
}}
178 Sets the left (x) and top (y) margins.
180 \membersection{wxPageSetupDialogData::SetMarginBottomRight
}\label{wxpagesetupdialogdatasetmarginbottomright
}
182 \func{void
}{SetMarginBottomRight
}{\param{const wxPoint\&
}{pt
}}
184 Sets the right (x) and bottom (y) margins.
186 \membersection{wxPageSetupDialogData::SetMinMarginTopLeft
}\label{wxpagesetupdialogdatasetminmargintopleft
}
188 \func{void
}{SetMinMarginTopLeft
}{\param{const wxPoint\&
}{pt
}}
190 Sets the left (x) and top (y) minimum margins the user can enter (Windows only).
192 \membersection{wxPageSetupDialogData::SetMinMarginBottomRight
}\label{wxpagesetupdialogdatasetminmarginbottomright
}
194 \func{void
}{SetMinMarginBottomRight
}{\param{const wxPoint\&
}{pt
}}
196 Sets the right (x) and bottom (y) minimum margins the user can enter (Windows only).
198 \membersection{wxPageSetupDialogData::SetPaperId
}\label{wxpagesetupdialogdatasetpaperid
}
200 \func{void
}{SetPaperId
}{\param{wxPaperSize\&
}{id
}}
202 Sets the paper size id. For further information, see
\helpref{wxPrintData::SetPaperId
}{wxprintdatasetpaperid
}.
204 Calling this function overrides the explicit paper dimensions passed in
\helpref{wxPageSetupDialogData::SetPaperSize
}{wxpagesetupdialogdatasetpapersize
}.
206 \membersection{wxPageSetupDialogData::SetPaperSize
}\label{wxpagesetupdialogdatasetpapersize
}
208 \func{void
}{SetPaperSize
}{\param{const wxSize\&
}{size
}}
210 Sets the paper size in millimetres. If a corresponding paper id is found, it will be set in the
211 internal wxPrintData object, otherwise the paper size overrides the paper id.
213 \membersection{wxPageSetupDialogData::SetPrintData
}\label{wxpagesetupdialogdatasetprintdata
}
215 \func{void
}{SetPrintData
}{\param{const wxPrintData\&
}{ printData
}}
217 Sets the
\helpref{print data
}{wxprintdata
} associated with this object.
219 \membersection{wxPageSetupDialogData::operator $=$
}\label{wxpagesetupdialogdataassign
}
221 \func{void
}{operator $=$
}{\param{const wxPrintData\&
}{ data
}}
223 Assigns print data to this object.
225 \func{void
}{operator $=$
}{\param{const wxPageSetupDialogData\&
}{ data
}}
227 Assigns page setup data to this object.
229 \section{\class{wxPageSetupDialog
}}\label{wxpagesetupdialog
}
231 This class represents the page setup common dialog. The page setup dialog is standard from
232 Windows
95 on, replacing the print setup dialog (which is retained in Windows and wxWindows
233 for backward compatibility). On Windows
95 and NT
4.0 and above, the page setup dialog is
234 native to the windowing system, otherwise it is emulated.
236 The page setup dialog contains controls for paper size (A4, A5 etc.), orientation (landscape
237 or portrait), and controls for setting left, top, right and bottom margin sizes in millimetres.
239 When the dialog has been closed, you need to query the
\helpref{wxPageSetupDialogData
}{wxpagesetupdialogdata
} object
240 associated with the dialog.
242 Note that the OK and Cancel buttons do not destroy the dialog; this must be done by the
245 \wxheading{Derived from
}
247 \helpref{wxDialog
}{wxdialog
}\\
248 \helpref{wxWindow
}{wxwindow
}\\
249 \helpref{wxEvtHandler
}{wxevthandler
}\\
250 \helpref{wxObject
}{wxobject
}
252 \wxheading{Include files
}
258 \helpref{wxPrintDialog
}{wxprintdialog
},
\helpref{wxPageSetupDialogData
}{wxpagesetupdialogdata
}
260 \latexignore{\rtfignore{\wxheading{Members
}}}
262 \membersection{wxPageSetupDialog::wxPageSetupDialog
}
264 \func{}{wxPageSetupDialog
}{\param{wxWindow*
}{parent
},
\param{wxPageSetupDialogData*
}{data = NULL
}}
266 Constructor. Pass a parent window, and optionally a pointer to a block of page setup
267 data, which will be copied to the print dialog's internal data.
269 \membersection{wxPageSetupDialog::
\destruct{wxPageSetupDialog
}}
271 \func{}{\destruct{wxPageSetupDialog
}}{\void}
275 \membersection{wxPageSetupDialog::GetPageSetupData
}\label{wxpagesetupdialoggetpagesetupdata
}
277 \func{wxPageSetupDialogData\&
}{GetPageSetupData
}{\void}
279 Returns the
\helpref{page setup data
}{wxpagesetupdialogdata
} associated with the dialog.
281 \membersection{wxPageSetupDialog::ShowModal
}\label{wxpagesetupdialogshowmodal
}
283 \func{int
}{ShowModal
}{\void}
285 Shows the dialog, returning wxID
\_OK if the user pressed OK, and wxID
\_CANCEL