wxPageSetupDialogDataThis 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 Include files <wx/cmndata.h> See also Printing framework overview, wxPageSetupDialog Members
wxPageSetupDialogData::wxPageSetupDialogData
wxPageSetupDialogData::wxPageSetupDialogDatawxPageSetupDialogData() Default constructor. wxPageSetupDialogData(wxPageSetupDialogData& data) Copy constructor. wxPageSetupDialogData(wxPrintData& printData) Construct an object from a print data object.
wxPageSetupDialogData::~wxPageSetupDialogData~wxPageSetupDialogData() Destructor.
wxPageSetupDialogData::EnableHelpvoid EnableHelp(bool flag) Enables or disables the 'Help' button (Windows only).
wxPageSetupDialogData::EnableMarginsvoid EnableMargins(bool flag) Enables or disables the margin controls (Windows only).
wxPageSetupDialogData::EnableOrientationvoid EnableOrientation(bool flag) Enables or disables the orientation control (Windows only).
wxPageSetupDialogData::EnablePapervoid EnablePaper(bool flag) Enables or disables the paper size control (Windows only).
wxPageSetupDialogData::EnablePrintervoid EnablePrinter(bool flag) Enables or disables the Printer button, which invokes a printer setup dialog.
wxPageSetupDialogData::GetDefaultMinMarginsbool GetDefaultMinMargins() const Returns true if the page setup dialog will take its minimum margin values from the currently selected printer properties. Windows only.
wxPageSetupDialogData::GetEnableMarginsbool GetEnableMargins() const Returns true if the margin controls are enabled (Windows only).
wxPageSetupDialogData::GetEnableOrientationbool GetEnableOrientation() const Returns true if the orientation control is enabled (Windows only).
wxPageSetupDialogData::GetEnablePaperbool GetEnablePaper() const Returns true if the paper size control is enabled (Windows only).
wxPageSetupDialogData::GetEnablePrinterbool GetEnablePrinter() const Returns true if the printer setup button is enabled.
wxPageSetupDialogData::GetEnableHelpbool GetEnableHelp() const Returns true if the printer setup button is enabled.
wxPageSetupDialogData::GetDefaultInfobool GetDefaultInfo() const Returns true if the dialog will simply return default printer information (such as orientation) instead of showing a dialog. Windows only.
wxPageSetupDialogData::GetMarginTopLeftwxPoint GetMarginTopLeft() const Returns the left (x) and top (y) margins in millimetres.
wxPageSetupDialogData::GetMarginBottomRightwxPoint GetMarginBottomRight() const Returns the right (x) and bottom (y) margins in millimetres.
wxPageSetupDialogData::GetMinMarginTopLeftwxPoint GetMinMarginTopLeft() const Returns the left (x) and top (y) minimum margins the user can enter (Windows only). Units are in millimetres
wxPageSetupDialogData::GetMinMarginBottomRightwxPoint GetMinMarginBottomRight() const Returns the right (x) and bottom (y) minimum margins the user can enter (Windows only). Units are in millimetres
wxPageSetupDialogData::GetPaperIdwxPaperSize GetPaperId() const Returns the paper id (stored in the internal wxPrintData object). For further information, see wxPrintData::SetPaperId.
wxPageSetupDialogData::GetPaperSizewxSize GetPaperSize() const Returns the paper size in millimetres.
wxPageSetupDialogData::GetPrintDatawxPrintData& GetPrintData() Returns a reference to the print data associated with this object.
wxPageSetupDialogData::IsOkbool IsOk() 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::SetDefaultInfovoid 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::SetDefaultMinMarginsvoid 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::SetMarginTopLeftvoid SetMarginTopLeft(const wxPoint& pt) Sets the left (x) and top (y) margins in millimetres.
wxPageSetupDialogData::SetMarginBottomRightvoid SetMarginBottomRight(const wxPoint& pt) Sets the right (x) and bottom (y) margins in millimetres.
wxPageSetupDialogData::SetMinMarginTopLeftvoid SetMinMarginTopLeft(const wxPoint& pt) Sets the left (x) and top (y) minimum margins the user can enter (Windows only). Units are in millimetres.
wxPageSetupDialogData::SetMinMarginBottomRightvoid SetMinMarginBottomRight(const wxPoint& pt) Sets the right (x) and bottom (y) minimum margins the user can enter (Windows only). Units are in millimetres.
wxPageSetupDialogData::SetPaperIdvoid 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::SetPaperSizevoid 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::SetPrintDatavoid 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.
|