wxPrintDialogDataThis class holds information related to the visual characteristics of wxPrintDialog. It contains a wxPrintData object with underlying printing settings. Derived from Include files <wx/cmndata.h> See also Printing framework overview, wxPrintDialog, wxPrintDialog Overview Members
wxPrintDialogData::wxPrintDialogData
wxPrintDialogData::wxPrintDialogDatawxPrintDialogData() Default constructor. wxPrintDialogData(wxPrintDialogData& dialogData) Copy constructor. wxPrintDialogData(wxPrintData& printData) Construct an object from a print dialog data object.
wxPrintDialogData::~wxPrintDialogData~wxPrintDialogData() Destructor.
wxPrintDialogData::EnableHelpvoid EnableHelp(bool flag) Enables or disables the 'Help' button.
wxPrintDialogData::EnablePageNumbersvoid EnablePageNumbers(bool flag) Enables or disables the 'Page numbers' controls.
wxPrintDialogData::EnablePrintToFilevoid EnablePrintToFile(bool flag) Enables or disables the 'Print to file' checkbox.
wxPrintDialogData::EnableSelectionvoid EnableSelection(bool flag) Enables or disables the 'Selection' radio button.
wxPrintDialogData::GetAllPagesbool GetAllPages() const Returns true if the user requested that all pages be printed.
wxPrintDialogData::GetCollatebool GetCollate() const Returns true if the user requested that the document(s) be collated.
wxPrintDialogData::GetFromPageint GetFromPage() const Returns the from page number, as entered by the user.
wxPrintDialogData::GetMaxPageint GetMaxPage() const Returns the maximum page number.
wxPrintDialogData::GetMinPageint GetMinPage() const Returns the minimum page number.
wxPrintDialogData::GetNoCopiesint GetNoCopies() const Returns the number of copies requested by the user.
wxPrintDialogData::GetPrintDatawxPrintData& GetPrintData() Returns a reference to the internal wxPrintData object.
wxPrintDialogData::GetPrintToFilebool GetPrintToFile() const Returns true if the user has selected printing to a file.
wxPrintDialogData::GetSelectionbool GetSelection() const Returns true if the user requested that the selection be printed (where 'selection' is a concept specific to the application).
wxPrintDialogData::GetToPageint GetToPage() const Returns the to page number, as entered by the user.
wxPrintDialogData::IsOkbool IsOk() const Returns true if the print data is valid for using in print dialogs. This can return false on Windows if the current printer is not set, for example. On all other platforms, it returns true.
wxPrintDialogData::SetCollatevoid SetCollate(bool flag) Sets the 'Collate' checkbox to true or false.
wxPrintDialogData::SetFromPagevoid SetFromPage(int page) Sets the from page number.
wxPrintDialogData::SetMaxPagevoid SetMaxPage(int page) Sets the maximum page number.
wxPrintDialogData::SetMinPagevoid SetMinPage(int page) Sets the minimum page number.
wxPrintDialogData::SetNoCopiesvoid SetNoCopies(int n) Sets the default number of copies the user has requested to be printed out.
wxPrintDialogData::SetPrintDatavoid SetPrintData(const wxPrintData& printData) Sets the internal wxPrintData.
wxPrintDialogData::SetPrintToFilevoid SetPrintToFile(bool flag) Sets the 'Print to file' checkbox to true or false.
wxPrintDialogData::SetSelectionvoid SetSelection(bool flag) Selects the 'Selection' radio button. The effect of printing the selection depends on how the application implements this command, if at all.
wxPrintDialogData::SetSetupDialogvoid SetSetupDialog(bool flag) Determines whether the dialog to be shown will be the Print dialog (pass false) or Print Setup dialog (pass true). This function has been deprecated since version 2.5.4.
wxPrintDialogData::SetToPagevoid SetToPage(int page) Sets the to page number.
wxPrintDialogData::operator =void operator =(const wxPrintData& data) Assigns print data to this object. void operator =(const wxPrintDialogData& data) Assigns another print dialog data object to this object.
|