wxPageSetupDialogData Class Reference
[Printing Framework]

#include <wx/cmndata.h>

Inheritance diagram for wxPageSetupDialogData:

wxObject

List of all members.


Detailed Description

This class holds a variety of information related to wxPageSetupDialog.

It contains a wxPrintData member which is used to hold basic printer configuration data (as opposed to the user-interface configuration settings stored by wxPageSetupDialogData).

Library:  wxCore

Category:  Printing Framework

See also:
Printing Framework Overview, wxPageSetupDialog

Public Member Functions

 wxPageSetupDialogData ()
 wxPageSetupDialogData (const wxPageSetupDialogData &data)
 wxPageSetupDialogData (const wxPrintData &printData)
virtual ~wxPageSetupDialogData ()
void EnableHelp (bool flag)
void EnableMargins (bool flag)
void EnableOrientation (bool flag)
void EnablePaper (bool flag)
void EnablePrinter (bool flag)
bool GetDefaultInfo () const
bool GetDefaultMinMargins () const
bool GetEnableHelp () const
bool GetEnableMargins () const
bool GetEnableOrientation () const
bool GetEnablePaper () const
bool GetEnablePrinter () const
wxPoint GetMarginBottomRight () const
wxPoint GetMarginTopLeft () const
wxPoint GetMinMarginBottomRight () const
wxPoint GetMinMarginTopLeft () const
wxPaperSize GetPaperId () const
wxSize GetPaperSize () const
wxPrintDataGetPrintData ()
const wxPrintDataGetPrintData () const
bool IsOk () const
void SetDefaultInfo (bool flag)
void SetDefaultMinMargins (bool flag)
void SetMarginBottomRight (const wxPoint &pt)
void SetMarginTopLeft (const wxPoint &pt)
void SetMinMarginBottomRight (const wxPoint &pt)
void SetMinMarginTopLeft (const wxPoint &pt)
void SetPaperId (wxPaperSize id)
void SetPaperSize (const wxSize &size)
void SetPrintData (const wxPrintData &printData)
wxPageSetupDialogDataoperator= (const wxPrintData &data)
wxPageSetupDialogDataoperator= (const wxPageSetupDialogData &data)

Constructor & Destructor Documentation

wxPageSetupDialogData::wxPageSetupDialogData (  ) 

Default constructor.

wxPageSetupDialogData::wxPageSetupDialogData ( const wxPageSetupDialogData data  ) 

Copy constructor.

wxPageSetupDialogData::wxPageSetupDialogData ( const wxPrintData printData  ) 

Construct an object from a print data object.

virtual wxPageSetupDialogData::~wxPageSetupDialogData (  )  [virtual]

Destructor.


Member Function Documentation

void wxPageSetupDialogData::EnableHelp ( bool  flag  ) 

Enables or disables the "Help" button (Windows only).

void wxPageSetupDialogData::EnableMargins ( bool  flag  ) 

Enables or disables the margin controls (Windows only).

void wxPageSetupDialogData::EnableOrientation ( bool  flag  ) 

Enables or disables the orientation control (Windows only).

void wxPageSetupDialogData::EnablePaper ( bool  flag  ) 

Enables or disables the paper size control (Windows only).

void wxPageSetupDialogData::EnablePrinter ( bool  flag  ) 

Enables or disables the "Printer" button, which invokes a printer setup dialog.

bool wxPageSetupDialogData::GetDefaultInfo (  )  const

Returns true if the dialog will simply return default printer information (such as orientation) instead of showing a dialog (Windows only).

bool wxPageSetupDialogData::GetDefaultMinMargins (  )  const

Returns true if the page setup dialog will take its minimum margin values from the currently selected printer properties (Windows only).

bool wxPageSetupDialogData::GetEnableHelp (  )  const

Returns true if the printer setup button is enabled.

bool wxPageSetupDialogData::GetEnableMargins (  )  const

Returns true if the margin controls are enabled (Windows only).

bool wxPageSetupDialogData::GetEnableOrientation (  )  const

Returns true if the orientation control is enabled (Windows only).

bool wxPageSetupDialogData::GetEnablePaper (  )  const

Returns true if the paper size control is enabled (Windows only).

bool wxPageSetupDialogData::GetEnablePrinter (  )  const

Returns true if the printer setup button is enabled.

wxPoint wxPageSetupDialogData::GetMarginBottomRight (  )  const

Returns the right (x) and bottom (y) margins in millimetres.

wxPoint wxPageSetupDialogData::GetMarginTopLeft (  )  const

Returns the left (x) and top (y) margins in millimetres.

wxPoint wxPageSetupDialogData::GetMinMarginBottomRight (  )  const

Returns the right (x) and bottom (y) minimum margins the user can enter (Windows only). Units are in millimetres.

wxPoint wxPageSetupDialogData::GetMinMarginTopLeft (  )  const

Returns the left (x) and top (y) minimum margins the user can enter (Windows only). Units are in millimetres.

wxPaperSize wxPageSetupDialogData::GetPaperId (  )  const

Returns the paper id (stored in the internal wxPrintData object).

See also:
wxPrintData::SetPaperId()

wxSize wxPageSetupDialogData::GetPaperSize (  )  const

Returns the paper size in millimetres.

wxPrintData& wxPageSetupDialogData::GetPrintData (  ) 

Returns a reference to the print data associated with this object.

const wxPrintData& wxPageSetupDialogData::GetPrintData (  )  const

bool wxPageSetupDialogData::IsOk (  )  const

Returns true if the print data associated with the dialog data is valid. This can return false on Windows if the current printer is not set, for example. On all other platforms, it returns true.

void wxPageSetupDialogData::SetDefaultInfo ( bool  flag  ) 

Pass true if the dialog will simply return default printer information (such as orientation) instead of showing a dialog (Windows only).

void wxPageSetupDialogData::SetDefaultMinMargins ( bool  flag  ) 

Pass true if the page setup dialog will take its minimum margin values from the currently selected printer properties (Windows only). Units are in millimetres.

void wxPageSetupDialogData::SetMarginBottomRight ( const wxPoint pt  ) 

Sets the right (x) and bottom (y) margins in millimetres.

void wxPageSetupDialogData::SetMarginTopLeft ( const wxPoint pt  ) 

Sets the left (x) and top (y) margins in millimetres.

void wxPageSetupDialogData::SetMinMarginBottomRight ( const wxPoint pt  ) 

Sets the right (x) and bottom (y) minimum margins the user can enter (Windows only). Units are in millimetres.

void wxPageSetupDialogData::SetMinMarginTopLeft ( const wxPoint pt  ) 

Sets the left (x) and top (y) minimum margins the user can enter (Windows only). Units are in millimetres.

void wxPageSetupDialogData::SetPaperId ( wxPaperSize  id  ) 

Sets the paper size id. Calling this function overrides the explicit paper dimensions passed in SetPaperSize().

See also:
wxPrintData::SetPaperId()

void wxPageSetupDialogData::SetPaperSize ( const wxSize size  ) 

Sets the paper size in millimetres. If a corresponding paper id is found, it will be set in the internal wxPrintData object, otherwise the paper size overrides the paper id.

void wxPageSetupDialogData::SetPrintData ( const wxPrintData printData  ) 

Sets the print data associated with this object.

wxPageSetupDialogData& wxPageSetupDialogData::operator= ( const wxPrintData data  ) 

Assigns print data to this object.

wxPageSetupDialogData& wxPageSetupDialogData::operator= ( const wxPageSetupDialogData data  ) 

Assigns page setup data to this object.



wxWidgets logo

[ top ]