Views
Foundation Package API Reference Guide
Product Documentation:
Views Documentation Home
List of all members | Public Member Functions
IlvPrintableDocument::ThresholdHook Class Referenceabstract

Hook class to decide what to do when there are too many pages to print. More...

#include <ilviews/printing/document.h>

Public Member Functions

virtual ~ThresholdHook ()
 The destructor. More...
 
virtual IlBoolean checks (int pageNumber) const =0
 This functions checks whether the print can be achieved. More...
 

Detailed Description

Hook class to decide what to do when there are too many pages to print.

Library: ilvprint

This is an abstract class.

Constructor & Destructor Documentation

◆ ~ThresholdHook()

virtual IlvPrintableDocument::ThresholdHook::~ThresholdHook ( )
virtual

The destructor.

Cleans the resources used by the object.

Member Function Documentation

◆ checks()

virtual IlBoolean IlvPrintableDocument::ThresholdHook::checks ( int  pageNumber) const
pure virtual

This functions checks whether the print can be achieved.

This pure virtual function is intended to be overloaded.

If the return of this operator is IlFalse, the printing will be aborted.

Parameters
pageNumberThe current number of pages that must be printed.
Returns
A Boolean that forces the printing when it is IlTrue; aborts it otherwise.