1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248
|
<HTML>
<head><title>wxPageSetupData</title></head>
<BODY BGCOLOR=#FFFFFF>
<A NAME="wxpagesetupdata"></A><CENTER>
<A HREF="wx.htm"><img align=center src="contents.gif" BORDER=0 ALT="Contents"></A> <A HREF="wx22.htm#classref"><img align=center src="up.gif" BORDER=0 ALT="Up"></A> <A HREF="wx160.htm#wxoutputstream"><img align=center src="back.gif" BORDER=0 ALT="Previous"></A> <A HREF="wx162.htm#wxpagesetupdialog"><img align=center src="forward.gif" BORDER=0 ALT="Next"></A> </CENTER><HR>
<H2>wxPageSetupData</H2>
<P>
This class holds a variety of information related to <A HREF="wx162.htm#wxpagesetupdialog">wxPageSetupDialog</A>.<P>
<B><FONT COLOR="#FF0000">Derived from</FONT></B><P>
<A HREF="wx158.htm#wxobject">wxObject</A><P>
<B><FONT COLOR="#FF0000">Include files</FONT></B><P>
<wx/cmndata.h><P>
<B><FONT COLOR="#FF0000">See also</FONT></B><P>
<A HREF="wx162.htm#wxpagesetupdialog">wxPageSetupDialog</A><P>
<B><FONT COLOR="#FF0000">Members</FONT></B><P>
<A HREF="#topic628">wxPageSetupData::wxPageSetupData</A><BR>
<A HREF="#topic629">wxPageSetupData::~wxPageSetupData</A><BR>
<A HREF="#wxpagesetupdataenablehelp">wxPageSetupData::EnableHelp</A><BR>
<A HREF="#wxpagesetupdataenablemargins">wxPageSetupData::EnableMargins</A><BR>
<A HREF="#wxpagesetupdataenableorientation">wxPageSetupData::EnableOrientation</A><BR>
<A HREF="#wxpagesetupdataenablepaper">wxPageSetupData::EnablePaper</A><BR>
<A HREF="#wxpagesetupdataenableprinter">wxPageSetupData::EnablePrinter</A><BR>
<A HREF="#wxpagesetupdatagetpapersize">wxPageSetupData::GetPaperSize</A><BR>
<A HREF="#wxpagesetupdatagetmargintopleft">wxPageSetupData::GetMarginTopLeft</A><BR>
<A HREF="#wxpagesetupdatagetmarginbottomright">wxPageSetupData::GetMarginBottomRight</A><BR>
<A HREF="#wxpagesetupdatagetminmargintopleft">wxPageSetupData::GetMinMarginTopLeft</A><BR>
<A HREF="#wxpagesetupdatagetminmarginbottomright">wxPageSetupData::GetMinMarginBottomRight</A><BR>
<A HREF="#wxpagesetupdatagetorientation">wxPageSetupData::GetOrientation</A><BR>
<A HREF="#wxpagesetupdatagetdefaultminmargins">wxPageSetupData::GetDefaultMinMargins</A><BR>
<A HREF="#wxpagesetupdatagetenablemargins">wxPageSetupData::GetEnableMargins</A><BR>
<A HREF="#wxpagesetupdatagetenableorientation">wxPageSetupData::GetEnableOrientation</A><BR>
<A HREF="#wxpagesetupdatagetenablepaper">wxPageSetupData::GetEnablePaper</A><BR>
<A HREF="#wxpagesetupdatagetenableprinter">wxPageSetupData::GetEnablePrinter</A><BR>
<A HREF="#wxpagesetupdatagetenablehelp">wxPageSetupData::GetEnableHelp</A><BR>
<A HREF="#wxpagesetupdatagetdefaultinfo">wxPageSetupData::GetDefaultInfo</A><BR>
<A HREF="#wxpagesetupdatasetpapersize">wxPageSetupData::SetPaperSize</A><BR>
<A HREF="#wxpagesetupdatasetmargintopleft">wxPageSetupData::SetMarginTopLeft</A><BR>
<A HREF="#wxpagesetupdatasetmarginbottomright">wxPageSetupData::SetMarginBottomRight</A><BR>
<A HREF="#wxpagesetupdatasetminmargintopleft">wxPageSetupData::SetMinMarginTopLeft</A><BR>
<A HREF="#wxpagesetupdatasetminmarginbottomright">wxPageSetupData::SetMinMarginBottomRight</A><BR>
<A HREF="#wxpagesetupdatasetorientation">wxPageSetupData::SetOrientation</A><BR>
<A HREF="#wxpagesetupdatasetdefaultminmargins">wxPageSetupData::SetDefaultMinMargins</A><BR>
<A HREF="#wxpagesetupdatasetdefaultinfo">wxPageSetupData::SetDefaultInfo</A><BR>
<P>
<HR>
<A NAME="topic628"></A>
<H3>wxPageSetupData::wxPageSetupData</H3>
<P>
<B></B> <B>wxPageSetupData</B>()<P>
Constructor.<P>
<HR>
<A NAME="topic629"></A>
<H3>wxPageSetupData::~wxPageSetupData</H3>
<P>
<B></B> <B>~wxPageSetupData</B>()<P>
Destructor.<P>
<HR>
<A NAME="wxpagesetupdataenablehelp"></A>
<H3>wxPageSetupData::EnableHelp</H3>
<P>
<B>void</B> <B>EnableHelp</B>(<B>bool </B><I>flag</I>)<P>
Enables or disables the 'Help' button (Windows only).<P>
<HR>
<A NAME="wxpagesetupdataenablemargins"></A>
<H3>wxPageSetupData::EnableMargins</H3>
<P>
<B>void</B> <B>EnableMargins</B>(<B>bool </B><I>flag</I>)<P>
Enables or disables the margin controls (Windows only).<P>
<HR>
<A NAME="wxpagesetupdataenableorientation"></A>
<H3>wxPageSetupData::EnableOrientation</H3>
<P>
<B>void</B> <B>EnableOrientation</B>(<B>bool </B><I>flag</I>)<P>
Enables or disables the orientation control (Windows only).<P>
<HR>
<A NAME="wxpagesetupdataenablepaper"></A>
<H3>wxPageSetupData::EnablePaper</H3>
<P>
<B>void</B> <B>EnablePaper</B>(<B>bool </B><I>flag</I>)<P>
Enables or disables the paper size control (Windows only).<P>
<HR>
<A NAME="wxpagesetupdataenableprinter"></A>
<H3>wxPageSetupData::EnablePrinter</H3>
<P>
<B>void</B> <B>EnablePrinter</B>(<B>bool </B><I>flag</I>)<P>
Enables or disables the <B>Printer</B> button, which invokes a printer setup dialog.<P>
<HR>
<A NAME="wxpagesetupdatagetpapersize"></A>
<H3>wxPageSetupData::GetPaperSize</H3>
<P>
<B>wxPoint</B> <B>GetPaperSize</B>()<P>
Returns the paper size in millimetres.<P>
<HR>
<A NAME="wxpagesetupdatagetmargintopleft"></A>
<H3>wxPageSetupData::GetMarginTopLeft</H3>
<P>
<B>wxPoint</B> <B>GetMarginTopLeft</B>()<P>
Returns the left (x) and top (y) margins.<P>
<HR>
<A NAME="wxpagesetupdatagetmarginbottomright"></A>
<H3>wxPageSetupData::GetMarginBottomRight</H3>
<P>
<B>wxPoint</B> <B>GetMarginBottomRight</B>()<P>
Returns the right (x) and bottom (y) margins.<P>
<HR>
<A NAME="wxpagesetupdatagetminmargintopleft"></A>
<H3>wxPageSetupData::GetMinMarginTopLeft</H3>
<P>
<B>wxPoint</B> <B>GetMinMarginTopLeft</B>()<P>
Returns the left (x) and top (y) minimum margins the user can enter (Windows only).<P>
<HR>
<A NAME="wxpagesetupdatagetminmarginbottomright"></A>
<H3>wxPageSetupData::GetMinMarginBottomRight</H3>
<P>
<B>wxPoint</B> <B>GetMinMarginBottomRight</B>()<P>
Returns the right (x) and bottom (y) minimum margins the user can enter (Windows only).<P>
<HR>
<A NAME="wxpagesetupdatagetorientation"></A>
<H3>wxPageSetupData::GetOrientation</H3>
<P>
<B>int</B> <B>GetOrientation</B>()<P>
Returns the orientation, which can be wxPORTRAIT or wxLANDSCAPE.<P>
<HR>
<A NAME="wxpagesetupdatagetdefaultminmargins"></A>
<H3>wxPageSetupData::GetDefaultMinMargins</H3>
<P>
<B>bool</B> <B>GetDefaultMinMargins</B>()<P>
Returns TRUE if the page setup dialog will take its minimum margin values from the currently
selected printer properties. Windows only.<P>
<HR>
<A NAME="wxpagesetupdatagetenablemargins"></A>
<H3>wxPageSetupData::GetEnableMargins</H3>
<P>
<B>bool</B> <B>GetEnableMargins</B>()<P>
Returns TRUE if the margin controls are enabled (Windows only).<P>
<HR>
<A NAME="wxpagesetupdatagetenableorientation"></A>
<H3>wxPageSetupData::GetEnableOrientation</H3>
<P>
<B>bool</B> <B>GetEnableOrientation</B>()<P>
Returns TRUE if the orientation control is enabled (Windows only).<P>
<HR>
<A NAME="wxpagesetupdatagetenablepaper"></A>
<H3>wxPageSetupData::GetEnablePaper</H3>
<P>
<B>bool</B> <B>GetEnablePaper</B>()<P>
Returns TRUE if the paper size control is enabled (Windows only).<P>
<HR>
<A NAME="wxpagesetupdatagetenableprinter"></A>
<H3>wxPageSetupData::GetEnablePrinter</H3>
<P>
<B>bool</B> <B>GetEnablePrinter</B>()<P>
Returns TRUE if the printer setup button is enabled.<P>
<HR>
<A NAME="wxpagesetupdatagetenablehelp"></A>
<H3>wxPageSetupData::GetEnableHelp</H3>
<P>
<B>bool</B> <B>GetEnableHelp</B>()<P>
Returns TRUE if the printer setup button is enabled.<P>
<HR>
<A NAME="wxpagesetupdatagetdefaultinfo"></A>
<H3>wxPageSetupData::GetDefaultInfo</H3>
<P>
<B>bool</B> <B>GetDefaultInfo</B>()<P>
Returns TRUE if the dialog will simply return default printer information (such as orientation)
instead of showing a dialog. Windows only.<P>
<HR>
<A NAME="wxpagesetupdatasetpapersize"></A>
<H3>wxPageSetupData::SetPaperSize</H3>
<P>
<B>void</B> <B>SetPaperSize</B>(<B>const wxPoint& </B><I>size</I>)<P>
Sets the paper size in millimetres.<P>
<HR>
<A NAME="wxpagesetupdatasetmargintopleft"></A>
<H3>wxPageSetupData::SetMarginTopLeft</H3>
<P>
<B>void</B> <B>GetMarginTopLeft</B>(<B>const wxPoint& </B><I>pt</I>)<P>
Sets the left (x) and top (y) margins.<P>
<HR>
<A NAME="wxpagesetupdatasetmarginbottomright"></A>
<H3>wxPageSetupData::SetMarginBottomRight</H3>
<P>
<B>void</B> <B>SetMarginBottomRight</B>(<B>const wxPoint& </B><I>pt</I>)<P>
Sets the right (x) and bottom (y) margins.<P>
<HR>
<A NAME="wxpagesetupdatasetminmargintopleft"></A>
<H3>wxPageSetupData::SetMinMarginTopLeft</H3>
<P>
<B>void</B> <B>SetMinMarginTopLeft</B>(<B>const wxPoint& </B><I>pt</I>)<P>
Sets the left (x) and top (y) minimum margins the user can enter (Windows only).<P>
<HR>
<A NAME="wxpagesetupdatasetminmarginbottomright"></A>
<H3>wxPageSetupData::SetMinMarginBottomRight</H3>
<P>
<B>void</B> <B>SetMinMarginBottomRight</B>(<B>const wxPoint& </B><I>pt</I>)<P>
Sets the right (x) and bottom (y) minimum margins the user can enter (Windows only).<P>
<HR>
<A NAME="wxpagesetupdatasetorientation"></A>
<H3>wxPageSetupData::SetOrientation</H3>
<P>
<B>void</B> <B>SetOrientation</B>(<B>int </B><I>orientation</I>)<P>
Sets the orientation, which can be wxPORTRAIT or wxLANDSCAPE.<P>
<HR>
<A NAME="wxpagesetupdatasetdefaultminmargins"></A>
<H3>wxPageSetupData::SetDefaultMinMargins</H3>
<P>
<B>void</B> <B>SetDefaultMinMargins</B>(<B>bool</B><I> flag</I>)<P>
Pass TRUE if the page setup dialog will take its minimum margin values from the currently
selected printer properties. Windows only.<P>
<HR>
<A NAME="wxpagesetupdatasetdefaultinfo"></A>
<H3>wxPageSetupData::SetDefaultInfo</H3>
<P>
<B>void</B> <B>SetDefaultInfo</B>(<B>bool</B><I> flag</I>)<P>
Pass TRUE if the dialog will simply return default printer information (such as orientation)
instead of showing a dialog. Windows only.<P>
</BODY></HTML>
|