rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Foundation Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvPrintInchUnit Class Reference

Class for measurement system in inches. More...

#include <ilviews/printing/units.h>

Inheritance diagram for IlvPrintInchUnit:
IlvPrintUnit

List of all members.

Public Member Functions

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

Detailed Description

Class for measurement system in inches.

Library: ilvprint


Constructor & Destructor Documentation

IlvPrintInchUnit::IlvPrintInchUnit (  ) 

Default constructor.

It initializes the object in a coherent state.

IlvPrintInchUnit::IlvPrintInchUnit ( IlvPrintInchUnit const &  other  ) 

Copy constructor.

It creates an IlvPrintInchUnit from another IlvPrintInchUnit object.

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

Conversion constructor from an IlvPrintUnit.

It creates an IlvPrintInchUnit from an IlvPrintUnit object.

Parameters:
other A const reference to an IlvPrintUnit.
IlvPrintInchUnit::IlvPrintInchUnit ( 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 IlvPrintInchUnit::getPoints (  )  const [virtual]

Returns the value expressed in points.

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

Returns:
A double, the value expressed in points.

Implements IlvPrintUnit.

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

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

Returns:
An IlString, the name of the unit.

Implements IlvPrintUnit.

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

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

Returns:
An IlString, the plural name unit.

Implements IlvPrintUnit.

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

Sets the value expressed in points.

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

Parameters:
points A double, the value expressed in points.

Implements IlvPrintUnit.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

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