$szTitle = "wxprintdialogdata"; include "./_header.inc"; ?>
this 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::~wxprintdialogdata
wxprintdialogdata::enablehelp
wxprintdialogdata::enablepagenumbers
wxprintdialogdata::enableprinttofile
wxprintdialogdata::enableselection
wxprintdialogdata::getallpages
wxprintdialogdata::getcollate
wxprintdialogdata::getfrompage
wxprintdialogdata::getmaxpage
wxprintdialogdata::getminpage
wxprintdialogdata::getnocopies
wxprintdialogdata::getprintdata
wxprintdialogdata::getprinttofile
wxprintdialogdata::getselection
wxprintdialogdata::gettopage
wxprintdialogdata::isok
wxprintdialogdata::setcollate
wxprintdialogdata::setfrompage
wxprintdialogdata::setmaxpage
wxprintdialogdata::setminpage
wxprintdialogdata::setnocopies
wxprintdialogdata::setprintdata
wxprintdialogdata::setprinttofile
wxprintdialogdata::setselection
wxprintdialogdata::setsetupdialog
wxprintdialogdata::settopage
wxprintdialogdata::operator =
wxprintdialogdata()
default constructor.
wxprintdialogdata(wxprintdialogdata& dialogdata)
copy constructor.
wxprintdialogdata(wxprintdata& printdata)
construct an object from a print dialog data object.
~wxprintdialogdata()
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() const
returns true if the user requested that all pages be printed.
bool getcollate() const
returns true if the user requested that the document(s) be collated.
int getfrompage() const
returns the from page number, as entered by the user.
int getmaxpage() const
returns the maximum page number.
int getminpage() const
returns the minimum page number.
int getnocopies() const
returns the number of copies requested by the user.
wxprintdata& getprintdata()
returns a reference to the internal wxprintdata object.
bool getprinttofile() const
returns true if the user has selected printing to a file.
bool getselection() const
returns true if the user requested that the selection be printed (where 'selection' is a concept specific to the application).
int gettopage() const
returns the to page number, as entered by the user.
bool 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.
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 setnocopies(int n)
sets the default number of copies the user has requested to be printed out.
void setprintdata(const wxprintdata& printdata)
sets the internal wxprintdata.
void setprinttofile(bool flag)
sets the 'print to file' checkbox to true or false.
void 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.
void 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.
void settopage(int page)
sets the to page number.
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.
include "./_footer.inc"; ?>