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