CPdrControl Class Reference

class CPdrControl : public CPrinterControl

Inherits from

Public Member Functions
~CPdrControl ()
IMPORT_C void AbortPrint ()
CBandedDevice * BandedDevice ()
IMPORT_C TInt BandsPerPage ()
IMPORT_C TInt CreateContext ( CGraphicsContext *&)
IMPORT_C void DrawTextL (const TPoint &, const TFontUnderline , const TFontStrikethrough , const TRgb &, const CInfoFont *, const TDesC &)
IMPORT_C TBool IsGraphicsBand ()
IMPORT_C void QueueEndPrint ( TRequestStatus &)
IMPORT_C TMoreOnPage QueueGetBand ( TRequestStatus &, TBandAttributes &)
Protected Member Functions
CPdrControl ( CPdrDevice *, CPrinterPort *)
IMPORT_C void CommandL (const TInt )
IMPORT_C TBool CompressBuffer ()
IMPORT_C void ConstructL ( CStreamStore &, TStreamId )
IMPORT_C void DoQueueEndPrintL ()
IMPORT_C void DoQueueGetBandL ()
IMPORT_C void MoveByL (const TPoint &)
IMPORT_C void MoveToL (const TPoint &)
void OutputBandL ()
IMPORT_C void OutputTextL (const TPoint &, TInt , const TTextFormat &, const TDesC8 &)
IMPORT_C void SetFontPostureL (const TFontPosture )
IMPORT_C void SetFontStrokeWeightL (const TFontStrokeWeight )
IMPORT_C void SetPageOrientationL ()
IMPORT_C void SetPageSizeL ()
IMPORT_C void SetTextColorL (const TRgb &)
IMPORT_C TBool TransformBuffer ()
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_C CPdrControl ( CPdrDevice * aPdrDevice,
CPrinterPort * aPrinterPort
) [protected]

Parameters

CPdrDevice * aPdrDevice
CPrinterPort * aPrinterPort

~CPdrControl()

IMPORT_C ~CPdrControl ( )

Member Functions Documentation

AbortPrint()

IMPORT_C void AbortPrint ( ) [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 TInt BandsPerPage ( ) [virtual]

Gets the number of bands per page.

CommandL(const TInt)

IMPORT_C void CommandL ( const TInt anId ) [protected, virtual]

Parameters

const TInt anId

CompressBuffer()

IMPORT_C TBool CompressBuffer ( ) [protected]

ConstructL(CStreamStore &, TStreamId)

IMPORT_C void ConstructL ( CStreamStore & aStore,
TStreamId aStreamId
) [protected]

Parameters

CStreamStore & aStore
TStreamId aStreamId

CreateContext(CGraphicsContext *&)

IMPORT_C TInt CreateContext ( CGraphicsContext *& aGC )

Parameters

CGraphicsContext *& aGC

DoQueueEndPrintL()

IMPORT_C void DoQueueEndPrintL ( ) [protected, virtual]

DoQueueGetBandL()

IMPORT_C void DoQueueGetBandL ( ) [protected, virtual]

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

IMPORT_C void DrawTextL ( const TPoint & aPoint,
const TFontUnderline aUnderlineStyle,
const TFontStrikethrough aStrikethroughStyle,
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 TBool IsGraphicsBand ( ) const

MoveByL(const TPoint &)

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

Parameters

const TPoint & aVector

MoveToL(const TPoint &)

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

Parameters

const TPoint & aPoint

OutputBandL()

void OutputBandL ( ) [protected, pure virtual]

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

IMPORT_C void OutputTextL ( const TPoint & aPoint,
TInt aWidthInPixels,
const TTextFormat & aTextFormat,
const TDesC8 & aString
) [protected, virtual]

Parameters

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

QueueEndPrint(TRequestStatus &)

IMPORT_C void QueueEndPrint ( 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 & aStatus Request status object. On successful completion contains KErrNone, otherwise another of the system-wide error codes.

QueueGetBand(TRequestStatus &, TBandAttributes &)

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

Prints the next band on the page.

This is an asynchronous function.

Parameters

TRequestStatus & aStatus Request status object. On successful completion contains KErrNone, otherwise another of the system-wide error codes.
TBandAttributes & aBand On 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 void SetFontPostureL ( const TFontPosture aPosture ) [protected, virtual]

Parameters

const TFontPosture aPosture

SetFontStrokeWeightL(const TFontStrokeWeight)

IMPORT_C void SetFontStrokeWeightL ( const TFontStrokeWeight aStrokeWeight ) [protected, virtual]

Parameters

const TFontStrokeWeight aStrokeWeight

SetPageOrientationL()

IMPORT_C void SetPageOrientationL ( ) [protected, virtual]

SetPageSizeL()

IMPORT_C void SetPageSizeL ( ) [protected, virtual]

SetTextColorL(const TRgb &)

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

Parameters

const TRgb & aColor

TransformBuffer()

IMPORT_C TBool TransformBuffer ( ) [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]