|
|
|
class CFbsDrvDevice : public CPdrDevice;
MGraphicsDeviceMap - Interface class for mapping between twips and device-specific units (pixels).
CBase -
Base class for all classes to be instantiated on the heap.
CGraphicsDevice - Specifies the interface for concrete device classes.
CPrinterDevice - Printer graphics device interface.
CPdrDevice - (No abstract)
CFbsDrvDevice - (No abstract)
Defined in CFbsDrvDevice:
CFbsDrvDevice()CreateContext(CGraphicsContext *&)Creates a graphics context for the device.CreateControlL(CPrinterPort *)Creates a printer control.FontHeightInTwips(TInt,TInt)constGet the height of a font in twips.GetNearestFontInTwips(CFont *&,const TFontSpec &)Creates a font from those available in the printer device's typeface store that ...GetNearestFontToDesignHeightInTwips(CFont *&,const TFontSpec &)Creates a font from those available in the printer device's typeface store that ...KPixelSizeInTwips()constLoadTypeFaceList()LoadTypeFaceListL()New Updated CFbsDrvDevice::LoadTypeFaceList() method NumTypefaces()constGets the number of typefaces supported by the graphics device.ReleaseFont(CFont *)Releases the specified font.Reserved_1()SetModel(const TPrinterModelHeader &,CStreamStore &)SetModelL(const TPrinterModelHeader &,CStreamStore &)TypefaceSupport(TTypefaceSupport &,TInt)constGets typeface information for a specified typeface.iFbsTypefaceCountiFbsTypefaceStoreiGenTypefaceFontsListiGenTypefaceFontsTypeiPdrTypefaceCount~CFbsDrvDevice()Inherited from CBase:
Delete(CBase *)Deletes the specified object.Extension_(TUint,TAny *&,TAny *)Extension function operator new(TUint)Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TAny *)Initialises the object to binary zeroes.operator new(TUint,TLeave)Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TLeave,TUint)Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TUint)Allocates the object from the heap and then initialises its contents to binary z...Inherited from CPdrDevice:
DisplayMode()constGets the display mode of the device.Flags()constGetNearestFontToMaxHeightInTwips(CFont *&,const TFontSpec &,TInt)This call is defined because it had to be - it appeared as an abstract virtual i...GetPalette(CPalette *&)constGets the device's current palette.HorizontalPixelsToTwips(TInt)constConverts a horizontal dimension from pixels to twips.HorizontalTwipsToPixels(TInt)constConverts a horizontal dimension from twips to pixels.Model()constGets the printer model entry.OffsetInPixels()PaletteAttributes(TBool &,TInt &)constGets the palette attributes of the device.PrintablePageInPixels()constSelectPageSpecInTwips(const TPageSpec &)Sets the page specification in twips.SetPalette(CPalette *)Sets the device's palette.SizeInPixels()constGets the size of the device area in pixels.SizeInTwips()constGets the size of the device area in twips.VerticalPixelsToTwips(TInt)constConverts a vertical dimension from pixels to twips.VerticalTwipsToPixels(TInt)constConverts a vertical dimension from twips to pixels.iModeliModelInfoiStoreiTypefaceStoreInherited from CPrinterDevice:
CurrentPageSpecInTwips()constGets the current page specification in twips.DeleteControl()Deletes the printer control owned by this object.ExternalizePropertiesL(RWriteStream &)constExternalizes printer properties to the store.InternalizePropertiesL(RReadStream &)Externalizes printer properties to the store.RestorePropertiesL()Restores printer properties. StorePropertiesL()constStores the printer properties. iControlThe printer control.iCurrentPageSpecInTwipsCurrent page specification in twips. Inherited from MGraphicsDeviceMap:
PixelsToTwips(const TPoint &)constConverts a point in pixels to a point in twips.PixelsToTwips(const TRect &)constConverts a rectangle in pixels to a rectangle in twips.TwipsToPixels(const TPoint &)constConverts a point in twips to a point in pixels.TwipsToPixels(const TRect &)constConverts a rectangle in twips to a rectangle in pixels.| Interface status: | deprecated |
IMPORT_C virtual 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 CFbsDrvDevice::ReleaseFont(CFont *).
This function is replaced by CFbsDrvDevice::GetNearestFontToDesignHeightInTwips(CFont *&,const TFontSpec &)
|
|
IMPORT_C virtual 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 CFbsDrvDevice::ReleaseFont(CFont *).
This function replaces CFbsDrvDevice::GetNearestFontInTwips(CFont *&,const TFontSpec &)
|
|
IMPORT_C virtual void ReleaseFont(CFont *aFont);
Releases the specified font.
It is used to indicate that the specified font is no longer needed for use by the device map. As fonts can be shared between applications, this function does not delete the copy of the font from RAM unless the font was only being used by this particular device map.
An implementation is supplied by a derived class.
|
IMPORT_C virtual TInt NumTypefaces() const;
Gets the number of typefaces supported by the graphics device.
|
IMPORT_C virtual void TypefaceSupport(TTypefaceSupport &aTypefaceSupport, TInt aTypefaceIndex) const;
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
|
CFbsDrvDevice::NumTypefaces()constGets the number of typefaces supported by the graphics device.IMPORT_C virtual TInt FontHeightInTwips(TInt aTypefaceIndex, TInt aHeightIndex) const;
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 virtual TInt CreateContext(CGraphicsContext *&aGc);
Creates a graphics context for the device.
|
|
IMPORT_C virtual void CreateControlL(CPrinterPort *aPrinterPort);
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().
|
| Interface status: | deprecated | Interface is deprecated because it is unsafe as it may leave. It is available for backward compatibility reasons only. |
IMPORT_C virtual TInt SetModel(const TPrinterModelHeader &aModel, CStreamStore &aStore);
|
|
| Interface status: | deprecated | Interface is deprecated because it is unsafe as it may leave. It is available for backward compatibility reasons only. |
IMPORT_C void LoadTypeFaceList();
CFbsDrvDevice::LoadTypeFaceListL()New Updated CFbsDrvDevice::LoadTypeFaceList() method IMPORT_C TInt SetModelL(const TPrinterModelHeader &aModel, CStreamStore &aStore);
|
|
protected: TInt iPdrTypefaceCount;