Contents Up Previous Next

wxPageSetupData

This class holds a variety of information related to wxPageSetupDialog.

Derived from

wxObject

Include files

<wx/cmndata.h>

See also

wxPageSetupDialog

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::wxPageSetupData

wxPageSetupData()

Constructor.


wxPageSetupData::~wxPageSetupData

~wxPageSetupData()

Destructor.


wxPageSetupData::EnableHelp

void EnableHelp(bool flag)

Enables or disables the 'Help' button (Windows only).


wxPageSetupData::EnableMargins

void EnableMargins(bool flag)

Enables or disables the margin controls (Windows only).


wxPageSetupData::EnableOrientation

void EnableOrientation(bool flag)

Enables or disables the orientation control (Windows only).


wxPageSetupData::EnablePaper

void EnablePaper(bool flag)

Enables or disables the paper size control (Windows only).


wxPageSetupData::EnablePrinter

void EnablePrinter(bool flag)

Enables or disables the Printer button, which invokes a printer setup dialog.


wxPageSetupData::GetPaperSize

wxPoint GetPaperSize()

Returns the paper size in millimetres.


wxPageSetupData::GetMarginTopLeft

wxPoint GetMarginTopLeft()

Returns the left (x) and top (y) margins.


wxPageSetupData::GetMarginBottomRight

wxPoint GetMarginBottomRight()

Returns the right (x) and bottom (y) margins.


wxPageSetupData::GetMinMarginTopLeft

wxPoint GetMinMarginTopLeft()

Returns the left (x) and top (y) minimum margins the user can enter (Windows only).


wxPageSetupData::GetMinMarginBottomRight

wxPoint GetMinMarginBottomRight()

Returns the right (x) and bottom (y) minimum margins the user can enter (Windows only).


wxPageSetupData::GetOrientation

int GetOrientation()

Returns the orientation, which can be wxPORTRAIT or wxLANDSCAPE.


wxPageSetupData::GetDefaultMinMargins

bool GetDefaultMinMargins()

Returns TRUE if the page setup dialog will take its minimum margin values from the currently selected printer properties. Windows only.


wxPageSetupData::GetEnableMargins

bool GetEnableMargins()

Returns TRUE if the margin controls are enabled (Windows only).


wxPageSetupData::GetEnableOrientation

bool GetEnableOrientation()

Returns TRUE if the orientation control is enabled (Windows only).


wxPageSetupData::GetEnablePaper

bool GetEnablePaper()

Returns TRUE if the paper size control is enabled (Windows only).


wxPageSetupData::GetEnablePrinter

bool GetEnablePrinter()

Returns TRUE if the printer setup button is enabled.


wxPageSetupData::GetEnableHelp

bool GetEnableHelp()

Returns TRUE if the printer setup button is enabled.


wxPageSetupData::GetDefaultInfo

bool GetDefaultInfo()

Returns TRUE if the dialog will simply return default printer information (such as orientation) instead of showing a dialog. Windows only.


wxPageSetupData::SetPaperSize

void SetPaperSize(const wxPoint& size)

Sets the paper size in millimetres.


wxPageSetupData::SetMarginTopLeft

void GetMarginTopLeft(const wxPoint& pt)

Sets the left (x) and top (y) margins.


wxPageSetupData::SetMarginBottomRight

void SetMarginBottomRight(const wxPoint& pt)

Sets the right (x) and bottom (y) margins.


wxPageSetupData::SetMinMarginTopLeft

void SetMinMarginTopLeft(const wxPoint& pt)

Sets the left (x) and top (y) minimum margins the user can enter (Windows only).


wxPageSetupData::SetMinMarginBottomRight

void SetMinMarginBottomRight(const wxPoint& pt)

Sets the right (x) and bottom (y) minimum margins the user can enter (Windows only).


wxPageSetupData::SetOrientation

void SetOrientation(int orientation)

Sets the orientation, which can be wxPORTRAIT or wxLANDSCAPE.


wxPageSetupData::SetDefaultMinMargins

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.


wxPageSetupData::SetDefaultInfo

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.