contents up previous next

wxprintdialogdata

this class holds information related to the visual characteristics of wxprintdialog. it contains a wxprintdata object with underlying printing settings.

derived from

wxobject

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

wxprintdialogdata()

default constructor.

wxprintdialogdata(wxprintdialogdata& dialogdata)

copy constructor.

wxprintdialogdata(wxprintdata& printdata)

construct an object from a print dialog data object.


wxprintdialogdata::~wxprintdialogdata

~wxprintdialogdata()

destructor.


wxprintdialogdata::enablehelp

void enablehelp(bool flag)

enables or disables the 'help' button.


wxprintdialogdata::enablepagenumbers

void enablepagenumbers(bool flag)

enables or disables the 'page numbers' controls.


wxprintdialogdata::enableprinttofile

void enableprinttofile(bool flag)

enables or disables the 'print to file' checkbox.


wxprintdialogdata::enableselection

void enableselection(bool flag)

enables or disables the 'selection' radio button.


wxprintdialogdata::getallpages

bool getallpages() const

returns true if the user requested that all pages be printed.


wxprintdialogdata::getcollate

bool getcollate() const

returns true if the user requested that the document(s) be collated.


wxprintdialogdata::getfrompage

int getfrompage() const

returns the from page number, as entered by the user.


wxprintdialogdata::getmaxpage

int getmaxpage() const

returns the maximum page number.


wxprintdialogdata::getminpage

int getminpage() const

returns the minimum page number.


wxprintdialogdata::getnocopies

int getnocopies() const

returns the number of copies requested by the user.


wxprintdialogdata::getprintdata

wxprintdata& getprintdata()

returns a reference to the internal wxprintdata object.


wxprintdialogdata::getprinttofile

bool getprinttofile() const

returns true if the user has selected printing to a file.


wxprintdialogdata::getselection

bool getselection() const

returns true if the user requested that the selection be printed (where 'selection' is a concept specific to the application).


wxprintdialogdata::gettopage

int gettopage() const

returns the to page number, as entered by the user.


wxprintdialogdata::isok

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.


wxprintdialogdata::setcollate

void setcollate(bool flag)

sets the 'collate' checkbox to true or false.


wxprintdialogdata::setfrompage

void setfrompage(int page)

sets the from page number.


wxprintdialogdata::setmaxpage

void setmaxpage(int page)

sets the maximum page number.


wxprintdialogdata::setminpage

void setminpage(int page)

sets the minimum page number.


wxprintdialogdata::setnocopies

void setnocopies(int n)

sets the default number of copies the user has requested to be printed out.


wxprintdialogdata::setprintdata

void setprintdata(const wxprintdata& printdata)

sets the internal wxprintdata.


wxprintdialogdata::setprinttofile

void setprinttofile(bool flag)

sets the 'print to file' checkbox to true or false.


wxprintdialogdata::setselection

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.


wxprintdialogdata::setsetupdialog

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.


wxprintdialogdata::settopage

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