wxPageSetupDialogData

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

wxObject

Include files

<wx/cmndata.h>

See also

wxPageSetupDialog



wxPageSetupDialogData::wxPageSetupDialogData



wxPageSetupDialogData(void)

Default constructor.



wxPageSetupDialogData(wxPageSetupDialogData& data)

Copy constructor.



wxPageSetupDialogData(wxPrintData& printData)

Construct an object from a print data object.



wxPageSetupDialogData::~wxPageSetupDialogData



~wxPageSetupDialogData(void)

Destructor.



wxPageSetupDialogData::EnableHelp



void EnableHelp(bool flag)

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



wxPageSetupDialogData::EnableMargins



void EnableMargins(bool flag)

Enables or disables the margin controls (Windows only).



wxPageSetupDialogData::EnableOrientation



void EnableOrientation(bool flag)

Enables or disables the orientation control (Windows only).



wxPageSetupDialogData::EnablePaper



void EnablePaper(bool flag)

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



wxPageSetupDialogData::EnablePrinter



void EnablePrinter(bool flag)

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



wxPageSetupDialogData::GetDefaultMinMargins

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.



wxPageSetupDialogData::GetEnableMargins

bool GetEnableMargins(void) const

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



wxPageSetupDialogData::GetEnableOrientation

bool GetEnableOrientation(void) const

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



wxPageSetupDialogData::GetEnablePaper

bool GetEnablePaper(void) const

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



wxPageSetupDialogData::GetEnablePrinter

bool GetEnablePrinter(void) const

Returns true if the printer setup button is enabled.



wxPageSetupDialogData::GetEnableHelp

bool GetEnableHelp(void) const

Returns true if the printer setup button is enabled.



wxPageSetupDialogData::GetDefaultInfo

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.



wxPageSetupDialogData::GetMarginTopLeft

wxPoint GetMarginTopLeft(void) const

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



wxPageSetupDialogData::GetMarginBottomRight

wxPoint GetMarginBottomRight(void) const

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



wxPageSetupDialogData::GetMinMarginTopLeft

wxPoint GetMinMarginTopLeft(void) const

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



wxPageSetupDialogData::GetMinMarginBottomRight

wxPoint GetMinMarginBottomRight(void) const

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



wxPageSetupDialogData::GetPaperId

wxPaperSize GetPaperId(void) const

Returns the paper id (stored in the internal wxPrintData object).

For further information, see wxPrintData::SetPaperId.



wxPageSetupDialogData::GetPaperSize

wxSize GetPaperSize(void) const

Returns the paper size in millimetres.



wxPageSetupDialogData::GetPrintData



wxPrintData& GetPrintData(void)

Returns a reference to the print data associated with this object.



wxPageSetupDialogData::Ok

bool Ok(void) 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.



wxPageSetupDialogData::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.



wxPageSetupDialogData::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. Units are in millimetres



wxPageSetupDialogData::SetMarginTopLeft



void SetMarginTopLeft(const wxPoint& pt)

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



wxPageSetupDialogData::SetMarginBottomRight



void SetMarginBottomRight(const wxPoint& pt)

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



wxPageSetupDialogData::SetMinMarginTopLeft



void SetMinMarginTopLeft(const wxPoint& pt)

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



wxPageSetupDialogData::SetMinMarginBottomRight



void SetMinMarginBottomRight(const wxPoint& pt)

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



wxPageSetupDialogData::SetPaperId



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.



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.



wxPageSetupDialogData::SetPrintData



void SetPrintData(const wxPrintData& printData)

Sets the print data associated with this object.



wxPageSetupDialogData::operator $=$



void operator $=$(const wxPrintData& data)

Assigns print data to this object.



void operator $=$(const wxPageSetupDialogData& data)

Assigns page setup data to this object.

ymasuda 平成17年11月19日