CPdrControl Class Reference

class CPdrControl : public CPrinterControl

Inherits from

Public Member Functions
~CPdrControl()
IMPORT_C voidAbortPrint()
CBandedDevice *BandedDevice()
IMPORT_C TIntBandsPerPage()
IMPORT_C TIntCreateContext(CGraphicsContext *&)
IMPORT_C voidDrawTextL(const TPoint &, const TFontUnderline, const TFontStrikethrough, const TRgb &, const CInfoFont *, const TDesC &)
IMPORT_C TBoolIsGraphicsBand()
IMPORT_C voidQueueEndPrint(TRequestStatus &)
IMPORT_C TMoreOnPageQueueGetBand(TRequestStatus &, TBandAttributes &)
Protected Member Functions
CPdrControl(CPdrDevice *, CPrinterPort *)
IMPORT_C voidCommandL(const TInt)
IMPORT_C TBoolCompressBuffer()
IMPORT_C voidConstructL(CStreamStore &, TStreamId)
IMPORT_C voidDoQueueEndPrintL()
IMPORT_C voidDoQueueGetBandL()
IMPORT_C voidMoveByL(const TPoint &)
IMPORT_C voidMoveToL(const TPoint &)
voidOutputBandL()
IMPORT_C voidOutputTextL(const TPoint &, TInt, const TTextFormat &, const TDesC8 &)
IMPORT_C voidSetFontPostureL(const TFontPosture)
IMPORT_C voidSetFontStrokeWeightL(const TFontStrokeWeight)
IMPORT_C voidSetPageOrientationL()
IMPORT_C voidSetPageSizeL()
IMPORT_C voidSetTextColorL(const TRgb &)
IMPORT_C TBoolTransformBuffer()
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CPrinterControl::CPrinterControl(CPrinterPort *)
CPrinterControl::~CPrinterControl()
Inherited Enumerations
CPrinterControl:TMoreOnPage
CPrinterControl:TState
Protected Attributes
TInt iBandIndex
CBandedDevice *iBandedDevice
TInt iEntryIndex
CPageBuffer *iPageBuffer
CPageText *iPageText
CPdrDevice *iPdrDevice
TPoint iPosition
CPdrResources *iResources
TTextFormat iTextFormat
Inherited Attributes
CPrinterControl::iPrinterPort
CPrinterControl::iState

Constructor & Destructor Documentation

CPdrControl(CPdrDevice *, CPrinterPort *)

IMPORT_CCPdrControl(CPdrDevice *aPdrDevice,
CPrinterPort *aPrinterPort
)[protected]

Parameters

CPdrDevice * aPdrDevice
CPrinterPort * aPrinterPort

~CPdrControl()

IMPORT_C~CPdrControl()

Member Functions Documentation

AbortPrint()

IMPORT_C voidAbortPrint()[virtual]

Aborts the print process before it has completed.

This function should be called if QueueGetBand() reports an error.

BandedDevice()

CBandedDevice *BandedDevice()const [inline]

BandsPerPage()

IMPORT_C TIntBandsPerPage()[virtual]

Gets the number of bands per page.

CommandL(const TInt)

IMPORT_C voidCommandL(const TIntanId)[protected, virtual]

Parameters

const TInt anId

CompressBuffer()

IMPORT_C TBoolCompressBuffer()[protected]

ConstructL(CStreamStore &, TStreamId)

IMPORT_C voidConstructL(CStreamStore &aStore,
TStreamIdaStreamId
)[protected]

Parameters

CStreamStore & aStore
TStreamId aStreamId

CreateContext(CGraphicsContext *&)

IMPORT_C TIntCreateContext(CGraphicsContext *&aGC)

Parameters

CGraphicsContext *& aGC

DoQueueEndPrintL()

IMPORT_C voidDoQueueEndPrintL()[protected, virtual]

DoQueueGetBandL()

IMPORT_C voidDoQueueGetBandL()[protected, virtual]

DrawTextL(const TPoint &, const TFontUnderline, const TFontStrikethrough, const TRgb &, const CInfoFont *, const TDesC &)

IMPORT_C voidDrawTextL(const TPoint &aPoint,
const TFontUnderlineaUnderlineStyle,
const TFontStrikethroughaStrikethroughStyle,
const TRgb &aColor,
const CInfoFont *aFont,
const TDesC &aString
)[virtual]

Parameters

const TPoint & aPoint
const TFontUnderline aUnderlineStyle
const TFontStrikethrough aStrikethroughStyle
const TRgb & aColor
const CInfoFont * aFont
const TDesC & aString

IsGraphicsBand()

IMPORT_C TBoolIsGraphicsBand()const

MoveByL(const TPoint &)

IMPORT_C voidMoveByL(const TPoint &aVector)[protected, virtual]

Parameters

const TPoint & aVector

MoveToL(const TPoint &)

IMPORT_C voidMoveToL(const TPoint &aPoint)[protected, virtual]

Parameters

const TPoint & aPoint

OutputBandL()

voidOutputBandL()[protected, pure virtual]

OutputTextL(const TPoint &, TInt, const TTextFormat &, const TDesC8 &)

IMPORT_C voidOutputTextL(const TPoint &aPoint,
TIntaWidthInPixels,
const TTextFormat &aTextFormat,
const TDesC8 &aString
)[protected, virtual]

Parameters

const TPoint & aPoint
TInt aWidthInPixels
const TTextFormat & aTextFormat
const TDesC8 & aString

QueueEndPrint(TRequestStatus &)

IMPORT_C voidQueueEndPrint(TRequestStatus &aStatus)[virtual]

Terminates the print process.

This is an asynchronous function and is called when no more bands in the document remain to be printed.Note that all bands have been printed when no more pages or copies remain to be printed, and QueueGetBand() returns ENoMoreToPrint.

Parameters

TRequestStatus & aStatusRequest status object. On successful completion contains KErrNone, otherwise another of the system-wide error codes.

QueueGetBand(TRequestStatus &, TBandAttributes &)

IMPORT_C TMoreOnPageQueueGetBand(TRequestStatus &aStatus,
TBandAttributes &aBand
)[virtual]

Prints the next band on the page.

This is an asynchronous function.

Parameters

TRequestStatus & aStatusRequest status object. On successful completion contains KErrNone, otherwise another of the system-wide error codes.
TBandAttributes & aBandOn return, indicates the attributes of the band, including its height and width and whether or not the device will ignore one or other of graphics or text output. This information may be used by applications to draw more efficiently, or may be ignored

SetFontPostureL(const TFontPosture)

IMPORT_C voidSetFontPostureL(const TFontPostureaPosture)[protected, virtual]

Parameters

const TFontPosture aPosture

SetFontStrokeWeightL(const TFontStrokeWeight)

IMPORT_C voidSetFontStrokeWeightL(const TFontStrokeWeightaStrokeWeight)[protected, virtual]

Parameters

const TFontStrokeWeight aStrokeWeight

SetPageOrientationL()

IMPORT_C voidSetPageOrientationL()[protected, virtual]

SetPageSizeL()

IMPORT_C voidSetPageSizeL()[protected, virtual]

SetTextColorL(const TRgb &)

IMPORT_C voidSetTextColorL(const TRgb &aColor)[protected, virtual]

Parameters

const TRgb & aColor

TransformBuffer()

IMPORT_C TBoolTransformBuffer()[protected]

Member Data Documentation

TInt iBandIndex

TInt iBandIndex[protected]

CBandedDevice * iBandedDevice

CBandedDevice *iBandedDevice[protected]

TInt iEntryIndex

TInt iEntryIndex[protected]

CPageBuffer * iPageBuffer

CPageBuffer *iPageBuffer[protected]

CPageText * iPageText

CPageText *iPageText[protected]

CPdrDevice * iPdrDevice

CPdrDevice *iPdrDevice[protected]

TPoint iPosition

TPoint iPosition[protected]

CPdrResources * iResources

CPdrResources *iResources[protected]

TTextFormat iTextFormat

TTextFormat iTextFormat[protected]