Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <GDI.H>

Class MPageRegionPrinter

class MPageRegionPrinter;

Description

Interface for printing in bands.

This class provides a single MPageRegionPrinter::PrintBandL(CGraphicsDevice *,TInt,const TBandAttributes &) function that prints the body of each page band by band. Classes derived from this interface must provide an implementation of the MPageRegionPrinter::PrintBandL(CGraphicsDevice *,TInt,const TBandAttributes &) function.

Members

Defined in MPageRegionPrinter:


Member functions


PrintBandL(CGraphicsDevice *,TInt,const TBandAttributes &)

virtual void PrintBandL(CGraphicsDevice *aDevice, TInt aPageNo, const TBandAttributes &aBandInPixels)=0;

Description

Prints a band.

Implementations should set up a graphics context to which all drawing should take place using CGraphicsDevice::CreateContext(CGraphicsContext *&). All co-ordinate calculations should be done in twips, and converted into pixels before starting the print job.

Parameters

CGraphicsDevice *aDevice

Pointer to the graphics device representing the printer.

TInt aPageNo

The number of the page containing the band to be printed.

const TBandAttributes &aBandInPixels

Attributes of the band to be printed.