CSvgImageElementImpl Class Reference

class CSvgImageElementImpl : public CSvgElementImpl

Class description goes here.

SVGEngine.lib
Since
1.0

Inherits from

Nested Classes and Structures

Public Member Functions
CSvgImageElementImpl(CSvgDocumentImpl *)
~CSvgImageElementImpl()
voidAddImageElementListener(MSvgImageElementListener *)
voidAssignImageData(HBufC8 *)
voidBitmapDecoded(CFbsBitmap *, CFbsBitmap *)
TInt CheckRequiredAttributes()
MXmlElement *CloneL(MXmlElement *)
TBool DrawL(CGfx2dGc *, CSvgElementImpl *)
TInt GetAttributeDes(const TInt, TPtrC16 &)
TInt GetAttributeFloat(const TInt, TFloatFixPt &)
voidGetBBox(TGfxRectangle2D &)
CFbsBitmap *GetBitmap()
voidGetUnscaledBBox(TGfxRectangle2D &)
TFloatFixPt Height()
voidImageLoadingCompleted(TInt)
TBool IsViewable()
voidLoadUriL()
CSvgImageElementImpl *NewL(const TUint8, CSvgDocumentImpl *)
CSvgImageElementImpl *NewLC(const TUint8, CSvgDocumentImpl *)
const TDesC &Par()
voidPrint(TBool)
CSvgImageElementImpl *ReferenceElement()
voidRemoveImageElementListener(MSvgImageElementListener *)
voidResetReference()
TInt SetAttributeDesL(const TInt, const TDesC &)
TInt SetAttributeFloatL(const TInt, const TFloatFixPt)
TInt SetAttributeL(const TDesC &, const TDesC &)
voidSetBitmap(CFbsBitmap *)
voidSetHeight(TFloatFixPt)
voidSetParL(const TDesC &)
voidSetReferenceElement(CSvgImageElementImpl *)
voidSetUriL(const TDesC &)
voidSetWidth(TFloatFixPt)
TInt StartImageDecoding(const TDesC8 &, TBool)
TInt StartImageDecoding(RFile &, CFbsBitmap *, TBool)
TFloatFixPt Width()
TFloatFixPt X()
TFloatFixPt Y()
Protected Member Functions
voidCopyL(CSvgImageElementImpl *)
voidPrepareImageFromSvgFile(const TDesC8 &)
Private Member Functions
voidConstructL(const TUint8, CSvgDocumentImpl *)
voidNotifyImageDecoded()
voidNotifyResetReference()
voidPrepareImageWithMask()
voidProcessEncodedImageL(const TDesC &)
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()
CSvgElementImpl::AnimateMotionMatrixIndexL()
CSvgElementImpl::AnimateTransformMatrixIndexL()
CSvgElementImpl::AppendChildL(MXmlElement *,TBool)
CSvgElementImpl::AreAllAttributesAdded()
CSvgElementImpl::CSvgElementImpl()
CSvgElementImpl::CanGenerateInternalEvent(TUint16,TSvgEvent)
CSvgElementImpl::CloneSvgStylePropertiesL(CSvgElementImpl *,CSvgElementImpl *)
CSvgElementImpl::CopyL(CSvgElementImpl *)
CSvgElementImpl::CreateSvgTestL(const TUint16)
CSvgElementImpl::CurrentColor()
CSvgElementImpl::DeactivateAnimation()
CSvgElementImpl::DoAnimProcL(MSvgEvent *)
CSvgElementImpl::DrawShapeL(CGfx2dGc *,CSvgElementImpl *)
CSvgElementImpl::DrawShapeL(CGfx2dGc *,MGfxShape &,CSvgElementImpl *)
CSvgElementImpl::FindProperty(const TInt8,CCssValue *&)
CSvgElementImpl::FindProperty(const TInt8,CCssValue *&,CSvgElementImpl *)
CSvgElementImpl::GetAttributeIntL(const TInt,TInt32 &)
CSvgElementImpl::GetAttributePath(const TInt,CGfxGeneralPath *&)
CSvgElementImpl::GetCTM()
CSvgElementImpl::GetCurrentScale()
CSvgElementImpl::GetDefaultAttributeL(const TInt,CCssValue *&)
CSvgElementImpl::GetPathAttribute(TInt)
CSvgElementImpl::GetRequiredExtensions(const CDesCArrayFlat *&)
CSvgElementImpl::GetRequiredFeatures(const CDesCArrayFlat *&)
CSvgElementImpl::GetSvgStylePropertiesArray(RPointerArray< CCssValue > *&)
CSvgElementImpl::GetSystemLanguage(const CDesCArrayFlat *&)
CSvgElementImpl::GetTransform(MSvgTransformList *&)
CSvgElementImpl::HasAnimation()
CSvgElementImpl::HasAnyTests()
CSvgElementImpl::HasExtension(const TDesC &)
CSvgElementImpl::HasFeature(const TDesC &)
CSvgElementImpl::Href()
CSvgElementImpl::HrefPointer()
CSvgElementImpl::Id()
CSvgElementImpl::InitAllSvgStyleProperties(CSvgElementImpl *)
CSvgElementImpl::InitSvgJSRStyleProperties(CSvgElementImpl *)
CSvgElementImpl::InitSvgStyleProperties()
CSvgElementImpl::InitSvgStylePropertiesWithNullL()
CSvgElementImpl::InitializeL(TUint8)
CSvgElementImpl::IsAnimatedElement()
CSvgElementImpl::IsAnimating()
CSvgElementImpl::IsDrawable()
CSvgElementImpl::IsInherited(const TInt)
CSvgElementImpl::IsMouseDown()
CSvgElementImpl::IsMouseIn()
CSvgElementImpl::IsOverwriteTransforms()
CSvgElementImpl::IsSVGEnginePaused()
CSvgElementImpl::IsTransformable()
CSvgElementImpl::IsVisible()
CSvgElementImpl::PointToParent(const TInt)
CSvgElementImpl::PrintStyleProperties()
CSvgElementImpl::PropagateToChildren(CCssValue *,CCssValue *,const TInt)
CSvgElementImpl::ReInitializeAnimation()
CSvgElementImpl::ReceiveEventL(MSvgEvent *)
CSvgElementImpl::ReceiveEventL(MSvgEvent *,const TUint16)
CSvgElementImpl::RemoveAttribute(const TInt)
CSvgElementImpl::Reset(MSvgEvent *)
CSvgElementImpl::ResetReferenceAttrSet()
CSvgElementImpl::ResetReferenceElementL()
CSvgElementImpl::SetAllAttributesAdded(TBool)
CSvgElementImpl::SetAttributeIntL(const TInt,const TInt32)
CSvgElementImpl::SetAttributePathL(const TInt,CGfxGeneralPath *)
CSvgElementImpl::SetAttributePathRef(const TInt,CGfxGeneralPath *&)
CSvgElementImpl::SetCTM(TGfxAffineTransform &)
CSvgElementImpl::SetGCL(CGfx2dGc *)
CSvgElementImpl::SetIdandXmlbaseL(const TDesC &,const TDesC &)
CSvgElementImpl::SetIsAnimating(TBool)
CSvgElementImpl::SetLangSpaceAttributeL(const TDesC &,const TDesC &)
CSvgElementImpl::SetMouseDown(TBool)
CSvgElementImpl::SetMouseIn(TBool)
CSvgElementImpl::SetOverwriteTransforms(TBool)
CSvgElementImpl::SetPathAttribute(TInt,CGfxGeneralPath *)
CSvgElementImpl::SetPresentationAttribute(const TInt8,CCssValue *&)
CSvgElementImpl::SetPropertyFloatL(const TInt &,TReal32)
CSvgElementImpl::SetPropertyL(const TInt &,const TDesC &)
CSvgElementImpl::SetRequiredExtensions(CDesCArrayFlat *&)
CSvgElementImpl::SetRequiredFeatures(CDesCArrayFlat *&)
CSvgElementImpl::SetSystemLanguage(CDesCArrayFlat *&)
CSvgElementImpl::SetTestAttributeL(const TDesC &,const TDesC &)
CSvgElementImpl::SetTransform(MSvgTransformList *&)
CSvgElementImpl::SetTransform(const TDesC &,const TDesC &)
CSvgElementImpl::SetTransformList(TGfxAffineTransform &)
CSvgElementImpl::SetTurnOff(TBool)
CSvgElementImpl::SetUriRefDesL(const TUint16,const TDesC &)
CSvgElementImpl::SetXMLLangL(const TDesC &)
CSvgElementImpl::SetXMLSpaceL(const TDesC &)
CSvgElementImpl::SetXlinkAttributeL(const TDesC &,const TDesC &)
CSvgElementImpl::StyleInParent(CSvgElementImpl *,TInt)
CSvgElementImpl::UpdateCTM()
CSvgElementImpl::WasTurnedOff()
CSvgElementImpl::XMLLang()
CSvgElementImpl::XMLSpace()
CSvgElementImpl::XlinkShow()
CSvgElementImpl::~CSvgElementImpl()
CXmlElementImpl::CopyL(CXmlElementImpl *)
CXmlElementImpl::ElemID()
CXmlElementImpl::FirstChild()
CXmlElementImpl::HasChildNodes()
CXmlElementImpl::LastChild()
CXmlElementImpl::NextSibling()
CXmlElementImpl::OwnerDocument()
CXmlElementImpl::ParentNode()
CXmlElementImpl::PreviousSibling()
CXmlElementImpl::RemoveAttribute(const TDesC &)
CXmlElementImpl::RemoveChild(MXmlElement *)
CXmlElementImpl::SetFirstChild(MXmlElement *)
CXmlElementImpl::SetLastChild(MXmlElement *)
CXmlElementImpl::SetNextSibling(MXmlElement *)
CXmlElementImpl::SetOwnerDocument(MXmlDocument *)
CXmlElementImpl::SetParentNode(MXmlElement *)
CXmlElementImpl::TagName()
CXmlElementImpl::~CXmlElementImpl()
Public Attributes
CFbsBitmap *iBitmap
TBool iBitmapLoadCalled
TBool iBitmapReady
TInt iDownloadWait
TFileName iFullPathFileName
CPeriodic *iImageDownloadTimer
TBool iIsBase64
TBool iIsSvgFile
CFbsBitmap *iMask
CSvgImageElementImpl *iRefElement
RFs iSession
TBool iSessionConnected
Private Attributes
TBool iBitmapOrgReady
HBufC8 *iImageData
TBool iImageDecodingDone
RPointerArray< MSvgImageElementListener >iImageElementListeners
CSvgImageLoaderUtil *iImageLoader
TGfxRectangle2D iImgRect
TBool iIsUriSet
HBufC *iPar
TBool iRenderImage
TBool iUsedImage
Inherited Attributes
CSvgElementImpl::iAnimateAttrSet
CSvgElementImpl::iAnimateMotionMatrixIndex
CSvgElementImpl::iAnimateTransformMatrixIndex
CSvgElementImpl::iHasAnimationBase
CSvgElementImpl::iId
CSvgElementImpl::iReqAttrFlag
CSvgElementImpl::iSvgLangSpace
CSvgElementImpl::iSvgStyleProperties
CSvgElementImpl::iSvgTests
CSvgElementImpl::iSvgTransformable
CSvgElementImpl::iSvgUriReferenceImpl
CXmlElementImpl::iElemID
CXmlElementImpl::iFirstChild
CXmlElementImpl::iLastChild
CXmlElementImpl::iNextSibling
CXmlElementImpl::iOwnerDocument
CXmlElementImpl::iParentNode

Constructor & Destructor Documentation

CSvgImageElementImpl(CSvgDocumentImpl *)

CSvgImageElementImpl(CSvgDocumentImpl *aDoc)

Need method description

Since
1.0

Parameters

CSvgDocumentImpl * aDoc

~CSvgImageElementImpl()

~CSvgImageElementImpl()[virtual]

Need method description

Since
1.0

Member Functions Documentation

AddImageElementListener(MSvgImageElementListener *)

voidAddImageElementListener(MSvgImageElementListener *aListener)

Parameters

MSvgImageElementListener * aListener

AssignImageData(HBufC8 *)

voidAssignImageData(HBufC8 *aData)

Parameters

HBufC8 * aData

BitmapDecoded(CFbsBitmap *, CFbsBitmap *)

voidBitmapDecoded(CFbsBitmap *aBitmap,
CFbsBitmap *aMask
)

Parameters

CFbsBitmap * aBitmap
CFbsBitmap * aMask

CheckRequiredAttributes()

TInt CheckRequiredAttributes()

CloneL(MXmlElement *)

MXmlElement *CloneL(MXmlElement *aParentElement)

Need method description

Since
1.0

Parameters

MXmlElement * aParentElement

ConstructL(const TUint8, CSvgDocumentImpl *)

voidConstructL(const TUint8aElemID,
CSvgDocumentImpl *aDoc
)[private]

Need method description

Since
1.0

Parameters

const TUint8 aElemID
CSvgDocumentImpl * aDoc

CopyL(CSvgImageElementImpl *)

voidCopyL(CSvgImageElementImpl *aDestElement)[protected]

Need method description

Since
1.0

Parameters

CSvgImageElementImpl * aDestElement

DrawL(CGfx2dGc *, CSvgElementImpl *)

TBool DrawL(CGfx2dGc *aGc,
CSvgElementImpl *aElement
)[virtual]

Need method description

Since
1.0

Parameters

CGfx2dGc * aGc
CSvgElementImpl * aElement

GetAttributeDes(const TInt, TPtrC16 &)

TInt GetAttributeDes(const TIntaNameId,
TPtrC16 &aValue
)[virtual]

Need method description

Since
1.0

Parameters

const TInt aNameId
TPtrC16 & aValue

GetAttributeFloat(const TInt, TFloatFixPt &)

TInt GetAttributeFloat(const TIntaNameId,
TFloatFixPt &aValue
)[virtual]

Need method description

Since
1.0

Parameters

const TInt aNameId
TFloatFixPt & aValue

GetBBox(TGfxRectangle2D &)

voidGetBBox(TGfxRectangle2D &aBbox)[virtual]

Need method description

Since
1.0

Parameters

TGfxRectangle2D & aBbox

GetBitmap()

CFbsBitmap *GetBitmap()

GetUnscaledBBox(TGfxRectangle2D &)

voidGetUnscaledBBox(TGfxRectangle2D &)[virtual]

Need method description

Since
1.0

Parameters

TGfxRectangle2D &

Height()

TFloatFixPt Height()

Need method description

Since
1.0

ImageLoadingCompleted(TInt)

voidImageLoadingCompleted(TIntaErrorStatus)

Need method description

Since
1.0

Parameters

TInt aErrorStatus

IsViewable()

TBool IsViewable()[inline, virtual]

Return wether an svg element is displayable, such as <rect>, <circle>, or an abstract element, such as <g>, <animate>.

Since
1.0

LoadUriL()

voidLoadUriL()

Need method description

Since
1.0

NewL(const TUint8, CSvgDocumentImpl *)

CSvgImageElementImpl *NewL(const TUint8aElemID,
CSvgDocumentImpl *aDoc
)[static]

Need method description

Since
1.0

Parameters

const TUint8 aElemID
CSvgDocumentImpl * aDoc

NewLC(const TUint8, CSvgDocumentImpl *)

CSvgImageElementImpl *NewLC(const TUint8aElemID,
CSvgDocumentImpl *aDoc
)[static]

Need method description

Since
1.0

Parameters

const TUint8 aElemID
CSvgDocumentImpl * aDoc

NotifyImageDecoded()

voidNotifyImageDecoded()[private]
Notify the listeners (MSvgImageElementListener) when Image decoding is completed
Since
s60 3.0

NotifyResetReference()

voidNotifyResetReference()[private]
Notify the listeners (MSvgImageElementListener) to dereference the reference element. This function can be called for eg. when the reference element is getting deleted.
Since
s60 3.2

Par()

const TDesC &Par()

Need method description

Since
1.0

PrepareImageFromSvgFile(const TDesC8 &)

voidPrepareImageFromSvgFile(const TDesC8 &aImageData)[protected]

Parameters

const TDesC8 & aImageData

PrepareImageWithMask()

voidPrepareImageWithMask()[private]

Print(TBool)

voidPrint(TBoolaIsEncodeOn)[virtual]

Parameters

TBool aIsEncodeOn

ProcessEncodedImageL(const TDesC &)

voidProcessEncodedImageL(const TDesC &aXlinkHrefValue)[private]

Process an encoded image in the xlink:href attribute value.

Since
1.0

Parameters

const TDesC & aXlinkHrefValue: the string of the xlink:href attribute value.

ReferenceElement()

CSvgImageElementImpl *ReferenceElement()
Get function for reference element
Since
s60 3.2

RemoveImageElementListener(MSvgImageElementListener *)

voidRemoveImageElementListener(MSvgImageElementListener *aListener)

Parameters

MSvgImageElementListener * aListener

ResetReference()

voidResetReference()

SetAttributeDesL(const TInt, const TDesC &)

TInt SetAttributeDesL(const TIntaNameId,
const TDesC &aValue
)[virtual]

Need method description

Since
1.0

Parameters

const TInt aNameId
const TDesC & aValue

SetAttributeFloatL(const TInt, const TFloatFixPt)

TInt SetAttributeFloatL(const TIntaNameId,
const TFloatFixPtaValue
)[virtual]

Need method description

Since
1.0

Parameters

const TInt aNameId
const TFloatFixPt aValue

SetAttributeL(const TDesC &, const TDesC &)

TInt SetAttributeL(const TDesC &aName,
const TDesC &aValue
)[virtual]

Need method description

Since
1.0

Parameters

const TDesC & aName
const TDesC & aValue

SetBitmap(CFbsBitmap *)

voidSetBitmap(CFbsBitmap *aBitmap)

Parameters

CFbsBitmap * aBitmap

SetHeight(TFloatFixPt)

voidSetHeight(TFloatFixPtaHeight)

Need method description

Since
1.0

Parameters

TFloatFixPt aHeight

SetParL(const TDesC &)

voidSetParL(const TDesC &aName)

Need method description

Since
1.0

Parameters

const TDesC & aName

SetReferenceElement(CSvgImageElementImpl *)

voidSetReferenceElement(CSvgImageElementImpl *aImageElement)
Informs the image element that it is referring to a particular element. This is used in case an image element is cloned.
Since
s60 3.2

Parameters

CSvgImageElementImpl * aImageElementImage Element Pointer

SetUriL(const TDesC &)

voidSetUriL(const TDesC &aUri)

Need method description

Since
1.0

Parameters

const TDesC & aUri

SetWidth(TFloatFixPt)

voidSetWidth(TFloatFixPtaWidth)

Need method description

Since
1.0

Parameters

TFloatFixPt aWidth

StartImageDecoding(const TDesC8 &, TBool)

TInt StartImageDecoding(const TDesC8 &aImageData,
TBoolaSyncLoading
)
Starts the image decoding. This is the version that accepts descriptor data of the image content. Image can be SVG/ any format supported by CImageDecoder
Since
s60 3.2

Parameters

const TDesC8 & aImageDataImage Data Descriptor
TBool aSyncLoadingETrue=Sync Loading

StartImageDecoding(RFile &, CFbsBitmap *, TBool)

TInt StartImageDecoding(RFile &aImageFile,
CFbsBitmap *aBitmap,
TBoolaSyncLoading
)
Starts the image decoding. This is the version that accepts file handle of the image content. Image can be SVG/ any format supported by CImageDecoder
Since
s60 3.2

Parameters

RFile & aImageFileImage File handle
CFbsBitmap * aBitmapBitmap Pointer
TBool aSyncLoadingETrue=Sync Loading

Width()

TFloatFixPt Width()

Need method description

Since
1.0

X()

TFloatFixPt X()

Need method description

Since
1.0

Y()

TFloatFixPt Y()

Need method description

Since
1.0

Member Data Documentation

CFbsBitmap * iBitmap

CFbsBitmap *iBitmap

TBool iBitmapLoadCalled

TBool iBitmapLoadCalled

TBool iBitmapOrgReady

TBool iBitmapOrgReady[private]

TBool iBitmapReady

TBool iBitmapReady

TInt iDownloadWait

TInt iDownloadWait

TFileName iFullPathFileName

TFileName iFullPathFileName

HBufC8 * iImageData

HBufC8 *iImageData[private]

TBool iImageDecodingDone

TBool iImageDecodingDone[private]

CPeriodic * iImageDownloadTimer

CPeriodic *iImageDownloadTimer

RPointerArray< MSvgImageElementListener > iImageElementListeners

RPointerArray< MSvgImageElementListener >iImageElementListeners[private]

CSvgImageLoaderUtil * iImageLoader

CSvgImageLoaderUtil *iImageLoader[private]

TGfxRectangle2D iImgRect

TGfxRectangle2D iImgRect[private]

TBool iIsBase64

TBool iIsBase64

TBool iIsSvgFile

TBool iIsSvgFile

TBool iIsUriSet

TBool iIsUriSet[private]

CFbsBitmap * iMask

CFbsBitmap *iMask

HBufC * iPar

HBufC *iPar[private]

CSvgImageElementImpl * iRefElement

CSvgImageElementImpl *iRefElement

TBool iRenderImage

TBool iRenderImage[private]

RFs iSession

RFs iSession

TBool iSessionConnected

TBool iSessionConnected

TBool iUsedImage

TBool iUsedImage[private]