Location:
pdrstore.h
Link against: pdrstr.lib
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()
, CreateControlL()
, FontHeightInTwips()
, GetNearestFontInTwips()
, GetNearestFontToDesignHeightInTwips()
, KPixelSizeInTwips()
, LoadTypeFaceList()
, LoadTypeFaceListL()
, NumTypefaces()
, ReleaseFont()
, Reserved_1()
, SetModel()
, SetModelL()
, TypefaceSupport()
, iFbsTypefaceCount
, iFbsTypefaceStore
, iGenTypefaceFontsList
, iGenTypefaceFontsType
, iPdrTypefaceCount
, ~CFbsDrvDevice()
Inherited from CBase
:
Delete()
,
Extension_()
,
operator new()
Inherited from CPdrDevice
:
DisplayMode()
,
Flags()
,
GetNearestFontToMaxHeightInTwips()
,
GetPalette()
,
HorizontalPixelsToTwips()
,
HorizontalTwipsToPixels()
,
Model()
,
OffsetInPixels()
,
PaletteAttributes()
,
PrintablePageInPixels()
,
SelectPageSpecInTwips()
,
SetPalette()
,
SizeInPixels()
,
SizeInTwips()
,
VerticalPixelsToTwips()
,
VerticalTwipsToPixels()
,
iModel
,
iModelInfo
,
iStore
,
iTypefaceStore
Inherited from CPrinterDevice
:
CurrentPageSpecInTwips()
,
DeleteControl()
,
ExternalizePropertiesL()
,
InternalizePropertiesL()
,
RestorePropertiesL()
,
StorePropertiesL()
,
iControl
,
iCurrentPageSpecInTwips
Inherited from MGraphicsDeviceMap
:
PixelsToTwips()
,
TwipsToPixels()
virtual 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()
|
|
virtual 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()
|
|
virtual IMPORT_C 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.
|
virtual IMPORT_C TInt NumTypefaces() const;
Gets the number of typefaces supported by the graphics device.
|
virtual IMPORT_C 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
|
virtual IMPORT_C 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.
|
|
virtual IMPORT_C TInt CreateContext(CGraphicsContext *&aGc);
Creates a graphics context for the device.
|
|
virtual IMPORT_C 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().
|
virtual IMPORT_C TInt SetModel(const TPrinterModelHeader &aModel, CStreamStore &aStore);
|
|
IMPORT_C TInt SetModelL(const TPrinterModelHeader &aModel, CStreamStore &aStore);
|
|
protected: TInt iPdrTypefaceCount;