This class holds a variety of information related to print dialogs.
Derived from
Include files
<wx/cmndata.h>
See also
wxPrintDialog, wxPrintDialog Overview
Members
wxPrintData::wxPrintData
wxPrintData::~wxPrintData
wxPrintData::EnableHelp
wxPrintData::EnablePageNumbers
wxPrintData::EnablePrintToFile
wxPrintData::EnableSelection
wxPrintData::GetAllPages
wxPrintData::GetCollate
wxPrintData::GetFromPage
wxPrintData::GetMaxPage
wxPrintData::GetMinPage
wxPrintData::GetNoCopies
wxPrintData::GetOrientation
wxPrintData::GetToPage
wxPrintData::SetCollate
wxPrintData::SetFromPage
wxPrintData::SetMaxPage
wxPrintData::SetMinPage
wxPrintData::SetOrientation
wxPrintData::SetNoCopies
wxPrintData::SetPrintToFile
wxPrintData::SetSetupDialog
wxPrintData::SetToPage
wxPrintData()
Constructor.
~wxPrintData()
Destructor.
void EnableHelp(bool flag)
Enables or disables the 'Help' button.
void EnablePageNumbers(bool flag)
Enables or disables the 'Page numbers' controls.
void EnablePrintToFile(bool flag)
Enables or disables the 'Print to file' checkbox.
void EnableSelection(bool flag)
Enables or disables the 'Selection' radio button.
bool GetAllPages()
Returns TRUE if the user requested that all pages be printed.
bool GetCollate()
Returns TRUE if the user requested that the document(s) be collated.
int GetFromPage()
Returns the from page number, as entered by the user.
int GetMaxPage()
Returns the maximum page number.
int GetMinPage()
Returns the minimum page number.
int GetNoCopies()
Returns the number of copies requested by the user.
int GetOrientation()
Gets the orientation. This can be wxLANDSCAPE or wxPORTRAIT.
int GetToPage()
Returns the to page number, as entered by the user.
void SetCollate(bool flag)
Sets the 'Collate' checkbox to TRUE or FALSE.
void SetFromPage(int page)
Sets the from page number.
void SetMaxPage(int page)
Sets the maximum page number.
void SetMinPage(int page)
Sets the minimum page number.
void SetOrientation(int orientation)
Sets the orientation. This can be wxLANDSCAPE or wxPORTRAIT.
void SetNoCopies(int n)
Sets the default number of copies to be printed out.
void SetPrintToFile(bool flag)
Sets the 'Print to file' checkbox to TRUE or FALSE.
void SetSetupDialog(bool flag)
Determines whether the dialog to be shown will be the Print dialog (pass FALSE) or Print Setup dialog (pass TRUE).
Note that the setup dialog is obsolete from Windows 95, though retained for backward compatibility.
void SetToPage(int page)
Sets the to page number.