|
||
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()const
Gets the display mode of the device.Flags()const
FontHeightInTwips(TInt,TInt)const
Get 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 ...GetNearestFontToMaxHeightInTwips(CFont *&,const TFontSpec &,TInt)
This call is defined because it had to be - it appeared as an abstract virtual i...GetPalette(CPalette *&)const
Gets the device's current palette.HorizontalPixelsToTwips(TInt)const
Converts a horizontal dimension from pixels to twips.HorizontalTwipsToPixels(TInt)const
Converts a horizontal dimension from twips to pixels.KPixelSizeInTwips()const
Model()const
Gets the printer model entry.NumTypefaces()const
Gets the number of typefaces supported by the graphics device.OffsetInPixels()
PaletteAttributes(TBool &,TInt &)const
Gets the palette attributes of the device.PrintablePageInPixels()const
ReleaseFont(CFont *)
Releases the specified font.SelectPageSpecInTwips(const TPageSpec &)
Sets the page specification in twips.SetModel(const TPrinterModelHeader &,CStreamStore &)
Sets the printer model header and the store.SetPalette(CPalette *)
Sets the device's palette.SizeInPixels()const
Gets the size of the device area in pixels.SizeInTwips()const
Gets the size of the device area in twips.TypefaceSupport(TTypefaceSupport &,TInt)const
Gets typeface information for a specified typeface.VerticalPixelsToTwips(TInt)const
Converts a vertical dimension from pixels to twips.VerticalTwipsToPixels(TInt)const
Converts a vertical dimension from twips to pixels.iModel
iModelInfo
iStore
iTypefaceStore
~CPdrDevice()
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 CGraphicsDevice
:
CreateContext(CGraphicsContext *&)
Creates a graphics context for the device.Inherited from CPrinterDevice
:
CreateControlL(CPrinterPort *)
Creates a printer control.CurrentPageSpecInTwips()const
Gets the current page specification in twips.DeleteControl()
Deletes the printer control owned by this object.ExternalizePropertiesL(RWriteStream &)const
Externalizes printer properties to the store.InternalizePropertiesL(RReadStream &)
Externalizes printer properties to the store.RestorePropertiesL()
Restores printer properties. StorePropertiesL()const
Stores the printer properties. iControl
The printer control.iCurrentPageSpecInTwips
Current page specification in twips. Inherited from MGraphicsDeviceMap
:
PixelsToTwips(const TPoint &)const
Converts a point in pixels to a point in twips.PixelsToTwips(const TRect &)const
Converts a rectangle in pixels to a rectangle in twips.TwipsToPixels(const TPoint &)const
Converts a point in twips to a point in pixels.TwipsToPixels(const TRect &)const
Converts a rectangle in twips to a rectangle in pixels.IMPORT_C virtual void SelectPageSpecInTwips(const TPageSpec &aPageSpec);
Sets the page specification in twips.
|
IMPORT_C virtual TDisplayMode DisplayMode() const;
Gets the display mode of the device.
|
IMPORT_C virtual TSize SizeInPixels() const;
Gets the size of the device area in pixels.
|
IMPORT_C virtual TSize SizeInTwips() const;
Gets the size of the device area in twips.
|
IMPORT_C virtual TInt HorizontalTwipsToPixels(TInt aTwips) const;
Converts a horizontal dimension from twips to pixels.
An implementation is supplied by a derived class.
|
|
IMPORT_C virtual TInt VerticalTwipsToPixels(TInt aTwips) const;
Converts a vertical dimension from twips to pixels.
An implementation is supplied by a derived class.
|
|
IMPORT_C virtual TInt HorizontalPixelsToTwips(TInt aPixels) const;
Converts a horizontal dimension from pixels to twips.
An implementation is supplied by a derived class.
|
|
IMPORT_C virtual TInt VerticalPixelsToTwips(TInt aPixels) const;
Converts a vertical dimension from pixels to twips.
An implementation is supplied by a derived class.
|
|
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 CPdrDevice::ReleaseFont(CFont *)
.
This function is replaced by CPdrDevice::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 CPdrDevice::ReleaseFont(CFont *)
.
This function replaces CPdrDevice::GetNearestFontInTwips(CFont *&,const TFontSpec &)
|
|
IMPORT_C virtual 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.
|
|
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
|
CPdrDevice::NumTypefaces()const
Gets 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 void PaletteAttributes(TBool &aModifiable, TInt &aNumEntries) const;
Gets the palette attributes of the device.
|
IMPORT_C virtual void SetPalette(CPalette *aPalette);
Sets the device's palette.
|
IMPORT_C virtual TInt GetPalette(CPalette *&aPalette) const;
Gets the device's current palette.
|
|
IMPORT_C virtual TPrinterModelEntry Model() const;
Gets the printer model entry.
|
IMPORT_C virtual TInt SetModel(const TPrinterModelHeader &aModel, CStreamStore &aStore);
Sets the printer model header and the store.
|
|
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.
|
protected: CPdrTypefaceStore * iTypefaceStore;