Class to handle a dialog to initialize or modify the settings.
More...
#include <C:/jenkins/workspace/Views-all/views/include.doc/ilviews/printing/psprinter.h>
Class to handle a dialog to initialize or modify the settings.
Library: ilvprint
ilviews/printing/psprinter.h ilviews/printing/psprinter.h
This class is abstract and must be inherited.
◆ ~DialogHandle()
virtual IlvPSPrinter::DialogHandle::~DialogHandle |
( |
| ) |
|
|
virtual |
Destructor.
This function does not do anything. Its purpose is to be overridden if needed.
◆ getCopiesNumber()
virtual IlUInt IlvPSPrinter::DialogHandle::getCopiesNumber |
( |
| ) |
const |
|
pure virtual |
Returns the selected number of copies.
- Returns
- The selected number of copies.
◆ GetFactory()
Gets the dialog handle factory.
This factory, if it exists, is used to build a DialogHandle
.
- Returns
- A pointer to the current
Factory
.
◆ getFilename()
virtual IlString IlvPSPrinter::DialogHandle::getFilename |
( |
| ) |
const |
|
pure virtual |
Returns the selected file name.
- Returns
- The selected file name.
◆ getMargins()
virtual void IlvPSPrinter::DialogHandle::getMargins |
( |
IlvDim & |
left, |
|
|
IlvDim & |
right, |
|
|
IlvDim & |
top, |
|
|
IlvDim & |
bottom |
|
) |
| const |
|
pure virtual |
Gets the selected margin values.
- Parameters
-
left | The left border value. |
right | The right border value. |
top | The top border value. |
bottom | The bottom border value. |
◆ getOrientation()
Returns the selected printer orientation.
- Returns
- The printer orientation.
◆ getPaperFormat()
virtual IlvPaperFormat const& IlvPSPrinter::DialogHandle::getPaperFormat |
( |
| ) |
const |
|
pure virtual |
Returns the selected paper format.
- Returns
- The paper format.
◆ isCollateOn()
virtual IlBoolean IlvPSPrinter::DialogHandle::isCollateOn |
( |
| ) |
const |
|
pure virtual |
Returns whether collate is selected.
- Returns
IlTrue
if collate is selected, IlFalse
if not.
◆ isColorModeOn()
virtual IlBoolean IlvPSPrinter::DialogHandle::isColorModeOn |
( |
| ) |
const |
|
pure virtual |
Returns a Boolean indicting the color mode.
- Returns
IlTrue
if color is selected, IlFalse
if gray scale is selected.
◆ setCollate()
virtual void IlvPSPrinter::DialogHandle::setCollate |
( |
IlBoolean |
collate | ) |
|
|
pure virtual |
Sets whether collate is selected by default. When printing N copies of a document, if collate is 'off', each page of the document is printed N times. If collate is 'on' the whole document is printed
N times. Collate works only when printing multiple copies of a document.
- Parameters
-
collate | An IlBoolean indicating if collate is selected by default. |
◆ setColorMode()
virtual void IlvPSPrinter::DialogHandle::setColorMode |
( |
IlBoolean |
useColor | ) |
|
|
pure virtual |
Sets the default color mode.
- Parameters
-
useColor | IlTrue if color is selected by default, IlFalse if gray scale is selected. |
◆ setCopiesNumber()
virtual void IlvPSPrinter::DialogHandle::setCopiesNumber |
( |
IlUInt |
copies | ) |
|
|
pure virtual |
Sets the default number of copies.
- Parameters
-
copies | The number of copies. |
◆ SetFactory()
void IlvPSPrinter::DialogHandle::SetFactory |
( |
Factory * |
factory | ) |
|
|
static |
Sets the dialog handle factory.
This factory, if it exists, is used to build a DialogHandle
.
- Parameters
-
◆ setFilename()
virtual void IlvPSPrinter::DialogHandle::setFilename |
( |
IlString const & |
name | ) |
|
|
pure virtual |
Sets the default file name.
- Parameters
-
name | The default file name. |
◆ setOrientation()
Sets the default printer orientation.
- Parameters
-
orientation | The new printer orientation. |
◆ setPaperFormat()
virtual void IlvPSPrinter::DialogHandle::setPaperFormat |
( |
IlString const & |
format | ) |
|
|
pure virtual |
Sets the default paper format.
- Parameters
-
format | The name of the new default format. |