## 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

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

wxPageSetupDialogData()

Default constructor.

wxPageSetupDialogData(wxPageSetupDialogData& data)

Copy constructor.

wxPrintDialogData(wxPrintData& printData)

Construct an object from a print dialog data object.

### wxPageSetupDialogData::~wxPageSetupDialogData

~wxPageSetupDialogData()

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

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

### wxPageSetupDialogData::GetEnableOrientation

bool GetEnableOrientation() const

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

### wxPageSetupDialogData::GetEnablePaper

bool GetEnablePaper() const

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

### wxPageSetupDialogData::GetEnablePrinter

bool GetEnablePrinter() const

Returns TRUE if the printer setup button is enabled.

### wxPageSetupDialogData::GetEnableHelp

bool GetEnableHelp() const

Returns TRUE if the printer setup button is enabled.

### wxPageSetupDialogData::GetDefaultInfo

bool GetDefaultInfo() 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() const

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

### wxPageSetupDialogData::GetMarginBottomRight

wxPoint GetMarginBottomRight() const

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

### wxPageSetupDialogData::GetMinMarginTopLeft

wxPoint GetMinMarginTopLeft() const

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

### wxPageSetupDialogData::GetMinMarginBottomRight

wxPoint GetMinMarginBottomRight() const

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

### wxPageSetupDialogData::GetPaperId

wxPaperSize GetPaperId() const

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

For further information, see wxPrintData::SetPaperId.

### wxPageSetupDialogData::GetPaperSize

wxSize GetPaperSize() const

Returns the paper size in millimetres.

### wxPageSetupDialogData::GetPrintData

wxPrintData& GetPrintData()

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

### wxPageSetupDialogData::Ok

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.

### 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.