1 \section{\class{wxPageSetupData
}}\label{wxpagesetupdata
}
3 This class holds a variety of information related to
\helpref{wxPageSetupDialog
}{wxpagesetupdialog
}.
5 \wxheading{Derived from
}
7 \helpref{wxObject
}{wxobject
}
9 \wxheading{Include files
}
15 \helpref{wxPageSetupDialog
}{wxpagesetupdialog
}
17 \latexignore{\rtfignore{\wxheading{Members
}}}
19 \membersection{wxPageSetupData::wxPageSetupData
}
21 \func{}{wxPageSetupData
}{\void}
25 \membersection{wxPageSetupData::
\destruct{wxPageSetupData
}}
27 \func{}{\destruct{wxPageSetupData
}}{\void}
31 \membersection{wxPageSetupData::EnableHelp
}\label{wxpagesetupdataenablehelp
}
33 \func{void
}{EnableHelp
}{\param{bool
}{flag
}}
35 Enables or disables the `Help' button (Windows only).
37 \membersection{wxPageSetupData::EnableMargins
}\label{wxpagesetupdataenablemargins
}
39 \func{void
}{EnableMargins
}{\param{bool
}{flag
}}
41 Enables or disables the margin controls (Windows only).
43 \membersection{wxPageSetupData::EnableOrientation
}\label{wxpagesetupdataenableorientation
}
45 \func{void
}{EnableOrientation
}{\param{bool
}{flag
}}
47 Enables or disables the orientation control (Windows only).
49 \membersection{wxPageSetupData::EnablePaper
}\label{wxpagesetupdataenablepaper
}
51 \func{void
}{EnablePaper
}{\param{bool
}{flag
}}
53 Enables or disables the paper size control (Windows only).
55 \membersection{wxPageSetupData::EnablePrinter
}\label{wxpagesetupdataenableprinter
}
57 \func{void
}{EnablePrinter
}{\param{bool
}{flag
}}
59 Enables or disables the
{\bf Printer
} button, which invokes a printer setup dialog.
61 \membersection{wxPageSetupData::GetPaperSize
}\label{wxpagesetupdatagetpapersize
}
63 \func{wxPoint
}{GetPaperSize
}{\void}
65 Returns the paper size in millimetres.
67 \membersection{wxPageSetupData::GetMarginTopLeft
}\label{wxpagesetupdatagetmargintopleft
}
69 \func{wxPoint
}{GetMarginTopLeft
}{\void}
71 Returns the left (x) and top (y) margins.
73 \membersection{wxPageSetupData::GetMarginBottomRight
}\label{wxpagesetupdatagetmarginbottomright
}
75 \func{wxPoint
}{GetMarginBottomRight
}{\void}
77 Returns the right (x) and bottom (y) margins.
79 \membersection{wxPageSetupData::GetMinMarginTopLeft
}\label{wxpagesetupdatagetminmargintopleft
}
81 \func{wxPoint
}{GetMinMarginTopLeft
}{\void}
83 Returns the left (x) and top (y) minimum margins the user can enter (Windows only).
85 \membersection{wxPageSetupData::GetMinMarginBottomRight
}\label{wxpagesetupdatagetminmarginbottomright
}
87 \func{wxPoint
}{GetMinMarginBottomRight
}{\void}
89 Returns the right (x) and bottom (y) minimum margins the user can enter (Windows only).
91 \membersection{wxPageSetupData::GetOrientation
}\label{wxpagesetupdatagetorientation
}
93 \func{int
}{GetOrientation
}{\void}
95 Returns the orientation, which can be wxPORTRAIT or wxLANDSCAPE.
97 \membersection{wxPageSetupData::GetDefaultMinMargins
}\label{wxpagesetupdatagetdefaultminmargins
}
99 \func{bool
}{GetDefaultMinMargins
}{\void}
101 Returns TRUE if the page setup dialog will take its minimum margin values from the currently
102 selected printer properties. Windows only.
104 \membersection{wxPageSetupData::GetEnableMargins
}\label{wxpagesetupdatagetenablemargins
}
106 \func{bool
}{GetEnableMargins
}{\void}
108 Returns TRUE if the margin controls are enabled (Windows only).
110 \membersection{wxPageSetupData::GetEnableOrientation
}\label{wxpagesetupdatagetenableorientation
}
112 \func{bool
}{GetEnableOrientation
}{\void}
114 Returns TRUE if the orientation control is enabled (Windows only).
116 \membersection{wxPageSetupData::GetEnablePaper
}\label{wxpagesetupdatagetenablepaper
}
118 \func{bool
}{GetEnablePaper
}{\void}
120 Returns TRUE if the paper size control is enabled (Windows only).
122 \membersection{wxPageSetupData::GetEnablePrinter
}\label{wxpagesetupdatagetenableprinter
}
124 \func{bool
}{GetEnablePrinter
}{\void}
126 Returns TRUE if the printer setup button is enabled.
128 \membersection{wxPageSetupData::GetEnableHelp
}\label{wxpagesetupdatagetenablehelp
}
130 \func{bool
}{GetEnableHelp
}{\void}
132 Returns TRUE if the printer setup button is enabled.
134 \membersection{wxPageSetupData::GetDefaultInfo
}\label{wxpagesetupdatagetdefaultinfo
}
136 \func{bool
}{GetDefaultInfo
}{\void}
138 Returns TRUE if the dialog will simply return default printer information (such as orientation)
139 instead of showing a dialog. Windows only.
141 \membersection{wxPageSetupData::SetPaperSize
}\label{wxpagesetupdatasetpapersize
}
143 \func{void
}{SetPaperSize
}{\param{const wxPoint\&
}{size
}}
145 Sets the paper size in millimetres.
147 \membersection{wxPageSetupData::SetMarginTopLeft
}\label{wxpagesetupdatasetmargintopleft
}
149 \func{void
}{GetMarginTopLeft
}{\param{const wxPoint\&
}{pt
}}
151 Sets the left (x) and top (y) margins.
153 \membersection{wxPageSetupData::SetMarginBottomRight
}\label{wxpagesetupdatasetmarginbottomright
}
155 \func{void
}{SetMarginBottomRight
}{\param{const wxPoint\&
}{pt
}}
157 Sets the right (x) and bottom (y) margins.
159 \membersection{wxPageSetupData::SetMinMarginTopLeft
}\label{wxpagesetupdatasetminmargintopleft
}
161 \func{void
}{SetMinMarginTopLeft
}{\param{const wxPoint\&
}{pt
}}
163 Sets the left (x) and top (y) minimum margins the user can enter (Windows only).
165 \membersection{wxPageSetupData::SetMinMarginBottomRight
}\label{wxpagesetupdatasetminmarginbottomright
}
167 \func{void
}{SetMinMarginBottomRight
}{\param{const wxPoint\&
}{pt
}}
169 Sets the right (x) and bottom (y) minimum margins the user can enter (Windows only).
171 \membersection{wxPageSetupData::SetOrientation
}\label{wxpagesetupdatasetorientation
}
173 \func{void
}{SetOrientation
}{\param{int
}{orientation
}}
175 Sets the orientation, which can be wxPORTRAIT or wxLANDSCAPE.
177 \membersection{wxPageSetupData::SetDefaultMinMargins
}\label{wxpagesetupdatasetdefaultminmargins
}
179 \func{void
}{SetDefaultMinMargins
}{\param{bool
}{ flag
}}
181 Pass TRUE if the page setup dialog will take its minimum margin values from the currently
182 selected printer properties. Windows only.
184 \membersection{wxPageSetupData::SetDefaultInfo
}\label{wxpagesetupdatasetdefaultinfo
}
186 \func{void
}{SetDefaultInfo
}{\param{bool
}{ flag
}}
188 Pass TRUE if the dialog will simply return default printer information (such as orientation)
189 instead of showing a dialog. Windows only.
191 \section{\class{wxPageSetupDialog
}}\label{wxpagesetupdialog
}
193 This class represents the page setup common dialog. The page setup dialog is standard from
194 Windows
95 on, replacing the print setup dialog (which is retained in Windows and wxWindows
195 for backward compatibility). On Windows
95 and NT
4.0 and above, the page setup dialog is
196 native to the windowing system, otherwise it is emulated.
198 The page setup dialog contains controls for paper size (A4, A5 etc.), orientation (landscape
199 or portrait), and controls for setting left, top, right and bottom margin sizes in millimetres.
200 The page setup dialog does not set any global information (the exception being orientation
201 for PostScript printing) so you need to query the
\helpref{wxPageSetupData
}{wxpagesetupdata
} object
202 associated with the dialog.
204 Note that the OK and Cancel buttons do not destroy the dialog; this must be done by the
207 \wxheading{Derived from
}
209 \helpref{wxDialog
}{wxdialog
}\\
210 \helpref{wxWindow
}{wxwindow
}\\
211 \helpref{wxEvtHandler
}{wxevthandler
}\\
212 \helpref{wxObject
}{wxobject
}
214 \wxheading{Include files
}
220 \helpref{wxPrintDialog
}{wxprintdialog
},
\helpref{wxPageSetupData
}{wxpagesetupdata
}
222 \latexignore{\rtfignore{\wxheading{Members
}}}
224 \membersection{wxPageSetupDialog::wxPageSetupDialog
}
226 \func{}{wxPageSetupDialog
}{\param{wxWindow*
}{parent
},
\param{wxPageSetupData*
}{data = NULL
}}
228 Constructor. Pass a parent window, and optionally a pointer to a block of page setup
229 data, which will be copied to the print dialog's internal data.
231 \membersection{wxPageSetupDialog::
\destruct{wxPageSetupDialog
}}
233 \func{}{\destruct{wxPageSetupDialog
}}{\void}
237 \membersection{wxPageSetupDialog::GetPageSetupData
}\label{wxpagesetupdialoggetpagesetupdata
}
239 \func{wxPageSetupData\&
}{GetPageSetupData
}{\void}
241 Returns the
\helpref{page setup data
}{wxpagesetupdata
} associated with the dialog.
243 \membersection{wxPageSetupDialog::ShowModal
}\label{wxpagesetupdialogshowmodal
}
245 \func{int
}{ShowModal
}{\void}
247 Shows the dialog, returning wxID
\_OK if the user pressed OK, and wxID
\_CANCEL