Rogue Wave Views 5.6 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Class for measurement system in pica. More...
#include <ilviews/printing/units.h>
Public Member Functions | |
IlvPrintPicaUnit (double units) | |
Conversion constructor from a double. | |
IlvPrintPicaUnit (IlvPrintUnit const &other) | |
Conversion constructor from an IlvPrintUnit . | |
IlvPrintPicaUnit (IlvPrintPicaUnit const &other) | |
Copy constructor. | |
IlvPrintPicaUnit () | |
Default constructor. | |
virtual double | getPoints () const |
Returns the value expressed in points. | |
virtual IlString | getUnitName () const |
Returns a string that is the name of the unit (pica). | |
virtual void | setPoints (double points) |
Sets the value expressed in points. | |
Protected Member Functions | |
virtual IlString | getUnitNamePlural () const |
Returns a string that is the plural name of the unit (picas). |
Class for measurement system in pica.
Library: ilvprint
IlvPrintPicaUnit::IlvPrintPicaUnit | ( | ) |
Default constructor.
It initializes the object in a coherent state.
IlvPrintPicaUnit::IlvPrintPicaUnit | ( | IlvPrintPicaUnit const & | other | ) |
Copy constructor.
It creates an IlvPrintPicaUnit
from another IlvPrintPicaUnit
object.
other | A const reference to an IlvPrintPicaUnit . |
IlvPrintPicaUnit::IlvPrintPicaUnit | ( | IlvPrintUnit const & | other | ) |
Conversion constructor from an IlvPrintUnit
.
It creates an IlvPrintPicaUnit
from an IlvPrintUnit
object.
other | A const reference to an IlvPrintUnit . |
IlvPrintPicaUnit::IlvPrintPicaUnit | ( | double | units | ) |
Conversion constructor from a double.
This constructor creates an IlvPrint
from a double.
units | A double, the number of units of the IlvPrintUnit . |
virtual double IlvPrintPicaUnit::getPoints | ( | ) | const [virtual] |
Returns the value expressed in points.
It translates the value returned by getUnits
, expressed in pica units, into a value expressed in points.
Implements IlvPrintUnit.
virtual IlString IlvPrintPicaUnit::getUnitName | ( | ) | const [virtual] |
Returns a string that is the name of the unit (pica).
IlString
, the name of the unit. Implements IlvPrintUnit.
virtual IlString IlvPrintPicaUnit::getUnitNamePlural | ( | ) | const [protected, virtual] |
Returns a string that is the plural name of the unit (picas).
IlString
, the plural name unit. Implements IlvPrintUnit.
virtual void IlvPrintPicaUnit::setPoints | ( | double | points | ) | [virtual] |
Sets the value expressed in points.
It translates the value given as parameter, expressed in points, into pica units and then stores it (through setUnits
).
points | A double, the value expressed in points. |
Implements IlvPrintUnit.
© Copyright 2012, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.