Contents Up Previous Next

wxPrintData

This class holds a variety of information related to print dialogs.

Derived from

wxObject

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

wxPrintData()

Constructor.


wxPrintData::~wxPrintData

~wxPrintData()

Destructor.


wxPrintData::EnableHelp

void EnableHelp(bool flag)

Enables or disables the 'Help' button.


wxPrintData::EnablePageNumbers

void EnablePageNumbers(bool flag)

Enables or disables the 'Page numbers' controls.


wxPrintData::EnablePrintToFile

void EnablePrintToFile(bool flag)

Enables or disables the 'Print to file' checkbox.


wxPrintData::EnableSelection

void EnableSelection(bool flag)

Enables or disables the 'Selection' radio button.


wxPrintData::GetAllPages

bool GetAllPages()

Returns TRUE if the user requested that all pages be printed.


wxPrintData::GetCollate

bool GetCollate()

Returns TRUE if the user requested that the document(s) be collated.


wxPrintData::GetFromPage

int GetFromPage()

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


wxPrintData::GetMaxPage

int GetMaxPage()

Returns the maximum page number.


wxPrintData::GetMinPage

int GetMinPage()

Returns the minimum page number.


wxPrintData::GetNoCopies

int GetNoCopies()

Returns the number of copies requested by the user.


wxPrintData::GetOrientation

int GetOrientation()

Gets the orientation. This can be wxLANDSCAPE or wxPORTRAIT.


wxPrintData::GetToPage

int GetToPage()

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


wxPrintData::SetCollate

void SetCollate(bool flag)

Sets the 'Collate' checkbox to TRUE or FALSE.


wxPrintData::SetFromPage

void SetFromPage(int page)

Sets the from page number.


wxPrintData::SetMaxPage

void SetMaxPage(int page)

Sets the maximum page number.


wxPrintData::SetMinPage

void SetMinPage(int page)

Sets the minimum page number.


wxPrintData::SetOrientation

void SetOrientation(int orientation)

Sets the orientation. This can be wxLANDSCAPE or wxPORTRAIT.


wxPrintData::SetNoCopies

void SetNoCopies(int n)

Sets the default number of copies to be printed out.


wxPrintData::SetPrintToFile

void SetPrintToFile(bool flag)

Sets the 'Print to file' checkbox to TRUE or FALSE.


wxPrintData::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).

Note that the setup dialog is obsolete from Windows 95, though retained for backward compatibility.


wxPrintData::SetToPage

void SetToPage(int page)

Sets the to page number.