rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Foundation Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

List of all members | Public Member Functions
IlvPrintableArea Class Referenceabstract

Abstract class that represents an area of a logical page. More...

#include <ilviews/printing/layout.h>

Inheritance diagram for IlvPrintableArea:
IlvPrintableActualArea IlvPrintableNullArea

Public Member Functions

IL_EXPLICIT IlvPrintableArea (IlvPrintableLayout const &layout)
 The constructor. More...
 
virtual ~IlvPrintableArea ()
 The destructor. More...
 
virtual IlvPrintableAreaclone () const =0
 Returns a pointer to a new instance of IlvPrintableArea; this object is a copy of the current object. More...
 
IlvPrintableLayout const & getPrintableLayout () const
 Gets the associated IlvPrintableLayout object. More...
 
virtual IlBoolean print (IlvPrintableJob &job, IlvPrintable *printable) const =0
 Prints the area. More...
 
virtual void setBBox (IlvRect const &bbox)=0
 Sets the size of the area. More...
 
virtual void setTransformer (IlvTransformer const &transformer)=0
 Sets the transformer of the area. More...
 

Detailed Description

Abstract class that represents an area of a logical page.

Library: ilvprint

This class is used to represent one of the different areas of the logical page. These areas, in fact rectangles, are:

Constructor & Destructor Documentation

IL_EXPLICIT IlvPrintableArea::IlvPrintableArea ( IlvPrintableLayout const &  layout)

The constructor.

It initializes an IlvPrintableArea object for the IlvPrintableLayout object given as parameter.

Parameters
layoutThe IlvPrintableLayout associated with this object.
virtual IlvPrintableArea::~IlvPrintableArea ( )
virtual

The destructor.

It releases the resources used by this object. It may be overloaded in inherited classes.

Member Function Documentation

virtual IlvPrintableArea* IlvPrintableArea::clone ( ) const
pure virtual

Returns a pointer to a new instance of IlvPrintableArea; this object is a copy of the current object.

This pure virtual member function must be overloaded in inherited classes.

Returns
A pointer to a new IlvPrintableArea*.

Implemented in IlvPrintableActualArea, and IlvPrintableNullArea.

IlvPrintableLayout const & IlvPrintableArea::getPrintableLayout ( ) const

Gets the associated IlvPrintableLayout object.

Returns
The associated IlvPrintableLayout object.
virtual IlBoolean IlvPrintableArea::print ( IlvPrintableJob job,
IlvPrintable printable 
) const
pure virtual

Prints the area.

This function asks for the IlvPrintable referenced by the IlvPrintableJob given as parameter to draw itself in the area of the logical page specified by this object.

This is a pure virtual function and must be overloaded in inherited classes.

Parameters
jobThe settings of the current print job.
Returns
IlFalse when an error occurred during the printing, IlTrue otherwise.

Implemented in IlvPrintableActualArea, and IlvPrintableNullArea.

virtual void IlvPrintableArea::setBBox ( IlvRect const &  bbox)
pure virtual

Sets the size of the area.

This is a pure virtual function and must be overloaded in inherited classes.

Parameters
bboxThe new size of the area.

Implemented in IlvPrintableActualArea, and IlvPrintableNullArea.

virtual void IlvPrintableArea::setTransformer ( IlvTransformer const &  transformer)
pure virtual

Sets the transformer of the area.

This is a pure virtual function and must be overloaded in inherited classes.

Parameters
transformerThe new transformer.

Implemented in IlvPrintableActualArea, and IlvPrintableNullArea.


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