|
||
class CApaDoorBase : public CPicture;
The base class for the graphic representation of an embedded document.
An embedded document can be represented either as an icon or as a glass picture. Such a graphic representation is known as a door.
The class is intended for derivation.
CBase
-
Base class for all classes to be instantiated on the heap.
CPicture
- Abstract base class for: drawing a picture to a graphics context, storing and re...
CApaDoorBase
- The base class for the graphic representation of an embedded document.
Defined in CApaDoorBase
:
CApaDoorBase()
CApaDoorBase_Reserved1()
Reserved for future use CApaDoorBase_Reserved2()
Reserved for future use Capability()const
Gets the Embedded Document's capabilities. These include whether it is scalable ...EGlassDoor
The representation is a glass door. EIconic
The representation is an icon. ETemporarilyIconic
The representation is a glass door but has been temporarily switched to an icon....ExternalizeBaseStreamL(CStreamStore &,CStreamDictionary &)const
Externalises the information contained in this base class to a stream in the spe...Format()const
Gets the current format of the representation of the embedded document.GetCropInTwips(TMargins &)const
Gets the cropping margins of a Embedded Document in twips. These margins are rel...GlassDoorSize()const
Returns the size of the glass door, in twips.InternalizeBaseStreamL(const CStreamStore &,const CStreamDictionary &)
Internalises the information for this base class from a stream in the specified ...LineBreakPossible(TUint,TBool,TBool)const
States whether a line break is possible, either before or after an Embedded Docu...NativePixelSize(TSize &)
Returns the native pixel size of the bitmap.ScaleFactorHeight()const
Gets the Embedded Document height scale factor.ScaleFactorWidth()const
Gets the Embedded Document's width scale factor.SetCropInTwips(const TMargins &)
Sets the cropping margins of a Embedded Document in twips. These are relative to...SetScaleFactor(TInt,TInt)
Sets the Embedded Document's scale factorsSetSource(TUid)
Sets the UID that identifies this door when the source originates on a non-Symbi...Source()const
Gets the UID that identifies this door when the source originates on a non-Symbi...StoreL(CStreamStore &)const
Stores the Embedded Document to the specified store.TFormat
Defines the possible formats for the graphical representation of the embedded do...iFormat
iSource
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 CPicture
:
AddCropInPixels(MGraphicsDeviceMap *,const TMargins &)
Adds pixel cropping margins to the picture.DetachFromStoreL(TDetach)
Draw(CGraphicsContext &,const TPoint &,const TRect &,MGraphicsDeviceMap *)const
Draws a picture.EDetachDraw
Internalise enough information to draw the picture (and no more); null any refer...EDetachFull
Internalise all data that is required to fully store the picture later; null any...ExternalizeL(RWriteStream &)const
Externalises the picture to a stream.GetOriginalSizeInTwips(TSize &)const
Gets the pictur's original size, in twips.GetSizeInPixels(MGraphicsDeviceMap *,TSize &)const
Gets the picture's size in pixels.GetSizeInTwips(TSize &)const
Gets the picture's size, in twips.ResetToOriginal()
Resets the picture's scaling and cropping attributes to their original values. SetSizeInPixels(MGraphicsDeviceMap *,const TSize &)
Sets the picture's size in pixels.SetSizeInTwips(const TSize &)
Sets the picture's size, in twipsTDetach
Options for detaching pictures from stores. Used by CPicture::DetachFromStoreL(T...CApaDoor
A wrapper for an embedded document that can be displayed in a user interface as ...CApaModelDoor
A persistent representation of a door that also acts as a wrapper around an appl...inline TFormat Format() const;
Gets the current format of the representation of the embedded document.
|
inline TUid Source() const;
Gets the UID that identifies this door when the source originates on a non-Symbian OS device.
This is used by converters.
|
inline void SetSource(TUid aSource);
Sets the UID that identifies this door when the source originates on a non-Symbian OS device.
This is used by converters.
|
IMPORT_C virtual TStreamId StoreL(CStreamStore &aStore) const;
Stores the Embedded Document to the specified store.
|
|
IMPORT_C virtual void SetScaleFactor(TInt aScaleFactorWidth, TInt aScaleFactorHeight);
Sets the Embedded Document's scale factors
|
IMPORT_C virtual void SetCropInTwips(const TMargins &aMargins);
Sets the cropping margins of a Embedded Document in twips. These are relative to the original unscaled size of the Embedded Document.
|
IMPORT_C virtual TPictureCapability Capability() const;
Gets the Embedded Document's capabilities. These include whether it is scalable and croppable.
|
IMPORT_C virtual void GetCropInTwips(TMargins &aMargins) const;
Gets the cropping margins of a Embedded Document in twips. These margins are relative to the original unscaled size of the Embedded Document.
|
IMPORT_C virtual TInt ScaleFactorWidth() const;
Gets the Embedded Document's width scale factor.
|
IMPORT_C virtual TInt ScaleFactorHeight() const;
Gets the Embedded Document height scale factor.
|
IMPORT_C virtual TBool LineBreakPossible(TUint aClass, TBool aBeforePicture, TBool aHaveSpaces) const;
States whether a line break is possible, either before or after an Embedded Document. The default implementation returns ETrue, implying that there is a break opportunity both before and after the Embedded Document, whether or not a space is present. This may be overridden for special types of Embedded Documents.
|
|
IMPORT_C virtual TBool NativePixelSize(TSize &aPixelSize);
Returns the native pixel size of the bitmap.
Derived classes might be implemented as bitmaps, in that case it might be interesting to know this.
|
|
protected: IMPORT_C void ExternalizeBaseStreamL(CStreamStore &aStore, CStreamDictionary &aStreamDict) const;
Externalises the information contained in this base class to a stream in the specified store.
The resulting stream ID is associated with an internal UID, and placed in the specified stream dictionary.
|
protected: IMPORT_C TSize InternalizeBaseStreamL(const CStreamStore &aStore, const CStreamDictionary &aStreamDict);
Internalises the information for this base class from a stream in the specified store, and returns the size of the icon or glass door.
The stream ID is extracted from the specified stream dictionary. The UID associated with the stream ID is the same as that used when externalising.
|
|
protected: virtual TSize GlassDoorSize() const=0;
Returns the size of the glass door, in twips.
A concrete implementation of this function is provided by derived classes.
|
TFormat
Defines the possible formats for the graphical representation of the embedded document.
|
protected: TUid iSource;