|
|
|
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()constGets the Embedded Document's capabilities. These include whether it is scalable ...EGlassDoorThe representation is a glass door. EIconicThe representation is an icon. ETemporarilyIconicThe representation is a glass door but has been temporarily switched to an icon....ExternalizeBaseStreamL(CStreamStore &,CStreamDictionary &)constExternalises the information contained in this base class to a stream in the spe...Format()constGets the current format of the representation of the embedded document.GetCropInTwips(TMargins &)constGets the cropping margins of a Embedded Document in twips. These margins are rel...GlassDoorSize()constReturns 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)constStates whether a line break is possible, either before or after an Embedded Docu...NativePixelSize(TSize &)Returns the native pixel size of the bitmap.ScaleFactorHeight()constGets the Embedded Document height scale factor.ScaleFactorWidth()constGets 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()constGets the UID that identifies this door when the source originates on a non-Symbi...StoreL(CStreamStore &)constStores the Embedded Document to the specified store.TFormatDefines the possible formats for the graphical representation of the embedded do...iFormatiSourceInherited 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 *)constDraws a picture.EDetachDrawInternalise enough information to draw the picture (and no more); null any refer...EDetachFullInternalise all data that is required to fully store the picture later; null any...ExternalizeL(RWriteStream &)constExternalises the picture to a stream.GetOriginalSizeInTwips(TSize &)constGets the pictur's original size, in twips.GetSizeInPixels(MGraphicsDeviceMap *,TSize &)constGets the picture's size in pixels.GetSizeInTwips(TSize &)constGets 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 twipsTDetachOptions for detaching pictures from stores. Used by CPicture::DetachFromStoreL(T...CApaDoorA wrapper for an embedded document that can be displayed in a user interface as ...CApaModelDoorA 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;