| 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() |
| 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 | |
| IMPORT_C TInt | CreateContext | ( | CGraphicsContext *& | aGC | ) | [virtual] |
Creates a graphics context for the device.
| CGraphicsContext *& aGC | On return, contains a pointer to the created graphics context. |
| 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().
| CPrinterPort * aPrinterPort | Pointer to an instance of a printer port. |
| 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.
| 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()
| 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()
| 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
| const TPrinterModelHeader & aModel | |
| CStreamStore & aStore |
| IMPORT_C TInt | SetModelL | ( | const TPrinterModelHeader & | aModel, |
| CStreamStore & | aStore | |||
| ) | ||||
| const TPrinterModelHeader & aModel | |
| CStreamStore & aStore |
| 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
| TTypefaceSupport & aTypefaceSupport | On return, contains the typeface information. |
| TInt aTypefaceIndex | A typeface index number, in the range: zero to (NumTypefaces() - 1). |
| CArrayFixFlat< TInt > * | iGenTypefaceFontsList | [protected] |
| CArrayFixFlat< TInt > * | iGenTypefaceFontsType | [protected] |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.