## 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

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

bool Ok() 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).

Note that the setup dialog is (according to Microsoft) obsolete from Windows 95, though retained for backward compatibility.

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