class CSvgDocumentImpl : public CBase |
An SVG document that represents a SVG element tree..
CSvgDocumentImpl | ( | CSvgBitmapFontProvider * | aSvgBitmapFontProvider, |
const TBool | aHasParent, | ||
const TSvgSyncBehaviour | aSyncBehavDefault, | ||
const TInt32 | aSyncTolDefault | ||
) | [private] |
Constructor
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 |
void | AddEventBeginTime | ( | MSvgEventReceiver * | aElement, |
TUint32 | aTime, | |||
MSvgEventReceiver * | aTargetElement | |||
) |
Provide the event end time information to the Event Handler
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 |
void | AddInternalMouseListener | ( | const MSvgMouseListener * | aListener | ) |
Add a MSvgMouseListener to this SvgEngine
const MSvgMouseListener * aListener |
void | AddToEventReceiverListL | ( | MSvgEventReceiver * | aElement, |
TUint8 | aEventMask | |||
) |
Add an object to the list of objects that are notified of an event
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 |
void | AddToEventReceiverListL | ( | MSvgEventReceiver * | aElement, |
TSvgEvent | aEvent, | |||
TUint8 | aEventMask | |||
) |
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
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 |
MXmlElement * | AppendChildL | ( | MXmlElement * | aAppendChild | ) |
Need method description
MXmlElement * aAppendChild |
TBool | CanGenerateTick | ( | ) | [private] |
TBool | CanUseParentTick | ( | ) | [private] |
TInt | CreateAttribute | ( | const TDesC & | aName | ) |
Need method description
const TDesC & aName |
MXmlElement * | CreateElementL | ( | const TDesC & | aTagName | ) |
Need method description
const TDesC & aTagName |
MXmlElement * | CreateElementL | ( | const TUint8 | aTagName | ) |
const TUint8 aTagName |
TInt | CreateProcessPrivateDirectory | ( | RFs & | aSession, |
TFileName & | aPath | |||
) | [private] |
TInt32 | CurrentTime | ( | ) |
void | DocumentTransform | ( | TGfxAffineTransform & | aTr | ) |
TGfxAffineTransform & aTr |
void | ElementAppendedOrRemoved | ( | ) |
Called by AppendChild/RemoveChild to notify owner document of changes.
void | FindAllElements | ( | CSvgElementImpl * | aStartElement, |
TInt | aElementId, | |||
RPointerArray < CSvgElementImpl > & | aList, | |||
TSvgSearchFlags | aFlags = ESvgSearchAllElements | |||
) |
CSvgElementImpl * aStartElement | |
TInt aElementId | |
RPointerArray < CSvgElementImpl > & aList | |
TSvgSearchFlags aFlags = ESvgSearchAllElements |
void | FindAllIds | ( | CSvgElementImpl * | aStartElement, |
RPointerArray < TDesC > & | aList | |||
) |
Need method description
CSvgElementImpl * aStartElement | |
RPointerArray < TDesC > & aList |
void | GetCnfSyncMasterStatus | ( | TBool & | aIsSyncMaster | ) | [private] |
TBool & aIsSyncMaster | Indicates whether the element is configured as Sync Master. |
void | GetCurSyncMasterStatus | ( | TBool & | isSyncMaster | ) | [private] |
TBool & isSyncMaster |
MXmlElement * | GetElementById | ( | const TDesC & | aElementId | ) |
Need method description
const TDesC & aElementId |
void | GetEntityCurrentTime | ( | TUint32 & | aEntityCurTime | ) | [private] |
TUint32 & aEntityCurTime | Current Entity Time in msecs. |
TSvgSyncBehaviour | GetEntitySyncBehavior | ( | ) | [private] |
CSvgElementImpl * | GetEventReceiverElement | ( | TInt32 | aIndex, |
TBool | aNext, | |||
TUint8 | aEventMask, | |||
TInt32 & | aNewIndex | |||
) |
returns the next (or prev) focussable object starting with a given index
const RPointerArray < MSvgLoadingListener > * | GetLoadingListeners | ( | ) |
Set the list of MSvgLoadingListener for this document to send back notification of parsing progress. NULL is also valid.
TInt | GetNumberOfIds | ( | MXmlElement * | aElement | ) |
Need method description
MXmlElement * aElement |
TInt | GetProcessPrivatePath | ( | RFs & | aSession, |
TFileName & | aPath | |||
) | [private] |
void | ImageLoadingCompleted | ( | TInt | aErrorStatus | ) | [virtual] |
ImageLoadingObserver interface method. Called from Image loading class to notify image loading completion.
TInt aErrorStatus |
TBool | IsAnimationFile | ( | ) |
Checks whether the current loaded file is animatable or static
TBool | IsBinarySvg | ( | const TDesC8 & | aByteArray | ) | [private] |
const TDesC8 & aByteArray |
TBool | IsDRMContent | ( | RFile & | aFileHandle | ) | [private] |
RFile & aFileHandle |
TBool | IsDRMContent | ( | const TDesC8 & | aByteData | ) | [private] |
const TDesC8 & aByteData |
TBool | IsDocumentContentInteractive | ( | ) |
Finds if Document content is Interactive
TBool | IsGzipContent | ( | const TDesC8 & | aByteArray | ) | [private] |
const TDesC8 & aByteArray |
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.
TBool | IsValidSubEventMask | ( | TUint16 | aSubEventMask | ) |
TUint16 aSubEventMask |
void | Load | ( | const TDesC & | aFileName, |
CSvgErrorImpl & | aError | |||
) |
Load a svg content from the given filename
const TDesC & aFileName | |
CSvgErrorImpl & aError |
void | Load | ( | const TDesC8 & | aByteData, |
CSvgErrorImpl & | aError, | |||
TBool | aRemoveFalseSwitchElements = ETrue | |||
) |
Load a svg content from the given byte-array
const TDesC8 & aByteData | |
CSvgErrorImpl & aError | |
TBool aRemoveFalseSwitchElements = ETrue |
void | Load | ( | RFile & | aFileHandle, |
CSvgErrorImpl & | aError | |||
) |
Load a svg content from the given file-handle
RFile & aFileHandle | |
CSvgErrorImpl & aError |
void | Load | ( | RFs & | aSession, |
RFile & | aFileHandle, | |||
CSvgErrorImpl & | aError | |||
) | [private] |
RFs & aSession | |
RFile & aFileHandle | |
CSvgErrorImpl & aError |
void | Load16BitString | ( | const TDesC16 & | aSvgString, |
CSvgErrorImpl & | aError, | |||
TBool | aRemoveFalseSwitchElements = ETrue | |||
) |
Load a svg content from JSR226 that is already TDesc16
const TDesC16 & aSvgString | |
CSvgErrorImpl & aError | |
TBool aRemoveFalseSwitchElements = ETrue |
CSvgDocumentImpl * | NewL | ( | CSvgBitmapFontProvider * | aSvgBitmapFontProvider, |
const TBool | aHasParent = EFalse, | |||
const TSvgSyncBehaviour | aSyncBehavDefault = KSvgDefaultSyncBehaviour , | |||
const TInt32 | aSyncTolDefault = KSvgDefaultSyncTolerance | |||
) | [static] |
CSvgBitmapFontProvider * aSvgBitmapFontProvider | |
const TBool aHasParent = EFalse | |
const TSvgSyncBehaviour aSyncBehavDefault = KSvgDefaultSyncBehaviour | |
const TInt32 aSyncTolDefault = KSvgDefaultSyncTolerance |
CSvgDocumentImpl * | NewLC | ( | CSvgBitmapFontProvider * | aSvgBitmapFontProvider, |
const TBool | aHasParent = EFalse, | |||
const TSvgSyncBehaviour | aSyncBehavDefault = KSvgDefaultSyncBehaviour , | |||
const TInt32 | aSyncTolDefault = KSvgDefaultSyncTolerance | |||
) | [static] |
Need method description
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 |
void | NotifyDocumentStart | ( | ) |
Send to loading listeners of a document start event.
void | NotifyElementEnd | ( | const TDesC & | aTagName, |
TBool | aIsSvgChild | |||
) |
Send to loading listeners of an element end event.
void | NotifyElementStart | ( | const TDesC & | aTagName, |
MSvgAttributeList & | aAttributeList, | |||
TBool | aIsSvgChild | |||
) |
Send to loading listeners of an element start event.
const TDesC & aTagName | |
MSvgAttributeList & aAttributeList | |
TBool aIsSvgChild |
void | NotifyExternalDataReceived | ( | const TDesC & | aUri | ) |
Send to loading listeners of a succesfful external data reception.
const TDesC & aUri |
void | NotifyExternalDataRequestFailed | ( | const TDesC & | aUri | ) |
Send to loading listeners of a failed external data request.
const TDesC & aUri |
void | NotifyExternalDataRequested | ( | const TDesC & | aUri | ) |
Send to loading listeners of an external data request.
const TDesC & aUri |
void | NotifyInternalMouseEntered | ( | RPointerArray < CSvgElementImpl > & | aElements, |
TInt | aX, | |||
TInt | aY | |||
) |
Send to mouse listeners of a mouse-entered event.
RPointerArray < CSvgElementImpl > & aElements | |
TInt aX | |
TInt aY |
void | NotifyInternalMouseExited | ( | RPointerArray < CSvgElementImpl > & | aElements, |
TInt | aX, | |||
TInt | aY | |||
) |
Send to mouse listeners of a mouse-exited event.
RPointerArray < CSvgElementImpl > & aElements | |
TInt aX | |
TInt aY |
void | NotifyInternalMouseMoved | ( | RPointerArray < CSvgElementImpl > & | aElements, |
TInt | aX, | |||
TInt | aY | |||
) |
Send to mouse listeners of a mouse-moved event.
RPointerArray < CSvgElementImpl > & aElements | |
TInt aX | |
TInt aY |
void | NotifyInternalMousePressed | ( | RPointerArray < CSvgElementImpl > & | aElements, |
TInt | aX, | |||
TInt | aY | |||
) |
Send to mouse listeners of a mouse-pressed event.
RPointerArray < CSvgElementImpl > & aElements | |
TInt aX | |
TInt aY |
void | NotifyInternalMouseReleased | ( | RPointerArray < CSvgElementImpl > & | aElements, |
TInt | aX, | |||
TInt | aY | |||
) |
Send to mouse listeners of a mouse-released event.
RPointerArray < CSvgElementImpl > & aElements | |
TInt aX | |
TInt aY |
void | NotifyUnsupportedElement | ( | const TDesC & | aTagName, |
MSvgAttributeList & | aAttributeList | |||
) |
Send to loading listeners of an unsupported element event.
const TDesC & aTagName | |
MSvgAttributeList & aAttributeList |
void | OpenSession | ( | RFs & | aSession, |
CSvgErrorImpl & | aError | |||
) | [static] |
RFs & aSession | |
CSvgErrorImpl & aError |
void | ParentTimeContainerTick | ( | TSvgTick | aTick | ) | [private] |
TSvgTick aTick | Current tick information |
void | ParsePostOrderMediaElements | ( | CSvgElementImpl * | aRoot, |
RPointerArray < CSvgElementImpl > & | aPostOrderList | |||
) |
CSvgElementImpl * aRoot | Root Node of tree |
RPointerArray < CSvgElementImpl > & aPostOrderList | List of nodes which will contain the elements. |
void | PauseTimedEntity | ( | ) | [private] |
void | PrepareError | ( | CSvgErrorImpl & | aError, |
TSvgErrorCode | aSvgErrorCode, | |||
TInt | aSystemError, | |||
const TDesC & | aMsg1, | |||
const TDesC & | aMsg2 | |||
) | [static] |
Fill the given error object with the appropriate error codes, messages.
CSvgErrorImpl & aError | |
TSvgErrorCode aSvgErrorCode | |
TInt aSystemError | |
const TDesC & aMsg1 | |
const TDesC & aMsg2 |
void | PrintAllElements | ( | CSvgElementImpl * | aStartElement | ) |
CSvgElementImpl * aStartElement |
void | Process16BitSvgContentL | ( | const TDesC16 & | aByteArray, |
CSvgErrorImpl & | aError, | |||
TBool | aRemoveFalseSwitchElements = ETrue | |||
) | [private] |
const TDesC16 & aByteArray | |
CSvgErrorImpl & aError | |
TBool aRemoveFalseSwitchElements = ETrue |
HBufC8 * | ProcessDRMContentL | ( | RFile & | aFileHandle, |
CSvgErrorImpl & | aError | |||
) | [private] |
RFile & aFileHandle | |
CSvgErrorImpl & aError |
void | ProcessDRMError | ( | TInt | errorCode, |
CSvgErrorImpl & | aError | |||
) | [private] |
TInt errorCode | |
CSvgErrorImpl & aError |
TBool | ProcessGZipContent | ( | RFs & | aSession, |
RFile & | aFileHandle, | |||
TFileName & | aFileName, | |||
CSvgErrorImpl & | aError | |||
) | [private] |
RFs & aSession | |
RFile & aFileHandle | |
TFileName & aFileName | |
CSvgErrorImpl & aError |
TBool | ProcessGZipContent | ( | RFs & | aSession, |
TFileName & | aZippedFileName, | |||
TFileName & | aUnzippedFileName, | |||
CSvgErrorImpl & | aError | |||
) | [private] |
RFs & aSession | |
TFileName & aZippedFileName | |
TFileName & aUnzippedFileName | |
CSvgErrorImpl & aError |
void | ProcessSvgContentL | ( | const TDesC8 & | aByteArray, |
CSvgErrorImpl & | aError, | |||
TBool | aRemoveFalseSwitchElements = ETrue | |||
) | [private] |
const TDesC8 & aByteArray | |
CSvgErrorImpl & aError | |
TBool aRemoveFalseSwitchElements = ETrue |
void | RemoveFromEventReceiverList | ( | MSvgEventReceiver * | aElement | ) |
Removed an object to the list of objects that are notified of an event
MSvgEventReceiver * aElement | - An SVG element that wants to be registered for an event (implements MSvgEventReceiver interface) |
void | RemoveInternalMouseListener | ( | const MSvgMouseListener * | aListener | ) |
Remove a MSvgMouseListener to this SvgEngine
const MSvgMouseListener * aListener |
void | Reset | ( | MSvgEvent * | aEvent | ) |
MSvgEvent * aEvent |
void | ResumeTimedEntity | ( | ) | [private] |
void | ResyncTimedEntity | ( | TUint32 | aSynctime | ) | [private] |
TUint32 aSynctime | Time for resync in msecs. |
TBool | SearchByPointer | ( | CSvgElementImpl * | aParent, |
CSvgElementImpl * | aElement | |||
) |
CSvgElementImpl * aParent | |
CSvgElementImpl * aElement |
MXmlElement * | SearchElementById | ( | MXmlElement * | aElement, |
const TDesC & | aId | |||
) | [private] |
search element by ID
MXmlElement * aElement | |
const TDesC & aId |
void | SetCurFocusObject | ( | CSvgElementImpl * | aElement | ) |
CSvgElementImpl * aElement |
void | SetCurSyncMasterStatus | ( | TBool | aSyncMasterStatus | ) | [private] |
TBool aSyncMasterStatus | Indicates whether the element is currrently Sync Master. |
void | SetCurrentTime | ( | const TInt32 | aCurTime | ) |
const TInt32 aCurTime | Current Time to be set in msecs |
void | SetDRMMode | ( | TBool | aEnable | ) |
Sets DRM Check Enable/Disable
TBool aEnable |
void | SetDRMRights | ( | TBool | aEnable | ) |
Set the document to disable/enable consuming drm rights
TBool aEnable |
void | SetEngine | ( | CSvgEngineImpl * | aEngine | ) |
Need method description
CSvgEngineImpl * aEngine |
void | SetError | ( | TInt | aErrorType, |
const TDesC & | aMsg1, | |||
const TDesC & | aMsg2 | |||
) |
Set the error type and error message for this document. Will note override existing error.
void | SetFocusElement | ( | CXmlElementImpl * | aElement | ) |
CXmlElementImpl * aElement |
void | SetIsWarning | ( | TBool | aIsWarning = ETrue | ) |
TBool aIsWarning = ETrue |
void | SetLoadingListeners | ( | const RPointerArray < MSvgLoadingListener > * | aList | ) |
Set the list of MSvgLoadingListener for this document to send back notification of parsing progress. NULL is also valid.
const RPointerArray < MSvgLoadingListener > * aList |
void | SetTCSyncBehavior | ( | const TSvgSyncBehaviour | aValue | ) |
const TSvgSyncBehaviour aValue | canSlip | locked | independent |
void | SetTCSyncMaster | ( | const TBool | aValue | ) |
const TBool aValue | true | false |
void | SetTCSyncTolerance | ( | const TUint32 | aValue | ) |
const TUint32 aValue | Clock-value |
void | SetThumbNailMode | ( | TBool | aThumbNailMode | ) |
Set the document to be in thumbnailmode, which will not consume the DRM right if the Svg content is DRM encrypted.
TBool aThumbNailMode |
void | SetUri | ( | const TDesC & | aUri | ) |
Need method description
const TDesC & aUri |
void | SetWasPrepared | ( | TBool | aBool | ) |
Set the flag to indicate this document was prepared (PrepareDom) or loaded (Load).
TBool aBool |
void | SortEventList | ( | ) |
An internal method that sorts the events in a time scale
void | StopTimedEntity | ( | ) | [private] |
TUint32 | SubtreeDuration | ( | CSvgElementImpl * | aRootElement | ) | [private] |
CSvgElementImpl * aRootElement |
TBool | SvgElementPresent | ( | CSvgElementImpl * | aElement | ) |
CSvgElementImpl * aElement |
TBool | SvgHasAnimationElement | ( | ) |
Finds if Animation element is there.
TSvgSyncBehaviour | SyncBehaviorDefault | ( | ) |
TUint32 | SyncToleranceDefault | ( | ) |
CSvgTimeContainer * | TimeContainer | ( | ) |
TBool | WasPrepared | ( | ) |
Return whether this document was prepared (PrepareDom) or loaded (Load).
TInt | WriteToTempFile | ( | RFs & | aSession, |
const TDesC8 & | aByteArray, | |||
TFileName & | aFilename, | |||
CSvgErrorImpl & | aError | |||
) | [private] |
RFs & aSession | |
const TDesC8 & aByteArray | |
TFileName & aFilename | |
CSvgErrorImpl & aError |
TInt | WriteToTempFile | ( | RFs & | aSession, |
RFile & | aFileHandle, | |||
TFileName & | aFilename, | |||
CSvgErrorImpl & | aError | |||
) | [private] |
RFs & aSession | |
RFile & aFileHandle | |
TFileName & aFilename | |
CSvgErrorImpl & aError |
TBool | isGroupOpacity | ( | CSvgElementImpl * | aElement | ) |
CSvgElementImpl * aElement |
const RPointerArray < MSvgLoadingListener > * | iLoadingListeners | [private] |
RPointerArray < CSvgAnimationBase > | iSvgAnimations |
CSvgBitmapFontProvider * | iSvgBitmapFontProvider | [private] |
RPointerArray < MSvgMouseListener > | iSvgMouseListeners | [private] |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.