Rogue Wave Views
Foundation Package API Reference Guide
Product Documentation:

Rogue Wave Views
Documentation Home
List of all members | Public Member Functions | Protected Member Functions
IlvPrintableGraphic Class Reference

This class encapsulates an IlvGraphic so that it can be printed with this library. More...

#include <ilviews/printing/printables.h>

Inheritance diagram for IlvPrintableGraphic:
IlvPrintableScalable IlvPrintable

Public Member Functions

 IlvPrintableGraphic (IlvGraphic *graphic, IlBoolean owner=IlTrue, IlvRegion const *clip=0, IlvTransformer const *t=0)
 The constructor. More...
 
 ~IlvPrintableGraphic ()
 The destructor. More...
 
IlvGraphic const * getGraphic () const
 Gets the graphic object to be printed. More...
 
void setGraphic (IlvGraphic *graphic, IlBoolean owner=IlTrue)
 Sets the graphic object to be printed. More...
 
- Public Member Functions inherited from IlvPrintableScalable
 IlvPrintableScalable (IlvRect const &scalableArea, IlvRegion const *clip=0, IlvTransformer const *t=0)
 The default constructor. More...
 
virtual IlvRect getBBox (IlvPrintableJob const &job) const
 Gets the bounding box of the area to print. More...
 
IlvRegion const & getClip () const
 Returns the clip size. More...
 
IlvRect const & getScalableArea () const
 Returns the area to be printed. More...
 
IlvTransformer const * getTransformer () const
 Gets the transformer to be used by the drawing. More...
 
IlBoolean hasClip () const
 Returns an indication of whether a clip was given or not. More...
 
IlBoolean hasTransformer () const
 Returns an indication of whether a transformer was given or not. More...
 
void resetClip ()
 Resets the clip. More...
 
void resetTransformer ()
 Resets the transformer. More...
 
void setClip (IlvRegion const &clip)
 Sets the clip size. More...
 
void setScalableArea (IlvRect const &scalableArea)
 Sets the area to be printed. More...
 
void setTransformer (IlvTransformer const *t)
 Sets the transformer to be used by the drawing. More...
 
- Public Member Functions inherited from IlvPrintable
 IlvPrintable ()
 The default constructor.
 
 IlvPrintable (IlvPrintable const &other)
 The copy constructor. More...
 
virtual ~IlvPrintable ()
 The destructor. More...
 
void lock ()
 Locks the current instance. More...
 
IlvPrintableoperator= (IlvPrintable const &other)
 The assignment operator. More...
 
IlBoolean print (IlvPrintableJob const &job) const
 Prints the contents of the object. More...
 
void unlock ()
 Unlocks the current instance. More...
 

Protected Member Functions

virtual IlBoolean internalPrint (IlvPrintableJob const &job) const
 This function actually prints the document. More...
 

Detailed Description

This class encapsulates an IlvGraphic so that it can be printed with this library.

Library: ilvprint

See also
IlvPrintableDocument::append

Constructor & Destructor Documentation

IlvPrintableGraphic::IlvPrintableGraphic ( IlvGraphic graphic,
IlBoolean  owner = IlTrue,
IlvRegion const *  clip = 0,
IlvTransformer const *  t = 0 
)

The constructor.

Parameters
graphicA const pointer to an IlvGraphic.
ownerIf IlTrue the destructor deletes the graphic object.
clipA const pointer to an IlvRegion that defines the clip.
tA const pointer to an IlvTransformer that defines the transformer used by the drawing.
IlvPrintableGraphic::~IlvPrintableGraphic ( )

The destructor.

Deletes the graphic object when owner.

Member Function Documentation

IlvGraphic const* IlvPrintableGraphic::getGraphic ( ) const

Gets the graphic object to be printed.

Returns
The graphic object to be printed.
virtual IlBoolean IlvPrintableGraphic::internalPrint ( IlvPrintableJob const &  job) const
protectedvirtual

This function actually prints the document.

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

Implements IlvPrintable.

void IlvPrintableGraphic::setGraphic ( IlvGraphic graphic,
IlBoolean  owner = IlTrue 
)

Sets the graphic object to be printed.

Parameters
graphicThe graphic object to be printed.
ownerIf IlTrue the graphic object must be deleted.

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