Location:
pdrstore.h
Link against: pdrstr.lib
class CPdrDevice : public CPrinterDevice;
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)
Defined in CPdrDevice
:
CPdrDevice()
, DisplayMode()
, Flags()
, FontHeightInTwips()
, GetNearestFontInTwips()
, GetNearestFontToDesignHeightInTwips()
, GetNearestFontToMaxHeightInTwips()
, GetPalette()
, HorizontalPixelsToTwips()
, HorizontalTwipsToPixels()
, KPixelSizeInTwips()
, Model()
, NumTypefaces()
, OffsetInPixels()
, PaletteAttributes()
, PrintablePageInPixels()
, ReleaseFont()
, SelectPageSpecInTwips()
, SetModel()
, SetPalette()
, SizeInPixels()
, SizeInTwips()
, TypefaceSupport()
, VerticalPixelsToTwips()
, VerticalTwipsToPixels()
, iModel
, iModelInfo
, iStore
, iTypefaceStore
, ~CPdrDevice()
Inherited from CBase
:
Delete()
,
Extension_()
,
operator new()
Inherited from CGraphicsDevice
:
CreateContext()
Inherited from CPrinterDevice
:
CreateControlL()
,
CurrentPageSpecInTwips()
,
DeleteControl()
,
ExternalizePropertiesL()
,
InternalizePropertiesL()
,
RestorePropertiesL()
,
StorePropertiesL()
,
iControl
,
iCurrentPageSpecInTwips
Inherited from MGraphicsDeviceMap
:
PixelsToTwips()
,
TwipsToPixels()
virtual IMPORT_C void SelectPageSpecInTwips(const TPageSpec &aPageSpec);
Sets the page specification in twips.
|
virtual IMPORT_C TDisplayMode DisplayMode() const;
Gets the display mode of the device.
|
virtual IMPORT_C TSize SizeInPixels() const;
Gets the size of the device area in pixels.
|
virtual IMPORT_C TSize SizeInTwips() const;
Gets the size of the device area in twips.
|
virtual IMPORT_C TInt HorizontalTwipsToPixels(TInt aTwips) const;
Converts a horizontal dimension from twips to pixels.
An implementation is supplied by a derived class.
|
|
virtual IMPORT_C TInt VerticalTwipsToPixels(TInt aTwips) const;
Converts a vertical dimension from twips to pixels.
An implementation is supplied by a derived class.
|
|
virtual IMPORT_C TInt HorizontalPixelsToTwips(TInt aPixels) const;
Converts a horizontal dimension from pixels to twips.
An implementation is supplied by a derived class.
|
|
virtual IMPORT_C TInt VerticalPixelsToTwips(TInt aPixels) const;
Converts a vertical dimension from pixels to twips.
An implementation is supplied by a derived class.
|
|
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 TInt GetNearestFontToMaxHeightInTwips(CFont *&aFont, const TFontSpec &aFontSpec, TInt aMaxHeight);
This call is defined because it had to be - it appeared as an abstract virtual in the base class. But it should never actually get called for this 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 void PaletteAttributes(TBool &aModifiable, TInt &aNumEntries) const;
Gets the palette attributes of the device.
|
virtual IMPORT_C void SetPalette(CPalette *aPalette);
Sets the device's palette.
|
virtual IMPORT_C TInt GetPalette(CPalette *&aPalette) const;
Gets the device's current palette.
|
|
virtual IMPORT_C TPrinterModelEntry Model() const;
Gets the printer model entry.
|
virtual IMPORT_C TInt SetModel(const TPrinterModelHeader &aModel, CStreamStore &aStore);
Sets the printer model header and the store.
|
|
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.
|
protected: CPdrTypefaceStore * iTypefaceStore;