CFbsDrvDevice Class Reference

class CFbsDrvDevice : public CPdrDevice
Public Member Functions
CFbsDrvDevice ()
~CFbsDrvDevice ()
IMPORT_C TInt CreateContext ( CGraphicsContext *&)
IMPORT_C void CreateControlL ( CPrinterPort *)
IMPORT_C TInt FontHeightInTwips ( TInt , TInt )
IMPORT_C TInt GetNearestFontInTwips ( CFont *&, const TFontSpec &)
IMPORT_C TInt GetNearestFontToDesignHeightInTwips ( CFont *&, const TFontSpec &)
IMPORT_C void LoadTypeFaceList ()
IMPORT_C void LoadTypeFaceListL ()
IMPORT_C void ReleaseFont ( CFont *)
IMPORT_C TInt SetModel (const TPrinterModelHeader &, CStreamStore &)
IMPORT_C TInt SetModelL (const TPrinterModelHeader &, CStreamStore &)
IMPORT_C void TypefaceSupport ( TTypefaceSupport &, TInt )
Private Member Functions
IMPORT_C void Reserved_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_C CFbsDrvDevice ( )

~CFbsDrvDevice()

IMPORT_C ~CFbsDrvDevice ( )

Member Functions Documentation

CreateContext(CGraphicsContext *&)

IMPORT_C TInt CreateContext ( CGraphicsContext *& aGC ) [virtual]

Creates a graphics context for the device.

Parameters

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

CreateControlL(CPrinterPort *)

IMPORT_C void CreateControlL ( 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 * aPrinterPort Pointer to an instance of a printer port.

FontHeightInTwips(TInt, TInt)

IMPORT_C TInt FontHeightInTwips ( TInt aTypefaceIndex,
TInt aHeightIndex
) 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 aTypefaceIndex An index identifying the typeface, in the range: 0 to (NumTypefaces() - 1).
TInt aHeightIndex An 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 TInt GetNearestFontInTwips ( 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 *& aFont On return, points to the font which most closely matches the specified font.
const TFontSpec & aFontSpec An absolute font specification. Its iHeight member is interpreted as being in twips.

GetNearestFontToDesignHeightInTwips(CFont *&, const TFontSpec &)

IMPORT_C TInt GetNearestFontToDesignHeightInTwips ( 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 *& aFont On return, points to the font which most closely matches the specified font.
const TFontSpec & aFontSpec An absolute font specification. Its iHeight member is interpreted as being in twips.

LoadTypeFaceList()

IMPORT_C void LoadTypeFaceList ( )

LoadTypeFaceListL()

IMPORT_C void LoadTypeFaceListL ( )

New Updated LoadTypeFaceList() method

ReleaseFont(CFont *)

IMPORT_C void ReleaseFont ( CFont * aFont )

Parameters

CFont * aFont

Reserved_1()

IMPORT_C void Reserved_1 ( ) [private, virtual]

SetModel(const TPrinterModelHeader &, CStreamStore &)

IMPORT_C TInt SetModel ( 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 TInt SetModelL ( const TPrinterModelHeader & aModel,
CStreamStore & aStore
)

Parameters

const TPrinterModelHeader & aModel
CStreamStore & aStore

TypefaceSupport(TTypefaceSupport &, TInt)

IMPORT_C void TypefaceSupport ( TTypefaceSupport & aTypefaceSupport,
TInt aTypefaceIndex
) 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 & aTypefaceSupport On return, contains the typeface information.
TInt aTypefaceIndex A 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]