| class CApaDoor : public CApaDoorBase |
A wrapper for an embedded document that can be displayed in a user interface as an icon or a glass door.
| Public Member Functions | |
|---|---|
| ~CApaDoor() | |
| IMPORT_C TUid | AppUidL() |
| TPictureCapability | Capability() |
| TDesC * | Caption() |
| void | DetachFromStoreL(TDetach) |
| IMPORT_C CApaDocument * | DocumentL(TBool) |
| void | Draw(CGraphicsContext &, const TPoint &, const TRect &, MGraphicsDeviceMap *) |
| void | GetCropInTwips(TMargins &) |
| void | GetOriginalSizeInTwips(TSize &) |
| IMPORT_C CApaDoor * | NewL(RFs &, CApaDocument &, const TSize &) |
| IMPORT_C CApaDoor * | NewL(RFs &, const CStreamStore &, TStreamId, CApaProcess &) |
| IMPORT_C CApaDoor * | NewLC(RFs &, CApaDocument &, const TSize &) |
| IMPORT_C void | RestoreL(const CStreamStore &, TStreamId) |
| TInt | ScaleFactorHeight() |
| TInt | ScaleFactorWidth() |
| void | SetCropInTwips(const TMargins &) |
| IMPORT_C void | SetFormatToGlassL() |
| IMPORT_C void | SetFormatToIconL() |
| IMPORT_C void | SetFormatToTemporaryIconL(TBool) |
| void | SetScaleFactor(TInt, TInt) |
| TStreamId | StoreL(CStreamStore &) |
| Private Member Functions | |
|---|---|
| CApaDoor(RFs &, CApaProcess &) | |
| CApaDoor(RFs &, CApaDocument &, const TSize &) | |
| TUid | AppUidFromStreamL() |
| void | ConstructL() |
| void | CopyStoreL(const CEmbeddedStore &, RWriteStream &) |
| void | ExternalizeL(RWriteStream &) |
| void | ExternalizeStateStreamL(CStreamStore &, CStreamDictionary &) |
| TSize | GlassDoorSize() |
| void | InternalizeStateStreamL(const CStreamStore &, const CStreamDictionary &, TSize) |
| CStreamDictionary * | ReadStreamDictionaryLC(const CStreamStore &, TStreamId) |
| void | RestoreDocL(const CPersistentStore &) |
| void | RestoreDoorStateL(const CStreamStore &, const CStreamDictionary &) |
| void | SetIconSizeInTwips(TSize) |
| void | StoreDocL(CPersistentStore &) |
| Inherited Enumerations | |
|---|---|
| CApaDoorBase:TFormat | |
| CPicture:TDetach | |
| Private Attributes | |
|---|---|
| CApaDocument * | iApaDoc |
| CApaProcess * | iApaProcess |
| HBufC * | iAppCaption |
| RFs & | iFs |
| TSize | iIconSizeInTwips |
| CPicture * | iPicture |
| CEmbeddedStore * | iStore |
| CBufSeg * | iStoreHost |
| Inherited Attributes | |
|---|---|
| CApaDoorBase::iFormat | |
| CApaDoorBase::iSource | |
| CApaDoor | ( | RFs & | aFs, |
| CApaProcess & | aProcess | ||
| ) | [private] | ||
| RFs & aFs | |
| CApaProcess & aProcess |
| CApaDoor | ( | RFs & | aFs, |
| CApaDocument & | aDoc, | ||
| const TSize & | aDefaultIconSizeInTwips | ||
| ) | [private] | ||
| RFs & aFs | |
| CApaDocument & aDoc | |
| const TSize & aDefaultIconSizeInTwips |
| TPictureCapability | Capability | ( | ) | const [virtual] |
Gets the Embedded Document's capabilities. These include whether it is scalable and croppable.
The capabilities of the Embedded Document
| TDesC * | Caption | ( | ) | const [inline] |
Gets the name of the application with which the embedded document is associated. A pointer to a descriptor containing the name of the application.
| void | CopyStoreL | ( | const CEmbeddedStore & | aSourceStore, |
| RWriteStream & | aTargetStream | |||
| ) | [private, static] | |||
| const CEmbeddedStore & aSourceStore | |
| RWriteStream & aTargetStream |
| void | DetachFromStoreL | ( | TDetach | aDegree = EDetachFull | ) | [virtual] |
| TDetach aDegree = EDetachFull |
| IMPORT_C CApaDocument * | DocumentL | ( | TBool | aCheckPassword = EFalse | ) |
| TBool aCheckPassword = EFalse |
| void | Draw | ( | CGraphicsContext & | aGc, |
| const TPoint & | aTopLeft, | |||
| const TRect & | aClipRect, | |||
| MGraphicsDeviceMap * | aMap | |||
| ) | const [virtual] | |||
Draws a picture.
| CGraphicsContext & aGc | The graphics context. |
| const TPoint & aTopLeft | The co-ordinates where the top left corner pixel of the picture should be placed. Note that whether this is actually drawn depends on the clipping area defined. |
| const TRect & aClipRect | A clipping rectangle that defines the area to which the function should draw. An implementation should never draw outside this rectangle. Note that the graphics context may also have a clipping rectangle set on it. |
| MGraphicsDeviceMap * aMap | The device map for the graphics device. The implementation should use this to find the scaling to apply to the picture. |
| void | ExternalizeL | ( | RWriteStream & | aStream | ) | const [private, virtual] |
Externalises the picture to a stream.
The presence of this function means that the standard templated stream operator<<() is available to externalise objects of this class.
A derived class must supply an implementation of this function.
| RWriteStream & aStream | The write stream. |
| void | ExternalizeStateStreamL | ( | CStreamStore & | aStore, |
| CStreamDictionary & | aStreamDict | |||
| ) | const [private] | |||
| CStreamStore & aStore | |
| CStreamDictionary & aStreamDict |
| void | GetCropInTwips | ( | TMargins & | aMargins | ) | const [virtual] |
Gets the cropping margins of a Embedded Document in twips. These margins are relative to the original unscaled size of the Embedded Document.
| TMargins & aMargins | The cropping margins of the Embedded Document, in twips |
| void | GetOriginalSizeInTwips | ( | TSize & | aSize | ) | const [virtual] |
Gets the pictur's original size, in twips.
| TSize & aSize | The size of the picture, in twips |
| TSize | GlassDoorSize | ( | ) | const [private, virtual] |
Returns the size of the glass door, in twips.
A concrete implementation of this function is provided by derived classes.
The size of the glass door, in twips.
| void | InternalizeStateStreamL | ( | const CStreamStore & | aStore, |
| const CStreamDictionary & | aStreamDict, | |||
| TSize | aDefaultIconSize | |||
| ) | [private] | |||
| const CStreamStore & aStore | |
| const CStreamDictionary & aStreamDict | |
| TSize aDefaultIconSize |
| IMPORT_C CApaDoor * | NewL | ( | RFs & | aFs, |
| CApaDocument & | aDoc, | |||
| const TSize & | aDefaultIconSizeInTwips | |||
| ) | [static] | |||
| RFs & aFs | |
| CApaDocument & aDoc | |
| const TSize & aDefaultIconSizeInTwips |
| IMPORT_C CApaDoor * | NewL | ( | RFs & | aFs, |
| const CStreamStore & | aStore, | |||
| TStreamId | aStreamId, | |||
| CApaProcess & | aProcess | |||
| ) | [static] | |||
| RFs & aFs | |
| const CStreamStore & aStore | |
| TStreamId aStreamId | |
| CApaProcess & aProcess |
| IMPORT_C CApaDoor * | NewLC | ( | RFs & | aFs, |
| CApaDocument & | aDoc, | |||
| const TSize & | aDefaultIconSizeInTwips | |||
| ) | [static] | |||
| RFs & aFs | |
| CApaDocument & aDoc | |
| const TSize & aDefaultIconSizeInTwips |
| CStreamDictionary * | ReadStreamDictionaryLC | ( | const CStreamStore & | aStore, |
| TStreamId | aStreamId | |||
| ) | [private, static] | |||
| const CStreamStore & aStore | |
| TStreamId aStreamId |
| void | RestoreDocL | ( | const CPersistentStore & | aStore | ) | [private] |
| const CPersistentStore & aStore |
| void | RestoreDoorStateL | ( | const CStreamStore & | aStore, |
| const CStreamDictionary & | streamDic | |||
| ) | [private] | |||
| const CStreamStore & aStore | |
| const CStreamDictionary & streamDic |
| IMPORT_C void | RestoreL | ( | const CStreamStore & | aStore, |
| TStreamId | aHeadStreamId | |||
| ) | ||||
| const CStreamStore & aStore | |
| TStreamId aHeadStreamId |
| TInt | ScaleFactorHeight | ( | ) | const [virtual] |
Gets the Embedded Document height scale factor.
The height scale factor, in percent
| TInt | ScaleFactorWidth | ( | ) | const [virtual] |
Gets the Embedded Document's width scale factor.
The width scale factor, in percent
| void | SetCropInTwips | ( | const TMargins & | aMargins | ) | [virtual] |
Sets the cropping margins of a Embedded Document in twips. These are relative to the original unscaled size of the Embedded Document.
| const TMargins & aMargins | The cropping margins of the Embedded Document, in twips |
| IMPORT_C void | SetFormatToTemporaryIconL | ( | TBool | aEnabled = ETrue | ) |
| TBool aEnabled = ETrue |
| void | SetScaleFactor | ( | TInt | aScaleFactorWidth, |
| TInt | aScaleFactorHeight | |||
| ) | [virtual] | |||
Sets the Embedded Document's scale factors
| void | StoreDocL | ( | CPersistentStore & | aStore | ) | const [private] |
| CPersistentStore & aStore |
| TStreamId | StoreL | ( | CStreamStore & | aStore | ) | const [virtual] |
Stores the Embedded Document to the specified store.
The ID of the (head) stream used to store the Embedded Document
| CStreamStore & aStore | The store containing the stream. |