This class holds a variety of information related to wxPageSetupDialog.
It contains a wxPrintData member which is used to hold basic printer configuration data (as opposed to the user-interface configuration settings stored by wxPageSetupDialogData).
Derived from
Include files
<wx/cmndata.h>
See also
Default constructor.
Copy constructor.
Construct an object from a print data object.
Destructor.
Enables or disables the `Help' button (Windows only).
Enables or disables the margin controls (Windows only).
Enables or disables the orientation control (Windows only).
Enables or disables the paper size control (Windows only).
Enables or disables the Printer button, which invokes a printer setup dialog.
bool GetDefaultMinMargins(void) const
Returns true if the page setup dialog will take its minimum margin values from the currently selected printer properties. Windows only.
bool GetEnableMargins(void) const
Returns true if the margin controls are enabled (Windows only).
bool GetEnableOrientation(void) const
Returns true if the orientation control is enabled (Windows only).
bool GetEnablePaper(void) const
Returns true if the paper size control is enabled (Windows only).
bool GetEnablePrinter(void) const
Returns true if the printer setup button is enabled.
bool GetEnableHelp(void) const
Returns true if the printer setup button is enabled.
bool GetDefaultInfo(void) const
Returns true if the dialog will simply return default printer information (such as orientation) instead of showing a dialog. Windows only.
wxPoint GetMarginTopLeft(void) const
Returns the left (x) and top (y) margins in millimetres.
wxPoint GetMarginBottomRight(void) const
Returns the right (x) and bottom (y) margins in millimetres.
wxPoint GetMinMarginTopLeft(void) const
Returns the left (x) and top (y) minimum margins the user can enter (Windows only). Units are in millimetres
wxPoint GetMinMarginBottomRight(void) const
Returns the right (x) and bottom (y) minimum margins the user can enter (Windows only). Units are in millimetres
wxPaperSize GetPaperId(void) const
Returns the paper id (stored in the internal wxPrintData object).
For further information, see wxPrintData::SetPaperId.
wxSize GetPaperSize(void) const
Returns the paper size in millimetres.
Returns a reference to the print data associated with this object.
Returns true if the print data associated with the dialog data is valid. This can return false on Windows if the current printer is not set, for example. On all other platforms, it returns true.
Pass true if the dialog will simply return default printer information (such as orientation) instead of showing a dialog. Windows only.
Pass true if the page setup dialog will take its minimum margin values from the currently selected printer properties. Windows only. Units are in millimetres
Sets the left (x) and top (y) margins in millimetres.
Sets the right (x) and bottom (y) margins in millimetres.
Sets the left (x) and top (y) minimum margins the user can enter (Windows only). Units are in millimetres.
Sets the right (x) and bottom (y) minimum margins the user can enter (Windows only). Units are in millimetres.
Sets the paper size id. For further information, see wxPrintData::SetPaperId.
Calling this function overrides the explicit paper dimensions passed in wxPageSetupDialogData::SetPaperSize.
Sets the paper size in millimetres. If a corresponding paper id is found, it will be set in the internal wxPrintData object, otherwise the paper size overrides the paper id.
Sets the print data associated with this object.
Assigns print data to this object.
Assigns page setup data to this object.
ymasuda 平成17年11月19日