Location:
apamdr.h
Link against: apparc.lib
class CApaModelDoor : public CApaDoorBase;
A persistent representation of a door that also acts as a wrapper around an application's model.
The class allows embedded data to be manipulated without requiring the whole associated application.
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 restoring the picture
CApaDoorBase
- The base class for the graphic representation of an embedded document
CApaModelDoor
- A persistent representation of a door that also acts as a wrapper around an application's model
Defined in CApaModelDoor
:
DetachFromStoreL()
, Draw()
, ExternalizeL()
, GetOriginalSizeInTwips()
, GlassDoorSize()
, ModelHeader()
, NewL()
, NewL()
, NewLC()
, RestoreL()
, ScaleFactorHeight()
, ScaleFactorWidth()
, SetFormat()
, SetScaleFactor()
, StoreL()
, ~CApaModelDoor()
Inherited from CApaDoorBase
:
CApaDoorBase_Reserved1()
,
CApaDoorBase_Reserved2()
,
Capability()
,
EGlassDoor
,
EIconic
,
ETemporarilyIconic
,
ExternalizeBaseStreamL()
,
Format()
,
GetCropInTwips()
,
InternalizeBaseStreamL()
,
LineBreakPossible()
,
NativePixelSize()
,
SetCropInTwips()
,
SetSource()
,
Source()
,
TFormat
,
iFormat
,
iSource
Inherited from CBase
:
Delete()
,
Extension_()
,
operator new()
Inherited from CPicture
:
AddCropInPixels()
,
EDetachDraw
,
EDetachFull
,
GetSizeInPixels()
,
GetSizeInTwips()
,
ResetToOriginal()
,
SetSizeInPixels()
,
SetSizeInTwips()
,
TDetach
static IMPORT_C CApaModelDoor *NewL(CApaModelHeader *aHeader);
Creates a model door object.
|
|
static IMPORT_C CApaModelDoor *NewLC(CApaModelHeader *aHeader);
Creates a model door object, and puts a pointer to it onto the cleanup stack.
|
|
static IMPORT_C CApaModelDoor *NewL(const CStreamStore &aStore, TStreamId aHeadStreamId, const MApaModelHeaderFactory *aFactory);
Creates a model door object and restores it from an embedded store within the specified store.
|
|
IMPORT_C ~CApaModelDoor();
Destructor.
Frees all resources owned by the object, prior to its destruction.
inline CApaModelHeader *ModelHeader();
Gets the application model wrapper object.
|
inline void SetFormat(TFormat aFormat);
Sets the format of the door.
|
virtual IMPORT_C TStreamId StoreL(CStreamStore &aStore) const;
Stores the model data in the specified store as an embedded store.
The function stores the model data, if the model exists in memory, otherwise, it simply copies the stream containing the embedded document into the specified store.
|
|
IMPORT_C void RestoreL(const CStreamStore &aStore, TStreamId aHeadStreamId, const MApaModelHeaderFactory *aFactory);
Restores the embedded model data from the specified store.
|
virtual IMPORT_C void DetachFromStoreL(TDetach=EDetachFull);
Restores the model to the specified degree.
|
virtual IMPORT_C void ExternalizeL(RWriteStream &aStream) const;
Not supported; if called, raises an APPARC 17 panic.
|
virtual IMPORT_C void Draw(CGraphicsContext &aGc, const TPoint &aTopLeft, const TRect &aClipRect, MGraphicsDeviceMap *aMap)
const;
Not supported; if called, raises an APPARC 17 panic.
|
virtual IMPORT_C void GetOriginalSizeInTwips(TSize &aSize) const;
Gets the door's original size, in twips.
|
virtual IMPORT_C void SetScaleFactor(TInt aScaleFactorWidth, TInt aScaleFactorHeight);
Sets the door's scale factors.
|
virtual IMPORT_C TInt ScaleFactorWidth() const;
Gets the door's width scale factor.
|
virtual IMPORT_C TInt ScaleFactorHeight() const;
Gets the door's height scale factor.
|
private: virtual TSize GlassDoorSize() const;
Returns the size of the glass door, in twips.
A concrete implementation of this function is provided by derived classes.
|