CSvgDocumentImpl Class Reference

class CSvgDocumentImpl : public CBase

An SVG document that represents a SVG element tree..

Inherits from

Public Member Functions
~CSvgDocumentImpl()
voidAddEventBeginTime(MSvgEventReceiver *, TUint32, MSvgEventReceiver *)
voidAddInternalMouseListener(const MSvgMouseListener *)
voidAddToEventReceiverListL(MSvgEventReceiver *, TUint8)
voidAddToEventReceiverListL(MSvgEventReceiver *, TSvgEvent, TUint8)
TUint32 AnimationDuration()
MXmlElement *AppendChildL(MXmlElement *)
voidCancelParsing()
TInt CreateAttribute(const TDesC &)
MXmlElement *CreateElementL(const TDesC &)
MXmlElement *CreateElementL(const TUint8)
TInt32 CurrentTime()
TInt32 DecCurFocusIndex()
voidDocumentTransform(TGfxAffineTransform &)
voidElementAppendedOrRemoved()
CSvgEngineImpl *Engine()
voidFindAllElements(CSvgElementImpl *, TInt, RPointerArray< CSvgElementImpl > &, TSvgSearchFlags)
voidFindAllIds(CSvgElementImpl *, RPointerArray< TDesC > &)
CSvgBitmapFontProvider *GetBitmapFontProvider()
TInt32 GetCurFocusIndex()
CSvgElementImpl *GetCurFocusObject()
TGfxAffineTransform GetDocumentTransform()
MXmlElement *GetElementById(const TDesC &)
MSvgError *GetError()
CSvgElementImpl *GetEventReceiverElement(TInt32, TBool, TUint8, TInt32 &)
CXmlElementImpl *GetFocusElement()
TDesC *GetId(TInt)
TInt GetImageElementsCount()
const RPointerArray< MSvgLoadingListener > *GetLoadingListeners()
TInt GetNumberOfIds(MXmlElement *)
voidGetUri(TDes &)
TDesC &GetUrl()
TBool HasError()
voidImageLoadingCompleted(TInt)
TInt32 IncCurFocusIndex()
TBool IsAnimationFile()
TBool IsDocumentContentInteractive()
TUint32 IsIndefiniteAnimation()
TBool IsParsing()
TBool IsThumbNailOnly()
TBool IsValidSubEventMask(TUint16)
voidLoad(const TDesC &, CSvgErrorImpl &)
voidLoad(const TDesC8 &, CSvgErrorImpl &, TBool)
voidLoad(RFile &, CSvgErrorImpl &)
voidLoad16BitString(const TDesC16 &, CSvgErrorImpl &, TBool)
TInt MouseInternalListenerCount()
CSvgDocumentImpl *NewL(CSvgBitmapFontProvider *, const TBool, const TSvgSyncBehaviour, const TInt32)
CSvgDocumentImpl *NewLC(CSvgBitmapFontProvider *, const TBool, const TSvgSyncBehaviour, const TInt32)
voidNotifyDocumentEnd()
voidNotifyDocumentStart()
voidNotifyElementEnd(const TDesC &, TBool)
voidNotifyElementStart(const TDesC &, MSvgAttributeList &, TBool)
voidNotifyExternalDataReceived(const TDesC &)
voidNotifyExternalDataRequestFailed(const TDesC &)
voidNotifyExternalDataRequested(const TDesC &)
voidNotifyInternalMouseEntered(RPointerArray< CSvgElementImpl > &, TInt, TInt)
voidNotifyInternalMouseExited(RPointerArray< CSvgElementImpl > &, TInt, TInt)
voidNotifyInternalMouseMoved(RPointerArray< CSvgElementImpl > &, TInt, TInt)
voidNotifyInternalMousePressed(RPointerArray< CSvgElementImpl > &, TInt, TInt)
voidNotifyInternalMouseReleased(RPointerArray< CSvgElementImpl > &, TInt, TInt)
voidNotifyUnsupportedElement(const TDesC &, MSvgAttributeList &)
TSvgObjectType ObjectType()
voidOpenSession(RFs &, CSvgErrorImpl &)
voidParsePostOrderMediaElements(CSvgElementImpl *, RPointerArray< CSvgElementImpl > &)
voidPrepareError(CSvgErrorImpl &, TSvgErrorCode, TInt, const TDesC &, const TDesC &)
voidPrintAllElements(CSvgElementImpl *)
voidQueueFontReleaseReq(CFont *)
voidReInitialize()
voidRemoveFromEventReceiverList(MSvgEventReceiver *)
voidRemoveInternalMouseListener(const MSvgMouseListener *)
voidReset(MSvgEvent *)
IMPORT_C MXmlElement *RootElement()
CSvgSchemaData *SchemaData()
TBool SearchByPointer(CSvgElementImpl *, CSvgElementImpl *)
voidSetCurFocusIndex(TInt32)
voidSetCurFocusObject(CSvgElementImpl *)
voidSetCurrentTime(const TInt32)
voidSetDRMMode(TBool)
voidSetDRMRights(TBool)
voidSetEngine(CSvgEngineImpl *)
voidSetError(TInt, const TDesC &, const TDesC &)
voidSetFocusElement(CXmlElementImpl *)
voidSetImageElementsCount(TInt)
voidSetIsWarning(TBool)
voidSetLoadingListeners(const RPointerArray< MSvgLoadingListener > *)
voidSetTCSyncBehavior(const TSvgSyncBehaviour)
voidSetTCSyncMaster(const TBool)
voidSetTCSyncTolerance(const TUint32)
voidSetThumbNailMode(TBool)
voidSetUri(const TDesC &)
voidSetWasPrepared(TBool)
voidSortEventList()
TBool SvgElementPresent(CSvgElementImpl *)
TBool SvgHasAnimationElement()
TSvgSyncBehaviour SyncBehaviorDefault()
TUint32 SyncToleranceDefault()
CSvgTimeContainer *TimeContainer()
TBool WasPrepared()
TBool isGroupOpacity(CSvgElementImpl *)
Private Member Functions
CSvgDocumentImpl(CSvgBitmapFontProvider *, const TBool, const TSvgSyncBehaviour, const TInt32)
TBool CanGenerateTick()
TBool CanUseParentTick()
voidConstructL()
TInt CreateProcessPrivateDirectory(RFs &, TFileName &)
CSvgTimeContainer *GetChildTimeContainer()
voidGetCnfSyncMasterStatus(TBool &)
voidGetCurSyncMasterStatus(TBool &)
voidGetEntityCurrentTime(TUint32 &)
TSvgSyncBehaviour GetEntitySyncBehavior()
TInt GetProcessPrivatePath(RFs &, TFileName &)
TBool IsBinarySvg(const TDesC8 &)
TBool IsDRMContent(RFile &)
TBool IsDRMContent(const TDesC8 &)
TBool IsGzipContent(RFile &)
TBool IsGzipContent(const TDesC8 &)
voidLoad(RFs &, RFile &, CSvgErrorImpl &)
voidLoadingCompleted()
voidParentTimeContainerTick(TSvgTick)
voidPauseTimedEntity()
voidProcess16BitSvgContentL(const TDesC16 &, CSvgErrorImpl &, TBool)
HBufC8 *ProcessDRMContentL(RFile &, CSvgErrorImpl &)
voidProcessDRMError(TInt, CSvgErrorImpl &)
TBool ProcessGZipContent(RFs &, RFile &, TFileName &, CSvgErrorImpl &)
TBool ProcessGZipContent(RFs &, TFileName &, TFileName &, CSvgErrorImpl &)
voidProcessSvgContentL(const TDesC8 &, CSvgErrorImpl &, TBool)
voidResumeTimedEntity()
voidResyncTimedEntity(TUint32)
MXmlElement *SearchElementById(MXmlElement *, const TDesC &)
voidSetCurSyncMasterStatus(TBool)
voidStopTimedEntity()
TUint32 SubtreeDuration(CSvgElementImpl *)
TInt WriteToTempFile(RFs &, const TDesC8 &, TFileName &, CSvgErrorImpl &)
TInt WriteToTempFile(RFs &, RFile &, TFileName &, CSvgErrorImpl &)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Public Attributes
TBool iAnimationResetNeeded
CSvgEventHandler *iEventHandler
TBool iFinishedParsing
CSvgFontHashMap *iFontHashMap
TBool iHasGroupOpacity
TInt iImageElementCnt
TBool iInitSortList
TBool iInitialDrawFlag
TBool iIsInteractive
TBool iIsPruningTree
TBool iIsRendering
CSvgMemoryManager *iMemoryManager
CSvgElementImpl *iPerfText
TBool iReqExReqFtrSysLTested
RPointerArray< CSvgAnimationBase >iSvgAnimations
TUint32 iTimeForJSR226
Private Attributes
const TIntKIndefiniteAnimationDuration
TUint iAnimationDuration
TBool iCheckedAnimationDuration
TInt32 iCurObjIdx
CSvgElementImpl *iCurrentFocusObject
TBool iDrmEnable
TBool iDrmRightsConsumptionEnabled
CSvgEngineImpl *iEngine
CSvgErrorImpl *iError
TBool iHasGradientElement
TBool iHasParent
TBool iIsDRMProtected
TBool iIsThumbNailMode
const RPointerArray< MSvgLoadingListener > *iLoadingListeners
TBool iMultipleRendering
CSvgElementImpl *iRootElement
CSvgSchemaData *iSchemaData
CSvgBitmapFontProvider *iSvgBitmapFontProvider
RPointerArray< MSvgMouseListener >iSvgMouseListeners
TSvgSyncBehaviour iSyncBehaviorDefault
TUint32 iSyncToleranceDefault
CSvgTimeContainer *iTimeContainer
TGfxAffineTransform iTransformMatrix
TBuf< 256 >iUri
TBool iWasPrepared
CSvgContentHandler *iXmlHandler

Constructor & Destructor Documentation

CSvgDocumentImpl(CSvgBitmapFontProvider *, const TBool, const TSvgSyncBehaviour, const TInt32)

CSvgDocumentImpl(CSvgBitmapFontProvider *aSvgBitmapFontProvider,
const TBoolaHasParent,
const TSvgSyncBehaviouraSyncBehavDefault,
const TInt32aSyncTolDefault
)[private]

Constructor

Parameters

CSvgBitmapFontProvider * aSvgBitmapFontProvider
const TBool aHasParent- Indicates whether document has a parent or not aSyncBehavDefault - Indicates default synchronised behaviour for runtime synchronisation. aSyncTolDefault - Indicates the synchronised tolerance in msecs for runtime synchronisation.
const TSvgSyncBehaviour aSyncBehavDefault
const TInt32 aSyncTolDefault

~CSvgDocumentImpl()

~CSvgDocumentImpl()[virtual]

Need method description

Since
1.0

Member Functions Documentation

AddEventBeginTime(MSvgEventReceiver *, TUint32, MSvgEventReceiver *)

voidAddEventBeginTime(MSvgEventReceiver *aElement,
TUint32aTime,
MSvgEventReceiver *aTargetElement
)

Provide the event end time information to the Event Handler

Since
1.0

Parameters

MSvgEventReceiver * aElement- An element that, ultimately, processes the event (eg. an animation element)
TUint32 aTime- The end time for an event on the target element
MSvgEventReceiver * aTargetElement- The element for which the event is processed

AddInternalMouseListener(const MSvgMouseListener *)

voidAddInternalMouseListener(const MSvgMouseListener *aListener)

Add a MSvgMouseListener to this SvgEngine

Parameters

const MSvgMouseListener * aListener

AddToEventReceiverListL(MSvgEventReceiver *, TUint8)

voidAddToEventReceiverListL(MSvgEventReceiver *aElement,
TUint8aEventMask
)

Add an object to the list of objects that are notified of an event

Since
1.0

Parameters

MSvgEventReceiver * aElement- An SVG element that wants to be registered for an event (implements MSvgEventReceiver interface)
TUint8 aEventMask- A bit mask that indicates the types of events an object listens for

AddToEventReceiverListL(MSvgEventReceiver *, TSvgEvent, TUint8)

voidAddToEventReceiverListL(MSvgEventReceiver *aElement,
TSvgEventaEvent,
TUint8aEventMask
)

Add an object to the list of objects that are notified of an event Has an additional parameter aEvent which is used to check for interactive events

Since
v3.2

Parameters

MSvgEventReceiver * aElement- An SVG element that wants to be registered for an event (implements MSvgEventReceiver interface)
TSvgEvent aEvent- An SVG Event that the target element needs to generate
TUint8 aEventMask- A bit mask that indicates the types of events an object listens for

AnimationDuration()

TUint32 AnimationDuration()

return the animation duration in milliseconds.

AppendChildL(MXmlElement *)

MXmlElement *AppendChildL(MXmlElement *aAppendChild)

Need method description

Since
1.0

Parameters

MXmlElement * aAppendChild

CanGenerateTick()

TBool CanGenerateTick()[private]
From MSvgTimedEntityInterface Check if timed entity can provide timing ticks to rest of time container elements. This behavior could change dynamically. For example, if audio clip is over, the audio element can't generate ticks for others.
Since
Series 3.2

CanUseParentTick()

TBool CanUseParentTick()[private]
Check if timed entity can use its parent's tick. Usually only the parent document should return true for this function. All other elements return false
Since
Series 3.2

CancelParsing()

voidCancelParsing()

Cancel loading of document if it is currently parsing.

ConstructL()

voidConstructL()[private]

2-phase construction

CreateAttribute(const TDesC &)

TInt CreateAttribute(const TDesC &aName)

Need method description

Since
1.0

Parameters

const TDesC & aName

CreateElementL(const TDesC &)

MXmlElement *CreateElementL(const TDesC &aTagName)

Need method description

Since
1.0

Parameters

const TDesC & aTagName

CreateElementL(const TUint8)

MXmlElement *CreateElementL(const TUint8aTagName)

Parameters

const TUint8 aTagName

CreateProcessPrivateDirectory(RFs &, TFileName &)

TInt CreateProcessPrivateDirectory(RFs &aSession,
TFileName &aPath
)[private]

Parameters

RFs & aSession
TFileName & aPath

CurrentTime()

TInt32 CurrentTime()
Accessor Function for the document's current time
Since
S60 3.2

DecCurFocusIndex()

TInt32 DecCurFocusIndex()

DocumentTransform(TGfxAffineTransform &)

voidDocumentTransform(TGfxAffineTransform &aTr)

Parameters

TGfxAffineTransform & aTr

ElementAppendedOrRemoved()

voidElementAppendedOrRemoved()

Called by AppendChild/RemoveChild to notify owner document of changes.

Engine()

CSvgEngineImpl *Engine()

Need method description

Since
1.0

FindAllElements(CSvgElementImpl *, TInt, RPointerArray< CSvgElementImpl > &, TSvgSearchFlags)

voidFindAllElements(CSvgElementImpl *aStartElement,
TIntaElementId,
RPointerArray< CSvgElementImpl > &aList,
TSvgSearchFlagsaFlags = ESvgSearchAllElements
)

Parameters

CSvgElementImpl * aStartElement
TInt aElementId
RPointerArray< CSvgElementImpl > & aList
TSvgSearchFlags aFlags = ESvgSearchAllElements

FindAllIds(CSvgElementImpl *, RPointerArray< TDesC > &)

voidFindAllIds(CSvgElementImpl *aStartElement,
RPointerArray< TDesC > &aList
)

Need method description

Since
1.0

Parameters

CSvgElementImpl * aStartElement
RPointerArray< TDesC > & aList

GetBitmapFontProvider()

CSvgBitmapFontProvider *GetBitmapFontProvider()

GetChildTimeContainer()

CSvgTimeContainer *GetChildTimeContainer()[private]

GetCnfSyncMasterStatus(TBool &)

voidGetCnfSyncMasterStatus(TBool &aIsSyncMaster)[private]
From MSvgTimedEntityInterface Returns the configured sync master value(as per DOM tree) as specified in the SVG content.
Since
Series 3.2

Parameters

TBool & aIsSyncMasterIndicates whether the element is configured as Sync Master.

GetCurFocusIndex()

TInt32 GetCurFocusIndex()

GetCurFocusObject()

CSvgElementImpl *GetCurFocusObject()

GetCurSyncMasterStatus(TBool &)

voidGetCurSyncMasterStatus(TBool &isSyncMaster)[private]
From MSvgTimedEntityInterface Check if timed entity is going to act as timing master in the time container. This behavior could change dynamically.
Since
Series 3.2

Parameters

TBool & isSyncMaster

GetDocumentTransform()

TGfxAffineTransform GetDocumentTransform()

GetElementById(const TDesC &)

MXmlElement *GetElementById(const TDesC &aElementId)

Need method description

Since
1.0

Parameters

const TDesC & aElementId

GetEntityCurrentTime(TUint32 &)

voidGetEntityCurrentTime(TUint32 &aEntityCurTime)[private]
From MSvgTimedEntityInterface When the timed entity acts as timing master in the time container, the time container gets the timed entity clock using this method and feeds to rest of timed entities.
Since
Series 3.2

Parameters

TUint32 & aEntityCurTimeCurrent Entity Time in msecs.

GetEntitySyncBehavior()

TSvgSyncBehaviour GetEntitySyncBehavior()[private]
From MSvgTimedEntityInterface Returns the sync behavior of the entity.
Since
Series 3.2

GetError()

MSvgError *GetError()

return the error reference. May be NULL. Call HasError first.

GetEventReceiverElement(TInt32, TBool, TUint8, TInt32 &)

CSvgElementImpl *GetEventReceiverElement(TInt32aIndex,
TBoolaNext,
TUint8aEventMask,
TInt32 &aNewIndex
)

returns the next (or prev) focussable object starting with a given index

Since
1.0

Parameters

TInt32 aIndex- search for a focussable object with this index
TBool aNext- Etrue (next) EFalse (prev) (go forward or backward for search)
TUint8 aEventMask- Event mask for event types the client is interested in
TInt32 & aNewIndex- Return the actual index where the object was found

GetFocusElement()

CXmlElementImpl *GetFocusElement()

GetId(TInt)

TDesC *GetId(TIntindex)

Need method description

Since
1.0

Parameters

TInt index

GetImageElementsCount()

TInt GetImageElementsCount()

GetLoadingListeners()

const RPointerArray< MSvgLoadingListener > *GetLoadingListeners()

Set the list of MSvgLoadingListener for this document to send back notification of parsing progress. NULL is also valid.

GetNumberOfIds(MXmlElement *)

TInt GetNumberOfIds(MXmlElement *aElement)

Need method description

Since
1.0

Parameters

MXmlElement * aElement

GetProcessPrivatePath(RFs &, TFileName &)

TInt GetProcessPrivatePath(RFs &aSession,
TFileName &aPath
)[private]

Parameters

RFs & aSession
TFileName & aPath

GetUri(TDes &)

voidGetUri(TDes &aUri)

Need method description

Since
1.0

Parameters

TDes & aUri

GetUrl()

TDesC &GetUrl()

Need method description

Since
1.0

HasError()

TBool HasError()

return whether this document has an error set.

ImageLoadingCompleted(TInt)

voidImageLoadingCompleted(TIntaErrorStatus)[virtual]

ImageLoadingObserver interface method. Called from Image loading class to notify image loading completion.

Since
1.0

Parameters

TInt aErrorStatus

IncCurFocusIndex()

TInt32 IncCurFocusIndex()

IsAnimationFile()

TBool IsAnimationFile()

Checks whether the current loaded file is animatable or static

IsBinarySvg(const TDesC8 &)

TBool IsBinarySvg(const TDesC8 &aByteArray)[private]

Parameters

const TDesC8 & aByteArray

IsDRMContent(RFile &)

TBool IsDRMContent(RFile &aFileHandle)[private]

Parameters

RFile & aFileHandle

IsDRMContent(const TDesC8 &)

TBool IsDRMContent(const TDesC8 &aByteData)[private]

Parameters

const TDesC8 & aByteData

IsDocumentContentInteractive()

TBool IsDocumentContentInteractive()

Finds if Document content is Interactive

Since
Series 3.2

IsGzipContent(RFile &)

TBool IsGzipContent(RFile &aFile)[private]

Parameters

RFile & aFile

IsGzipContent(const TDesC8 &)

TBool IsGzipContent(const TDesC8 &aByteArray)[private]

Parameters

const TDesC8 & aByteArray

IsIndefiniteAnimation()

TUint32 IsIndefiniteAnimation()

return wether animation is indefinite.

IsParsing()

TBool IsParsing()

Return whether document is currently parsing.

IsThumbNailOnly()

TBool IsThumbNailOnly()

Return whether the loaded document is a thumbnail only. ETrue is returned only when the loaded content is DRM protected AND SetThumbNailMode is called with ETrue.

IsValidSubEventMask(TUint16)

TBool IsValidSubEventMask(TUint16aSubEventMask)
Checks whether the aSubEventMask is has a valid value set
Since
v3.2

Parameters

TUint16 aSubEventMask

Load(const TDesC &, CSvgErrorImpl &)

voidLoad(const TDesC &aFileName,
CSvgErrorImpl &aError
)

Load a svg content from the given filename

Parameters

const TDesC & aFileName
CSvgErrorImpl & aError

Load(const TDesC8 &, CSvgErrorImpl &, TBool)

voidLoad(const TDesC8 &aByteData,
CSvgErrorImpl &aError,
TBoolaRemoveFalseSwitchElements = ETrue
)

Load a svg content from the given byte-array

Parameters

const TDesC8 & aByteData
CSvgErrorImpl & aError
TBool aRemoveFalseSwitchElements = ETrue

Load(RFile &, CSvgErrorImpl &)

voidLoad(RFile &aFileHandle,
CSvgErrorImpl &aError
)

Load a svg content from the given file-handle

Parameters

RFile & aFileHandle
CSvgErrorImpl & aError

Load(RFs &, RFile &, CSvgErrorImpl &)

voidLoad(RFs &aSession,
RFile &aFileHandle,
CSvgErrorImpl &aError
)[private]

Parameters

RFs & aSession
RFile & aFileHandle
CSvgErrorImpl & aError

Load16BitString(const TDesC16 &, CSvgErrorImpl &, TBool)

voidLoad16BitString(const TDesC16 &aSvgString,
CSvgErrorImpl &aError,
TBoolaRemoveFalseSwitchElements = ETrue
)

Load a svg content from JSR226 that is already TDesc16

Parameters

const TDesC16 & aSvgString
CSvgErrorImpl & aError
TBool aRemoveFalseSwitchElements = ETrue

LoadingCompleted()

voidLoadingCompleted()[private]

MouseInternalListenerCount()

TInt MouseInternalListenerCount()

Return number of mouselisteners.

NewL(CSvgBitmapFontProvider *, const TBool, const TSvgSyncBehaviour, const TInt32)

CSvgDocumentImpl *NewL(CSvgBitmapFontProvider *aSvgBitmapFontProvider,
const TBoolaHasParent = EFalse,
const TSvgSyncBehaviouraSyncBehavDefault =  KSvgDefaultSyncBehaviour ,
const TInt32aSyncTolDefault =  KSvgDefaultSyncTolerance
)[static]

Parameters

CSvgBitmapFontProvider * aSvgBitmapFontProvider
const TBool aHasParent = EFalse
const TSvgSyncBehaviour aSyncBehavDefault =  KSvgDefaultSyncBehaviour
const TInt32 aSyncTolDefault =  KSvgDefaultSyncTolerance

NewLC(CSvgBitmapFontProvider *, const TBool, const TSvgSyncBehaviour, const TInt32)

CSvgDocumentImpl *NewLC(CSvgBitmapFontProvider *aSvgBitmapFontProvider,
const TBoolaHasParent = EFalse,
const TSvgSyncBehaviouraSyncBehavDefault =  KSvgDefaultSyncBehaviour ,
const TInt32aSyncTolDefault =  KSvgDefaultSyncTolerance
)[static]

Need method description

Since
1.0

Parameters

CSvgBitmapFontProvider * aSvgBitmapFontProvider
const TBool aHasParent = EFalse- Indicates whether document has a parent document or not aSyncBehavDefault - Indicates default synchronised behaviour for runtime synchronisation. aSyncTolDefault - Indicates the synchronised tolerance in msecs for runtime synchronisation.
const TSvgSyncBehaviour aSyncBehavDefault =  KSvgDefaultSyncBehaviour
const TInt32 aSyncTolDefault =  KSvgDefaultSyncTolerance

NotifyDocumentEnd()

voidNotifyDocumentEnd()

Send to loading listeners of a document end event.

NotifyDocumentStart()

voidNotifyDocumentStart()

Send to loading listeners of a document start event.

NotifyElementEnd(const TDesC &, TBool)

voidNotifyElementEnd(const TDesC &aTagName,
TBoolaIsSvgChild
)

Send to loading listeners of an element end event.

Parameters

const TDesC & aTagName
TBool aIsSvgChild

NotifyElementStart(const TDesC &, MSvgAttributeList &, TBool)

voidNotifyElementStart(const TDesC &aTagName,
MSvgAttributeList &aAttributeList,
TBoolaIsSvgChild
)

Send to loading listeners of an element start event.

Parameters

const TDesC & aTagName
MSvgAttributeList & aAttributeList
TBool aIsSvgChild

NotifyExternalDataReceived(const TDesC &)

voidNotifyExternalDataReceived(const TDesC &aUri)

Send to loading listeners of a succesfful external data reception.

Parameters

const TDesC & aUri

NotifyExternalDataRequestFailed(const TDesC &)

voidNotifyExternalDataRequestFailed(const TDesC &aUri)

Send to loading listeners of a failed external data request.

Parameters

const TDesC & aUri

NotifyExternalDataRequested(const TDesC &)

voidNotifyExternalDataRequested(const TDesC &aUri)

Send to loading listeners of an external data request.

Parameters

const TDesC & aUri

NotifyInternalMouseEntered(RPointerArray< CSvgElementImpl > &, TInt, TInt)

voidNotifyInternalMouseEntered(RPointerArray< CSvgElementImpl > &aElements,
TIntaX,
TIntaY
)

Send to mouse listeners of a mouse-entered event.

Parameters

RPointerArray< CSvgElementImpl > & aElements
TInt aX
TInt aY

NotifyInternalMouseExited(RPointerArray< CSvgElementImpl > &, TInt, TInt)

voidNotifyInternalMouseExited(RPointerArray< CSvgElementImpl > &aElements,
TIntaX,
TIntaY
)

Send to mouse listeners of a mouse-exited event.

Parameters

RPointerArray< CSvgElementImpl > & aElements
TInt aX
TInt aY

NotifyInternalMouseMoved(RPointerArray< CSvgElementImpl > &, TInt, TInt)

voidNotifyInternalMouseMoved(RPointerArray< CSvgElementImpl > &aElements,
TIntaX,
TIntaY
)

Send to mouse listeners of a mouse-moved event.

Parameters

RPointerArray< CSvgElementImpl > & aElements
TInt aX
TInt aY

NotifyInternalMousePressed(RPointerArray< CSvgElementImpl > &, TInt, TInt)

voidNotifyInternalMousePressed(RPointerArray< CSvgElementImpl > &aElements,
TIntaX,
TIntaY
)

Send to mouse listeners of a mouse-pressed event.

Parameters

RPointerArray< CSvgElementImpl > & aElements
TInt aX
TInt aY

NotifyInternalMouseReleased(RPointerArray< CSvgElementImpl > &, TInt, TInt)

voidNotifyInternalMouseReleased(RPointerArray< CSvgElementImpl > &aElements,
TIntaX,
TIntaY
)

Send to mouse listeners of a mouse-released event.

Parameters

RPointerArray< CSvgElementImpl > & aElements
TInt aX
TInt aY

NotifyUnsupportedElement(const TDesC &, MSvgAttributeList &)

voidNotifyUnsupportedElement(const TDesC &aTagName,
MSvgAttributeList &aAttributeList
)

Send to loading listeners of an unsupported element event.

Parameters

const TDesC & aTagName
MSvgAttributeList & aAttributeList

ObjectType()

TSvgObjectType ObjectType()

OpenSession(RFs &, CSvgErrorImpl &)

voidOpenSession(RFs &aSession,
CSvgErrorImpl &aError
)[static]

Parameters

RFs & aSession
CSvgErrorImpl & aError

ParentTimeContainerTick(TSvgTick)

voidParentTimeContainerTick(TSvgTickaTick)[private]
From MSvgTimedEntityInterface The parent time container provides the timing clock to the timed entity (audio, video, animation, document) using this routine.
Since
Series 3.2

Parameters

TSvgTick aTickCurrent tick information

ParsePostOrderMediaElements(CSvgElementImpl *, RPointerArray< CSvgElementImpl > &)

voidParsePostOrderMediaElements(CSvgElementImpl *aRoot,
RPointerArray< CSvgElementImpl > &aPostOrderList
)
Prepare a list of media elements in DOM tree in postorder
Since
Series 3.2

Parameters

CSvgElementImpl * aRootRoot Node of tree
RPointerArray< CSvgElementImpl > & aPostOrderListList of nodes which will contain the elements.

PauseTimedEntity()

voidPauseTimedEntity()[private]
From MSvgTimedEntityInterface This would be used for pausing the timed entity while other locked timed entities get loaded.
Since
S60 3.2

PrepareError(CSvgErrorImpl &, TSvgErrorCode, TInt, const TDesC &, const TDesC &)

voidPrepareError(CSvgErrorImpl &aError,
TSvgErrorCodeaSvgErrorCode,
TIntaSystemError,
const TDesC &aMsg1,
const TDesC &aMsg2
)[static]

Fill the given error object with the appropriate error codes, messages.

Parameters

CSvgErrorImpl & aError
TSvgErrorCode aSvgErrorCode
TInt aSystemError
const TDesC & aMsg1
const TDesC & aMsg2

PrintAllElements(CSvgElementImpl *)

voidPrintAllElements(CSvgElementImpl *aStartElement)

Parameters

CSvgElementImpl * aStartElement

Process16BitSvgContentL(const TDesC16 &, CSvgErrorImpl &, TBool)

voidProcess16BitSvgContentL(const TDesC16 &aByteArray,
CSvgErrorImpl &aError,
TBoolaRemoveFalseSwitchElements = ETrue
)[private]

Parameters

const TDesC16 & aByteArray
CSvgErrorImpl & aError
TBool aRemoveFalseSwitchElements = ETrue

ProcessDRMContentL(RFile &, CSvgErrorImpl &)

HBufC8 *ProcessDRMContentL(RFile &aFileHandle,
CSvgErrorImpl &aError
)[private]

Parameters

RFile & aFileHandle
CSvgErrorImpl & aError

ProcessDRMError(TInt, CSvgErrorImpl &)

voidProcessDRMError(TInterrorCode,
CSvgErrorImpl &aError
)[private]

Parameters

TInt errorCode
CSvgErrorImpl & aError

ProcessGZipContent(RFs &, RFile &, TFileName &, CSvgErrorImpl &)

TBool ProcessGZipContent(RFs &aSession,
RFile &aFileHandle,
TFileName &aFileName,
CSvgErrorImpl &aError
)[private]

Parameters

RFs & aSession
RFile & aFileHandle
TFileName & aFileName
CSvgErrorImpl & aError

ProcessGZipContent(RFs &, TFileName &, TFileName &, CSvgErrorImpl &)

TBool ProcessGZipContent(RFs &aSession,
TFileName &aZippedFileName,
TFileName &aUnzippedFileName,
CSvgErrorImpl &aError
)[private]

Parameters

RFs & aSession
TFileName & aZippedFileName
TFileName & aUnzippedFileName
CSvgErrorImpl & aError

ProcessSvgContentL(const TDesC8 &, CSvgErrorImpl &, TBool)

voidProcessSvgContentL(const TDesC8 &aByteArray,
CSvgErrorImpl &aError,
TBoolaRemoveFalseSwitchElements = ETrue
)[private]

Parameters

const TDesC8 & aByteArray
CSvgErrorImpl & aError
TBool aRemoveFalseSwitchElements = ETrue

QueueFontReleaseReq(CFont *)

voidQueueFontReleaseReq(CFont *aFont)

Parameters

CFont * aFont

ReInitialize()

voidReInitialize()

RemoveFromEventReceiverList(MSvgEventReceiver *)

voidRemoveFromEventReceiverList(MSvgEventReceiver *aElement)

Removed an object to the list of objects that are notified of an event

Since
1.0

Parameters

MSvgEventReceiver * aElement- An SVG element that wants to be registered for an event (implements MSvgEventReceiver interface)

RemoveInternalMouseListener(const MSvgMouseListener *)

voidRemoveInternalMouseListener(const MSvgMouseListener *aListener)

Remove a MSvgMouseListener to this SvgEngine

Parameters

const MSvgMouseListener * aListener

Reset(MSvgEvent *)

voidReset(MSvgEvent *aEvent)
Two Phase constructor for SVG document
Since
1.0

Parameters

MSvgEvent * aEvent

ResumeTimedEntity()

voidResumeTimedEntity()[private]
From MSvgTimedEntityInterface This would be used for resuming the timed entity once all locked timed entities get loaded.
Since
S60 3.2

ResyncTimedEntity(TUint32)

voidResyncTimedEntity(TUint32aSynctime)[private]
From MSvgTimedEntityInterface If the timed entity needs to be in sync with the time container and it has slipped beyond the sync tolerance limit, the method is called to bring the element in sync with the time container.
Since
Series 3.2

Parameters

TUint32 aSynctimeTime for resync in msecs.

RootElement()

IMPORT_C MXmlElement *RootElement()

get root element

SchemaData()

CSvgSchemaData *SchemaData()

Need method description

Since
1.0

SearchByPointer(CSvgElementImpl *, CSvgElementImpl *)

TBool SearchByPointer(CSvgElementImpl *aParent,
CSvgElementImpl *aElement
)

Parameters

CSvgElementImpl * aParent
CSvgElementImpl * aElement

SearchElementById(MXmlElement *, const TDesC &)

MXmlElement *SearchElementById(MXmlElement *aElement,
const TDesC &aId
)[private]

search element by ID

Parameters

MXmlElement * aElement
const TDesC & aId

SetCurFocusIndex(TInt32)

voidSetCurFocusIndex(TInt32aVal)

Parameters

TInt32 aVal

SetCurFocusObject(CSvgElementImpl *)

voidSetCurFocusObject(CSvgElementImpl *aElement)

Parameters

CSvgElementImpl * aElement

SetCurSyncMasterStatus(TBool)

voidSetCurSyncMasterStatus(TBoolaSyncMasterStatus)[private]
From MSvgTimedEntityInterface If some other element is resolved as syncMaster in the time container group, this element can not act as sync master.
Since
Series 3.2

Parameters

TBool aSyncMasterStatusIndicates whether the element is currrently Sync Master.

SetCurrentTime(const TInt32)

voidSetCurrentTime(const TInt32aCurTime)
Set Function for the document's current time
Since
S60 3.2

Parameters

const TInt32 aCurTimeCurrent Time to be set in msecs

SetDRMMode(TBool)

voidSetDRMMode(TBoolaEnable)

Sets DRM Check Enable/Disable

Parameters

TBool aEnable

SetDRMRights(TBool)

voidSetDRMRights(TBoolaEnable)

Set the document to disable/enable consuming drm rights

Parameters

TBool aEnable

SetEngine(CSvgEngineImpl *)

voidSetEngine(CSvgEngineImpl *aEngine)

Need method description

Since
1.0

Parameters

CSvgEngineImpl * aEngine

SetError(TInt, const TDesC &, const TDesC &)

voidSetError(TIntaErrorType,
const TDesC &aMsg1,
const TDesC &aMsg2
)

Set the error type and error message for this document. Will note override existing error.

Parameters

TInt aErrorType
const TDesC & aMsg1
const TDesC & aMsg2

SetFocusElement(CXmlElementImpl *)

voidSetFocusElement(CXmlElementImpl *aElement)

Parameters

CXmlElementImpl * aElement

SetImageElementsCount(TInt)

voidSetImageElementsCount(TIntaCnt)

Parameters

TInt aCnt

SetIsWarning(TBool)

voidSetIsWarning(TBoolaIsWarning = ETrue)

Parameters

TBool aIsWarning = ETrue

SetLoadingListeners(const RPointerArray< MSvgLoadingListener > *)

voidSetLoadingListeners(const RPointerArray< MSvgLoadingListener > *aList)

Set the list of MSvgLoadingListener for this document to send back notification of parsing progress. NULL is also valid.

Parameters

const RPointerArray< MSvgLoadingListener > * aList

SetTCSyncBehavior(const TSvgSyncBehaviour)

voidSetTCSyncBehavior(const TSvgSyncBehaviouraValue)
Set the Synchronised behaviour for the time container
Since
S60 3.2

Parameters

const TSvgSyncBehaviour aValuecanSlip | locked | independent

SetTCSyncMaster(const TBool)

voidSetTCSyncMaster(const TBoolaValue)
Set the time container as Synchronised Master
Since
S60 3.2

Parameters

const TBool aValuetrue | false

SetTCSyncTolerance(const TUint32)

voidSetTCSyncTolerance(const TUint32aValue)
Set the Synchronised Tolerance for the time container
Since
S60 3.2

Parameters

const TUint32 aValueClock-value

SetThumbNailMode(TBool)

voidSetThumbNailMode(TBoolaThumbNailMode)

Set the document to be in thumbnailmode, which will not consume the DRM right if the Svg content is DRM encrypted.

Parameters

TBool aThumbNailMode

SetUri(const TDesC &)

voidSetUri(const TDesC &aUri)

Need method description

Since
1.0

Parameters

const TDesC & aUri

SetWasPrepared(TBool)

voidSetWasPrepared(TBoolaBool)

Set the flag to indicate this document was prepared (PrepareDom) or loaded (Load).

Parameters

TBool aBool

SortEventList()

voidSortEventList()

An internal method that sorts the events in a time scale

Since
1.0

StopTimedEntity()

voidStopTimedEntity()[private]
From MSvgTimedEntityInterface This would be used for stopping the timed entity.
Since
S60 3.2

SubtreeDuration(CSvgElementImpl *)

TUint32 SubtreeDuration(CSvgElementImpl *aRootElement)[private]

Parameters

CSvgElementImpl * aRootElement

SvgElementPresent(CSvgElementImpl *)

TBool SvgElementPresent(CSvgElementImpl *aElement)

Parameters

CSvgElementImpl * aElement

SvgHasAnimationElement()

TBool SvgHasAnimationElement()

Finds if Animation element is there.

Since
Series 3.2

SyncBehaviorDefault()

TSvgSyncBehaviour SyncBehaviorDefault()
Accessor funciton for SyncBehaviorDefault value
Since
S60 3.2

SyncToleranceDefault()

TUint32 SyncToleranceDefault()
Accessor funciton for SyncToleranceDefault value
Since
S60 3.2

TimeContainer()

CSvgTimeContainer *TimeContainer()
Accessor for the time container.
Since
Series 3.2

WasPrepared()

TBool WasPrepared()

Return whether this document was prepared (PrepareDom) or loaded (Load).

WriteToTempFile(RFs &, const TDesC8 &, TFileName &, CSvgErrorImpl &)

TInt WriteToTempFile(RFs &aSession,
const TDesC8 &aByteArray,
TFileName &aFilename,
CSvgErrorImpl &aError
)[private]

Parameters

RFs & aSession
const TDesC8 & aByteArray
TFileName & aFilename
CSvgErrorImpl & aError

WriteToTempFile(RFs &, RFile &, TFileName &, CSvgErrorImpl &)

TInt WriteToTempFile(RFs &aSession,
RFile &aFileHandle,
TFileName &aFilename,
CSvgErrorImpl &aError
)[private]

Parameters

RFs & aSession
RFile & aFileHandle
TFileName & aFilename
CSvgErrorImpl & aError

isGroupOpacity(CSvgElementImpl *)

TBool isGroupOpacity(CSvgElementImpl *aElement)

Parameters

CSvgElementImpl * aElement

Member Data Documentation

const TInt KIndefiniteAnimationDuration

const TIntKIndefiniteAnimationDuration[private, static]

TUint iAnimationDuration

TUint iAnimationDuration[private]

TBool iAnimationResetNeeded

TBool iAnimationResetNeeded

TBool iCheckedAnimationDuration

TBool iCheckedAnimationDuration[private]

TInt32 iCurObjIdx

TInt32 iCurObjIdx[private]

CSvgElementImpl * iCurrentFocusObject

CSvgElementImpl *iCurrentFocusObject[private]

TBool iDrmEnable

TBool iDrmEnable[private]

TBool iDrmRightsConsumptionEnabled

TBool iDrmRightsConsumptionEnabled[private]

CSvgEngineImpl * iEngine

CSvgEngineImpl *iEngine[private]

CSvgErrorImpl * iError

CSvgErrorImpl *iError[private]

CSvgEventHandler * iEventHandler

CSvgEventHandler *iEventHandler

TBool iFinishedParsing

TBool iFinishedParsing

CSvgFontHashMap * iFontHashMap

CSvgFontHashMap *iFontHashMap

TBool iHasGradientElement

TBool iHasGradientElement[private]

TBool iHasGroupOpacity

TBool iHasGroupOpacity

TBool iHasParent

TBool iHasParent[private]

TInt iImageElementCnt

TInt iImageElementCnt

TBool iInitSortList

TBool iInitSortList

TBool iInitialDrawFlag

TBool iInitialDrawFlag

TBool iIsDRMProtected

TBool iIsDRMProtected[private]

TBool iIsInteractive

TBool iIsInteractive

TBool iIsPruningTree

TBool iIsPruningTree

TBool iIsRendering

TBool iIsRendering

TBool iIsThumbNailMode

TBool iIsThumbNailMode[private]

const RPointerArray< MSvgLoadingListener > * iLoadingListeners

const RPointerArray< MSvgLoadingListener > *iLoadingListeners[private]

CSvgMemoryManager * iMemoryManager

CSvgMemoryManager *iMemoryManager

TBool iMultipleRendering

TBool iMultipleRendering[private]

CSvgElementImpl * iPerfText

CSvgElementImpl *iPerfText

TBool iReqExReqFtrSysLTested

TBool iReqExReqFtrSysLTested

CSvgElementImpl * iRootElement

CSvgElementImpl *iRootElement[private]

CSvgSchemaData * iSchemaData

CSvgSchemaData *iSchemaData[private]

RPointerArray< CSvgAnimationBase > iSvgAnimations

RPointerArray< CSvgAnimationBase >iSvgAnimations

CSvgBitmapFontProvider * iSvgBitmapFontProvider

CSvgBitmapFontProvider *iSvgBitmapFontProvider[private]

RPointerArray< MSvgMouseListener > iSvgMouseListeners

RPointerArray< MSvgMouseListener >iSvgMouseListeners[private]

TSvgSyncBehaviour iSyncBehaviorDefault

TSvgSyncBehaviour iSyncBehaviorDefault[private]

TUint32 iSyncToleranceDefault

TUint32 iSyncToleranceDefault[private]

CSvgTimeContainer * iTimeContainer

CSvgTimeContainer *iTimeContainer[private]

TUint32 iTimeForJSR226

TUint32 iTimeForJSR226

TGfxAffineTransform iTransformMatrix

TGfxAffineTransform iTransformMatrix[private]

TBuf< 256 > iUri

TBuf< 256 >iUri[private]

TBool iWasPrepared

TBool iWasPrepared[private]

CSvgContentHandler * iXmlHandler

CSvgContentHandler *iXmlHandler[private]