wxWidgets: wxPageSetupDialogData Class Reference

| Version: 3.1.5

Loading...
Searching...
No Matches
Public Member Functions | List of all members
wxPageSetupDialogData Class Reference
Class List by Category » Printing Framework | Class List by Category » Data Structures

`#include </cygdrive/c/Users/Hamis/Cygwin-packaging/wxWidgets3.1/wxWidgets3.1-3.1.5-4.x86_64/src/wxWidgets-3.1.5/interface/wx/cmndata.h>`

Inheritance diagram for wxPageSetupDialogData:
[legend]

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

<>< =''>:</>&;&;< =''>\ , \ </></>

See also
  Printing Framework Overview, wxPageSetupDialog

## Public Member Functions
| wxPageSetupDialogData ()
| Default constructor.
| wxPageSetupDialogData (const wxPageSetupDialogData &data)
| Copy constructor.
| wxPageSetupDialogData (const wxPrintData &printData)
| Construct an object from a print data object.
virtual | ~wxPageSetupDialogData ()
| Destructor.
void | EnableHelp (bool flag)
| Enables or disables the "Help" button (Windows only).
void | EnableMargins (bool flag)
| Enables or disables the margin controls (Windows only).
void | EnableOrientation (bool flag)
| Enables or disables the orientation control (Windows only).
void | EnablePaper (bool flag)
| Enables or disables the paper size control (Windows only).
void | EnablePrinter (bool flag)
| Enables or disables the "Printer" button, which invokes a printer setup dialog.
bool | GetDefaultInfo () const
| Returns true if the dialog will simply return default printer information (such as orientation) instead of showing a dialog (Windows only).
bool | GetDefaultMinMargins () const
| Returns true if the page setup dialog will take its minimum margin values from the currently selected printer properties (Windows only).
bool | GetEnableHelp () const
| Returns true if the printer setup button is enabled.
bool | GetEnableMargins () const
| Returns true if the margin controls are enabled (Windows only).
bool | GetEnableOrientation () const
| Returns true if the orientation control is enabled (Windows only).
bool | GetEnablePaper () const
| Returns true if the paper size control is enabled (Windows only).
bool | GetEnablePrinter () const
| Returns true if the printer setup button is enabled.
wxPoint | GetMarginBottomRight () const
| Returns the right (x) and bottom (y) margins in millimetres.
wxPoint | GetMarginTopLeft () const
| Returns the left (x) and top (y) margins in millimetres.
wxPoint | GetMinMarginBottomRight () const
| Returns the right (x) and bottom (y) minimum margins the user can enter (Windows only).
wxPoint | GetMinMarginTopLeft () const
| Returns the left (x) and top (y) minimum margins the user can enter (Windows only).
wxPaperSize | GetPaperId () const
| Returns the paper id (stored in the internal wxPrintData object).
wxSize | GetPaperSize () const
| Returns the paper size in millimetres.
wxPrintData & | GetPrintData ()
| Returns a reference to the print data associated with this object.
const wxPrintData & | GetPrintData () const
bool | IsOk () const
| Returns true if the print data associated with the dialog data is valid.
void | 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 | SetDefaultMinMargins (bool flag)
| Pass true if the page setup dialog will take its minimum margin values from the currently selected printer properties (Windows only).
void | SetMarginBottomRight (const wxPoint &pt)
| Sets the right (x) and bottom (y) margins in millimetres.
void | SetMarginTopLeft (const wxPoint &pt)
| Sets the left (x) and top (y) margins in millimetres.
void | SetMinMarginBottomRight (const wxPoint &pt)
| Sets the right (x) and bottom (y) minimum margins the user can enter (Windows only).
void | SetMinMarginTopLeft (const wxPoint &pt)
| Sets the left (x) and top (y) minimum margins the user can enter (Windows only).
void | SetPaperId (wxPaperSize id)
| Sets the paper size id.
void | SetPaperSize (const wxSize &size)
| Sets the paper size in millimetres.
void | SetPrintData (const wxPrintData &printData)
| Sets the print data associated with this object.
wxPageSetupDialogData & | operator= (const wxPrintData &data)
| Assigns print data to this object.
wxPageSetupDialogData & | operator= (const wxPageSetupDialogData &data)
| Assigns page setup data to this object.
Public Member Functions inherited from wxObject
| wxObject ()
| Default ctor; initializes to NULL the internal reference data.
| wxObject (const wxObject &other)
| Copy ctor.
virtual | ~wxObject ()
| Destructor.
virtual wxClassInfo * | GetClassInfo () const
| This virtual function is redefined for every class that requires run-time type information, when using the wxDECLARE_CLASS macro (or similar).
wxObjectRefData * | GetRefData () const
| Returns the wxObject::m_refData pointer, i.e. the data referenced by this object.
bool | IsKindOf (const wxClassInfo *info) const
| Determines whether this class is a subclass of (or the same class as) the given class.
bool | IsSameAs (const wxObject &obj) const
| Returns true if this object has the same data pointer as obj.
void | Ref (const wxObject &clone)
| Makes this object refer to the data in clone.
void | SetRefData (wxObjectRefData *data)
| Sets the wxObject::m_refData pointer.
void | UnRef ()
| Decrements the reference count in the associated data, and if it is zero, deletes the data.
void | UnShare ()
| This is the same of AllocExclusive() but this method is public.
void | operator delete (void *buf)
| The delete operator is defined for debugging versions of the library only, when the identifier `__WXDEBUG__` is defined.
void * | operator new (size_t size, const wxString &filename=NULL, int lineNum=0)
| The new operator is defined for debugging versions of the library only, when the identifier `__WXDEBUG__` is defined.

## Additional Inherited Members
Protected Member Functions inherited from wxObject
void | AllocExclusive ()
| Ensure that this object's data is not shared with any other object.
virtual wxObjectRefData * | CreateRefData () const
| Creates a new instance of the wxObjectRefData-derived class specific to this object and returns it.
virtual wxObjectRefData * | CloneRefData (const wxObjectRefData *data) const
| Creates a new instance of the wxObjectRefData-derived class specific to this object and initializes it copying data.
Protected Attributes inherited from wxObject
wxObjectRefData * | m_refData
| Pointer to an object which is the object's reference-counted data.

## Constructor & Destructor Documentation

## ◆ wxPageSetupDialogData() [1/3]

wxPageSetupDialogData::wxPageSetupDialogData | ( |  | ) |

Default constructor.

## ◆ wxPageSetupDialogData() [2/3]

wxPageSetupDialogData::wxPageSetupDialogData | ( | const wxPageSetupDialogData & | data | ) |

Copy constructor.

## ◆ wxPageSetupDialogData() [3/3]

wxPageSetupDialogData::wxPageSetupDialogData | ( | const wxPrintData & | printData | ) |

Construct an object from a print data object.

## ◆ ~wxPageSetupDialogData()

virtual wxPageSetupDialogData::~wxPageSetupDialogData | ( |  | ) |
| virtual

Destructor.

## Member Function Documentation

## ◆ EnableHelp()

void wxPageSetupDialogData::EnableHelp | ( | bool | flag | ) |

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

## ◆ EnableMargins()

void wxPageSetupDialogData::EnableMargins | ( | bool | flag | ) |

Enables or disables the margin controls (Windows only).

## ◆ EnableOrientation()

void wxPageSetupDialogData::EnableOrientation | ( | bool | flag | ) |

Enables or disables the orientation control (Windows only).

## ◆ EnablePaper()

void wxPageSetupDialogData::EnablePaper | ( | bool | flag | ) |

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

## ◆ EnablePrinter()

void wxPageSetupDialogData::EnablePrinter | ( | bool | flag | ) |

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

## ◆ GetDefaultInfo()

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

## ◆ GetDefaultMinMargins()

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

## ◆ GetEnableHelp()

bool wxPageSetupDialogData::GetEnableHelp | ( |  | ) | const

Returns true if the printer setup button is enabled.

## ◆ GetEnableMargins()

bool wxPageSetupDialogData::GetEnableMargins | ( |  | ) | const

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

## ◆ GetEnableOrientation()

bool wxPageSetupDialogData::GetEnableOrientation | ( |  | ) | const

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

## ◆ GetEnablePaper()

bool wxPageSetupDialogData::GetEnablePaper | ( |  | ) | const

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

## ◆ GetEnablePrinter()

bool wxPageSetupDialogData::GetEnablePrinter | ( |  | ) | const

Returns true if the printer setup button is enabled.

## ◆ GetMarginBottomRight()

wxPoint wxPageSetupDialogData::GetMarginBottomRight | ( |  | ) | const

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

## ◆ GetMarginTopLeft()

wxPoint wxPageSetupDialogData::GetMarginTopLeft | ( |  | ) | const

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

## ◆ GetMinMarginBottomRight()

wxPoint wxPageSetupDialogData::GetMinMarginBottomRight | ( |  | ) | const

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

Units are in millimetres.

## ◆ GetMinMarginTopLeft()

wxPoint wxPageSetupDialogData::GetMinMarginTopLeft | ( |  | ) | const

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

Units are in millimetres.

## ◆ GetPaperId()

wxPaperSize wxPageSetupDialogData::GetPaperId | ( |  | ) | const

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

See also
  wxPrintData::SetPaperId()

## ◆ GetPaperSize()

wxSize wxPageSetupDialogData::GetPaperSize | ( |  | ) | const

Returns the paper size in millimetres.

## ◆ GetPrintData() [1/2]

wxPrintData & wxPageSetupDialogData::GetPrintData | ( |  | ) |

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

## ◆ GetPrintData() [2/2]

const wxPrintData & wxPageSetupDialogData::GetPrintData | ( |  | ) | const

## ◆ IsOk()

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.

## ◆ operator=() [1/2]

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

Assigns page setup data to this object.

## ◆ operator=() [2/2]

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

Assigns print data to this object.

## ◆ SetDefaultInfo()

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

## ◆ SetDefaultMinMargins()

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.

## ◆ SetMarginBottomRight()

void wxPageSetupDialogData::SetMarginBottomRight | ( | const wxPoint & | pt | ) |

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

## ◆ SetMarginTopLeft()

void wxPageSetupDialogData::SetMarginTopLeft | ( | const wxPoint & | pt | ) |

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

## ◆ SetMinMarginBottomRight()

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.

## ◆ SetMinMarginTopLeft()

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.

## ◆ SetPaperId()

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()

## ◆ SetPaperSize()

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.

## ◆ SetPrintData()

void wxPageSetupDialogData::SetPrintData | ( | const wxPrintData & | printData | ) |

Sets the print data associated with this object.