rwlogo

Rogue Wave Views
Foundation Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
List of all members | Public Member Functions | Protected Member Functions
IlvPrintPicaUnit Class Reference

Class for measurement system in pica. More...

#include <ilviews/printing/units.h>

Inheritance diagram for IlvPrintPicaUnit:
IlvPrintUnit

Public Member Functions

 IlvPrintPicaUnit ()
 Default constructor. More...
 
 IlvPrintPicaUnit (IlvPrintPicaUnit const &other)
 Copy constructor. More...
 
 IlvPrintPicaUnit (IlvPrintUnit const &other)
 Conversion constructor from an IlvPrintUnit. More...
 
 IlvPrintPicaUnit (double units)
 Conversion constructor from a double. More...
 
virtual double getPoints () const
 Returns the value expressed in points. More...
 
virtual IlString getUnitName () const
 Returns a string that is the name of the unit (pica). More...
 
virtual void setPoints (double points)
 Sets the value expressed in points. More...
 
- Public Member Functions inherited from IlvPrintUnit
 IlvPrintUnit ()
 Default constructor. More...
 
 IlvPrintUnit (double units)
 Conversion constructor from a double. More...
 
virtual ~IlvPrintUnit ()
 Destructor. More...
 
double getUnits () const
 Returns the value expressed in units. More...
 
IlBoolean operator!= (IlvPrintUnit const &other) const
 InEquality test. More...
 
IlvPrintUnitoperator*= (double units)
 Multiplies the current object by the value expressed in units given as parameter. More...
 
IlvPrintUnitoperator+= (IlvPrintUnit const &other)
 Adds to the current object the value of the object given as parameter. More...
 
IlvPrintUnitoperator+= (double units)
 Adds to the current object the value expressed in units given as parameter. More...
 
IlvPrintUnitoperator-= (IlvPrintUnit const &other)
 Subtracts from the current object the value of the object given as parameter. More...
 
IlvPrintUnitoperator-= (double units)
 Subtracts from the current object the value expressed in units given as parameter. More...
 
IlvPrintUnitoperator/= (double units)
 Divides the current object by the value expressed in units given as parameter. More...
 
IlvPrintUnitoperator= (IlvPrintUnit const &other)
 Assignment operator. More...
 
IlvPrintUnitoperator= (double units)
 Assignment operator. More...
 
IlBoolean operator== (IlvPrintUnit const &other) const
 Equality test. More...
 
void setUnits (double units)
 Sets the value expressed in units. More...
 
IlString toString () const
 Returns a string representation of the value expressed in units. More...
 

Protected Member Functions

virtual IlString getUnitNamePlural () const
 Returns a string that is the plural name of the unit (picas). More...
 

Detailed Description

Class for measurement system in pica.

Library: ilvprint

Constructor & Destructor Documentation

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.

Parameters
otherA const reference to an IlvPrintPicaUnit.
IlvPrintPicaUnit::IlvPrintPicaUnit ( IlvPrintUnit const &  other)

Conversion constructor from an IlvPrintUnit.

It creates an IlvPrintPicaUnit from an IlvPrintUnit object.

Parameters
otherA const reference to an IlvPrintUnit.
IlvPrintPicaUnit::IlvPrintPicaUnit ( double  units)

Conversion constructor from a double.

This constructor creates an IlvPrint from a double.

Parameters
unitsA double, the number of units of the IlvPrintUnit.

Member Function Documentation

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.

Returns
A double, the value expressed in points.

Implements IlvPrintUnit.

virtual IlString IlvPrintPicaUnit::getUnitName ( ) const
virtual

Returns a string that is the name of the unit (pica).

Returns
An IlString, the name of the unit.

Implements IlvPrintUnit.

virtual IlString IlvPrintPicaUnit::getUnitNamePlural ( ) const
protectedvirtual

Returns a string that is the plural name of the unit (picas).

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

Parameters
pointsA double, the value expressed in points.

Implements IlvPrintUnit.


© Copyright 2015, 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.