This class holds a variety of information related to wxPageSetupDialog.
Derived from
Include files
<wx/cmndata.h>
See also
Members
wxPageSetupData::wxPageSetupData
wxPageSetupData::~wxPageSetupData
wxPageSetupData::EnableHelp
wxPageSetupData::EnableMargins
wxPageSetupData::EnableOrientation
wxPageSetupData::EnablePaper
wxPageSetupData::EnablePrinter
wxPageSetupData::GetPaperSize
wxPageSetupData::GetMarginTopLeft
wxPageSetupData::GetMarginBottomRight
wxPageSetupData::GetMinMarginTopLeft
wxPageSetupData::GetMinMarginBottomRight
wxPageSetupData::GetOrientation
wxPageSetupData::GetDefaultMinMargins
wxPageSetupData::GetEnableMargins
wxPageSetupData::GetEnableOrientation
wxPageSetupData::GetEnablePaper
wxPageSetupData::GetEnablePrinter
wxPageSetupData::GetEnableHelp
wxPageSetupData::GetDefaultInfo
wxPageSetupData::SetPaperSize
wxPageSetupData::SetMarginTopLeft
wxPageSetupData::SetMarginBottomRight
wxPageSetupData::SetMinMarginTopLeft
wxPageSetupData::SetMinMarginBottomRight
wxPageSetupData::SetOrientation
wxPageSetupData::SetDefaultMinMargins
wxPageSetupData::SetDefaultInfo
wxPageSetupData()
Constructor.
~wxPageSetupData()
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.
wxPoint GetPaperSize()
Returns the paper size in millimetres.
wxPoint GetMarginTopLeft()
Returns the left (x) and top (y) margins.
wxPoint GetMarginBottomRight()
Returns the right (x) and bottom (y) margins.
wxPoint GetMinMarginTopLeft()
Returns the left (x) and top (y) minimum margins the user can enter (Windows only).
wxPoint GetMinMarginBottomRight()
Returns the right (x) and bottom (y) minimum margins the user can enter (Windows only).
int GetOrientation()
Returns the orientation, which can be wxPORTRAIT or wxLANDSCAPE.
bool GetDefaultMinMargins()
Returns TRUE if the page setup dialog will take its minimum margin values from the currently selected printer properties. Windows only.
bool GetEnableMargins()
Returns TRUE if the margin controls are enabled (Windows only).
bool GetEnableOrientation()
Returns TRUE if the orientation control is enabled (Windows only).
bool GetEnablePaper()
Returns TRUE if the paper size control is enabled (Windows only).
bool GetEnablePrinter()
Returns TRUE if the printer setup button is enabled.
bool GetEnableHelp()
Returns TRUE if the printer setup button is enabled.
bool GetDefaultInfo()
Returns TRUE if the dialog will simply return default printer information (such as orientation) instead of showing a dialog. Windows only.
void SetPaperSize(const wxPoint& size)
Sets the paper size in millimetres.
void GetMarginTopLeft(const wxPoint& pt)
Sets the left (x) and top (y) margins.
void SetMarginBottomRight(const wxPoint& pt)
Sets the right (x) and bottom (y) margins.
void SetMinMarginTopLeft(const wxPoint& pt)
Sets the left (x) and top (y) minimum margins the user can enter (Windows only).
void SetMinMarginBottomRight(const wxPoint& pt)
Sets the right (x) and bottom (y) minimum margins the user can enter (Windows only).
void SetOrientation(int orientation)
Sets the orientation, which can be wxPORTRAIT or wxLANDSCAPE.
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.
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.