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
Members
wxPageSetupDialogData::wxPageSetupDialogData
wxPageSetupDialogData::~wxPageSetupDialogData
wxPageSetupDialogData::EnableHelp
wxPageSetupDialogData::EnableMargins
wxPageSetupDialogData::EnableOrientation
wxPageSetupDialogData::EnablePaper
wxPageSetupDialogData::EnablePrinter
wxPageSetupDialogData::GetDefaultMinMargins
wxPageSetupDialogData::GetEnableMargins
wxPageSetupDialogData::GetEnableOrientation
wxPageSetupDialogData::GetEnablePaper
wxPageSetupDialogData::GetEnablePrinter
wxPageSetupDialogData::GetEnableHelp
wxPageSetupDialogData::GetDefaultInfo
wxPageSetupDialogData::GetMarginTopLeft
wxPageSetupDialogData::GetMarginBottomRight
wxPageSetupDialogData::GetMinMarginTopLeft
wxPageSetupDialogData::GetMinMarginBottomRight
wxPageSetupDialogData::GetPaperId
wxPageSetupDialogData::GetPaperSize
wxPageSetupDialogData::GetPrintData
wxPageSetupDialogData::Ok
wxPageSetupDialogData::SetDefaultInfo
wxPageSetupDialogData::SetDefaultMinMargins
wxPageSetupDialogData::SetMarginTopLeft
wxPageSetupDialogData::SetMarginBottomRight
wxPageSetupDialogData::SetMinMarginTopLeft
wxPageSetupDialogData::SetMinMarginBottomRight
wxPageSetupDialogData::SetPaperId
wxPageSetupDialogData::SetPaperSize
wxPageSetupDialogData::SetPrintData
wxPageSetupDialogData::operator =
wxPageSetupDialogData()
Default constructor.
wxPageSetupDialogData(wxPageSetupDialogData& data)
Copy constructor.
wxPageSetupDialogData(wxPrintData& printData)
Construct an object from a print data object.
~wxPageSetupDialogData()
Destructor.
void EnableHelp(bool flag)
Enables or disables the 'Help' button (Windows only).
void EnableMargins(bool flag)
Enables or disables the margin controls (Windows only).
void EnableOrientation(bool flag)
Enables or disables the orientation control (Windows only).
void EnablePaper(bool flag)
Enables or disables the paper size control (Windows only).
void EnablePrinter(bool flag)
Enables or disables the Printer button, which invokes a printer setup dialog.
bool GetDefaultMinMargins() const
Returns true if the page setup dialog will take its minimum margin values from the currently selected printer properties. Windows only.
bool GetEnableMargins() const
Returns true if the margin controls are enabled (Windows only).
bool GetEnableOrientation() const
Returns true if the orientation control is enabled (Windows only).
bool GetEnablePaper() const
Returns true if the paper size control is enabled (Windows only).
bool GetEnablePrinter() const
Returns true if the printer setup button is enabled.
bool GetEnableHelp() const
Returns true if the printer setup button is enabled.
bool GetDefaultInfo() const
Returns true if the dialog will simply return default printer information (such as orientation) instead of showing a dialog. Windows only.
wxPoint GetMarginTopLeft() const
Returns the left (x) and top (y) margins in millimetres.
wxPoint GetMarginBottomRight() const
Returns the right (x) and bottom (y) margins in millimetres.
wxPoint GetMinMarginTopLeft() const
Returns the left (x) and top (y) minimum margins the user can enter (Windows only). Units are in millimetres
wxPoint GetMinMarginBottomRight() const
Returns the right (x) and bottom (y) minimum margins the user can enter (Windows only). Units are in millimetres
wxPaperSize GetPaperId() const
Returns the paper id (stored in the internal wxPrintData object).
For further information, see wxPrintData::SetPaperId.
wxSize GetPaperSize() const
Returns the paper size in millimetres.
wxPrintData& GetPrintData()
Returns a reference to the print data associated with this object.
bool Ok() const
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.
void SetDefaultInfo(bool flag)
Pass true if the dialog will simply return default printer information (such as orientation) instead of showing a dialog. Windows only.
void SetDefaultMinMargins(bool flag)
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
void SetMarginTopLeft(const wxPoint& pt)
Sets the left (x) and top (y) margins in millimetres.
void SetMarginBottomRight(const wxPoint& pt)
Sets the right (x) and bottom (y) margins in millimetres.
void SetMinMarginTopLeft(const wxPoint& pt)
Sets the left (x) and top (y) minimum margins the user can enter (Windows only). Units are in millimetres.
void SetMinMarginBottomRight(const wxPoint& pt)
Sets the right (x) and bottom (y) minimum margins the user can enter (Windows only). Units are in millimetres.
void SetPaperId(wxPaperSize& id)
Sets the paper size id. For further information, see wxPrintData::SetPaperId.
Calling this function overrides the explicit paper dimensions passed in wxPageSetupDialogData::SetPaperSize.
void SetPaperSize(const wxSize& size)
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.
void SetPrintData(const wxPrintData& printData)
Sets the print data associated with this object.
void operator =(const wxPrintData& data)
Assigns print data to this object.
void operator =(const wxPageSetupDialogData& data)
Assigns page setup data to this object.