Contents Up Previous Next

wxPageSetupData: wxObject

This class holds a variety of information related to wxPageSetupDialog.

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

void wxPageSetupData(void)

Constructor.


wxPageSetupData::~wxPageSetupData

void ~wxPageSetupData(void)

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(void)

Returns the paper size in millimetres.


wxPageSetupData::GetMarginTopLeft

wxPoint GetMarginTopLeft(void)

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


wxPageSetupData::GetMarginBottomRight

wxPoint GetMarginBottomRight(void)

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


wxPageSetupData::GetMinMarginTopLeft

wxPoint GetMinMarginTopLeft(void)

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


wxPageSetupData::GetMinMarginBottomRight

wxPoint GetMinMarginBottomRight(void)

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


wxPageSetupData::GetOrientation

int GetOrientation(void)

Returns the orientation, which can be wxPORTRAIT or wxLANDSCAPE.


wxPageSetupData::GetDefaultMinMargins

Bool GetDefaultMinMargins(void)

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(void)

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


wxPageSetupData::GetEnableOrientation

Bool GetEnableOrientation(void)

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


wxPageSetupData::GetEnablePaper

Bool GetEnablePaper(void)

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


wxPageSetupData::GetEnablePrinter

Bool GetEnablePrinter(void)

Returns TRUE if the printer setup button is enabled.


wxPageSetupData::GetEnableHelp

Bool GetEnableHelp(void)

Returns TRUE if the printer setup button is enabled.


wxPageSetupData::GetDefaultInfo

Bool GetDefaultInfo(void)

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.