CFbsDrvDevice Class Reference

class CFbsDrvDevice : public CPdrDevice
Public Member Functions
CFbsDrvDevice()
~CFbsDrvDevice()
IMPORT_C TIntCreateContext(CGraphicsContext *&)
IMPORT_C voidCreateControlL(CPrinterPort *)
IMPORT_C TIntFontHeightInTwips(TInt, TInt)
IMPORT_C TIntGetNearestFontInTwips(CFont *&, const TFontSpec &)
IMPORT_C TIntGetNearestFontToDesignHeightInTwips(CFont *&, const TFontSpec &)
IMPORT_C voidLoadTypeFaceList()
IMPORT_C voidLoadTypeFaceListL()
IMPORT_C voidReleaseFont(CFont *)
IMPORT_C TIntSetModel(const TPrinterModelHeader &, CStreamStore &)
IMPORT_C TIntSetModelL(const TPrinterModelHeader &, CStreamStore &)
IMPORT_C voidTypefaceSupport(TTypefaceSupport &, TInt)
Private Member Functions
IMPORT_C voidReserved_1()
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()
CPdrDevice::CPdrDevice()
CPdrDevice::DisplayMode()const
CPdrDevice::Flags()const
CPdrDevice::GetNearestFontToMaxHeightInTwips(CFont *&,const TFontSpec &,TInt)
CPdrDevice::GetPalette(CPalette *&)const
CPdrDevice::HorizontalPixelsToTwips(TInt)const
CPdrDevice::HorizontalTwipsToPixels(TInt)const
CPdrDevice::Model()const
CPdrDevice::OffsetInPixels()
CPdrDevice::PaletteAttributes(TBool &,TInt &)const
CPdrDevice::PrintablePageInPixels()const
CPdrDevice::SelectPageSpecInTwips(const TPageSpec &)
CPdrDevice::SetPalette(CPalette *)
CPdrDevice::SizeInPixels()const
CPdrDevice::SizeInTwips()const
CPdrDevice::VerticalPixelsToTwips(TInt)const
CPdrDevice::VerticalTwipsToPixels(TInt)const
CPdrDevice::~CPdrDevice()
CPrinterDevice::CPrinterDevice()
CPrinterDevice::CurrentPageSpecInTwips()const
CPrinterDevice::DeleteControl()
CPrinterDevice::ExternalizePropertiesL(RWriteStream &)const
CPrinterDevice::InternalizePropertiesL(RReadStream &)
CPrinterDevice::RestorePropertiesL()
CPrinterDevice::StorePropertiesL()const
CPrinterDevice::~CPrinterDevice()
Protected Attributes
TInt iFbsTypefaceCount
CFbsTypefaceStore *iFbsTypefaceStore
CArrayFixFlat< TInt > *iGenTypefaceFontsList
CArrayFixFlat< TInt > *iGenTypefaceFontsType
TInt iPdrTypefaceCount
Private Attributes
TAny *iReserved
Inherited Attributes
CPdrDevice::iModel
CPdrDevice::iModelInfo
CPdrDevice::iStore
CPdrDevice::iTypefaceStore
CPrinterDevice::iControl
CPrinterDevice::iCurrentPageSpecInTwips

Constructor & Destructor Documentation

CFbsDrvDevice()

IMPORT_CCFbsDrvDevice()

~CFbsDrvDevice()

IMPORT_C~CFbsDrvDevice()

Member Functions Documentation

CreateContext(CGraphicsContext *&)

IMPORT_C TIntCreateContext(CGraphicsContext *&aGC)[virtual]

Creates a graphics context for the device.

Parameters

CGraphicsContext *& aGCOn return, contains a pointer to the created graphics context.

CreateControlL(CPrinterPort *)

IMPORT_C voidCreateControlL(CPrinterPort *aPrinterPort)[virtual]

Creates a printer control.

The printer control is an instance of a CPrinterControl derived class; it is assigned to this printer device's iControl member.

Note that this function is called by CPrintSetup::StartPrintL().

Parameters

CPrinterPort * aPrinterPortPointer to an instance of a printer port.

FontHeightInTwips(TInt, TInt)

IMPORT_C TIntFontHeightInTwips(TIntaTypefaceIndex,
TIntaHeightIndex
)const [virtual]

Get the height of a font in twips.

The font is identified by typeface and height.

The value returned is rounded up or down to the nearest font height in twips.

Parameters

TInt aTypefaceIndexAn index identifying the typeface, in the range: 0 to (NumTypefaces() - 1).
TInt aHeightIndexAn index identifying the font height, in the range: 0 to (iNumHeights - 1). Note that iNumHeights is in the TTypefaceSupport object returned by TypefaceSupport().

GetNearestFontInTwips(CFont *&, const TFontSpec &)

IMPORT_C TIntGetNearestFontInTwips(CFont *&aFont,
const TFontSpec &aFontSpec
)

Creates a font from those available in the printer device's typeface store that most closely matches a font specification.

When the font is no longer needed, call ReleaseFont().

This function is replaced by GetNearestFontToDesignHeightInTwips()

Parameters

CFont *& aFontOn return, points to the font which most closely matches the specified font.
const TFontSpec & aFontSpecAn absolute font specification. Its iHeight member is interpreted as being in twips.

GetNearestFontToDesignHeightInTwips(CFont *&, const TFontSpec &)

IMPORT_C TIntGetNearestFontToDesignHeightInTwips(CFont *&aFont,
const TFontSpec &aFontSpec
)

Creates a font from those available in the printer device's typeface store that most closely matches a font specification.

When the font is no longer needed, call ReleaseFont().

This function replaces GetNearestFontInTwips()

Parameters

CFont *& aFontOn return, points to the font which most closely matches the specified font.
const TFontSpec & aFontSpecAn absolute font specification. Its iHeight member is interpreted as being in twips.

LoadTypeFaceList()

IMPORT_C voidLoadTypeFaceList()

LoadTypeFaceListL()

IMPORT_C voidLoadTypeFaceListL()

New Updated LoadTypeFaceList() method

ReleaseFont(CFont *)

IMPORT_C voidReleaseFont(CFont *aFont)

Parameters

CFont * aFont

Reserved_1()

IMPORT_C voidReserved_1()[private, virtual]

SetModel(const TPrinterModelHeader &, CStreamStore &)

IMPORT_C TIntSetModel(const TPrinterModelHeader &aModel,
CStreamStore &aStore
)[virtual]

Interface is deprecated because it is unsafe as it may leave. It is available for backward compatibility reasons only. CFbsDrvDevice::SetModelL

Parameters

const TPrinterModelHeader & aModel
CStreamStore & aStore

SetModelL(const TPrinterModelHeader &, CStreamStore &)

IMPORT_C TIntSetModelL(const TPrinterModelHeader &aModel,
CStreamStore &aStore
)

Parameters

const TPrinterModelHeader & aModel
CStreamStore & aStore

TypefaceSupport(TTypefaceSupport &, TInt)

IMPORT_C voidTypefaceSupport(TTypefaceSupport &aTypefaceSupport,
TIntaTypefaceIndex
)const [virtual]

Gets typeface information for a specified typeface.

This information is returned in aTypefaceSupport, and includes:

the typeface name and typeface attributes

the number of font heights

the maximum and minimum font heights

whether it is a scalable typeface

NumTypefaces()

Parameters

TTypefaceSupport & aTypefaceSupportOn return, contains the typeface information.
TInt aTypefaceIndexA typeface index number, in the range: zero to (NumTypefaces() - 1).

Member Data Documentation

TInt iFbsTypefaceCount

TInt iFbsTypefaceCount[protected]

CFbsTypefaceStore * iFbsTypefaceStore

CFbsTypefaceStore *iFbsTypefaceStore[protected]

CArrayFixFlat< TInt > * iGenTypefaceFontsList

CArrayFixFlat< TInt > *iGenTypefaceFontsList[protected]

CArrayFixFlat< TInt > * iGenTypefaceFontsType

CArrayFixFlat< TInt > *iGenTypefaceFontsType[protected]

TInt iPdrTypefaceCount

TInt iPdrTypefaceCount[protected]

TAny * iReserved

TAny *iReserved[private]