rwlogo
Rogue Wave Views 5.5.1

Rogue Wave Views
Foundation Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvPrintCMUnit Class Reference

Class for measurement system in centimeters. More...

#include <ilviews/printing/units.h>

Inheritance diagram for IlvPrintCMUnit:
IlvPrintUnit

List of all members.

Public Member Functions

 IlvPrintCMUnit (double units)
 Conversion constructor from a double.
 IlvPrintCMUnit (IlvPrintUnit const &other)
 Conversion constructor from an IlvPrintUnit.
 IlvPrintCMUnit (IlvPrintCMUnit const &other)
 Copy constructor.
 IlvPrintCMUnit ()
 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 (cm).
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 (cm).

Detailed Description

Class for measurement system in centimeters.

Library: ilvprint


Constructor & Destructor Documentation

IlvPrintCMUnit::IlvPrintCMUnit (  ) 

Default constructor.

It initializes the object in a coherent state.

IlvPrintCMUnit::IlvPrintCMUnit ( IlvPrintCMUnit const &  other  ) 

Copy constructor.

It creates an IlvPrintCMUnit from another IlvPrintCMUnit object.

Parameters:
other A const reference to an IlvPrintCMUnit.
IlvPrintCMUnit::IlvPrintCMUnit ( IlvPrintUnit const &  other  ) 

Conversion constructor from an IlvPrintUnit.

It creates an IlvPrintCMUnit from an IlvPrintUnit object.

Parameters:
other A const reference to an IlvPrintUnit.
IlvPrintCMUnit::IlvPrintCMUnit ( double  units  ) 

Conversion constructor from a double.

This constructor creates an IlvPrint from a double.

Parameters:
units A double, the number of units of the IlvPrintUnit.

Member Function Documentation

virtual double IlvPrintCMUnit::getPoints (  )  const [virtual]

Returns the value expressed in points.

It translates the value returned by getUnits, expressed in centimeters, into a value expressed in points.

Returns:
A double, the value expressed in points.

Implements IlvPrintUnit.

virtual IlString IlvPrintCMUnit::getUnitName (  )  const [virtual]

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

Returns:
An IlString, the name of the unit.

Implements IlvPrintUnit.

virtual IlString IlvPrintCMUnit::getUnitNamePlural (  )  const [protected, virtual]

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

Returns:
An IlString, the plural name unit.

Implements IlvPrintUnit.

virtual void IlvPrintCMUnit::setPoints ( double  points  )  [virtual]

Sets the value expressed in points.

It translates the value given as parameter, expressed in points, into centimeters and then stores it (through setUnits).

Parameters:
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.