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 ()
void AddImageElementListener ( MSvgImageElementListener *)
void AssignImageData ( HBufC8 *)
void BitmapDecoded ( CFbsBitmap *, CFbsBitmap *)
TInt CheckRequiredAttributes ()
MXmlElement * CloneL ( MXmlElement *)
TBool DrawL ( CGfx2dGc *, CSvgElementImpl *)
TInt GetAttributeDes (const TInt , TPtrC16 &)
TInt GetAttributeFloat (const TInt , TFloatFixPt &)
void GetBBox ( TGfxRectangle2D &)
CFbsBitmap * GetBitmap ()
void GetUnscaledBBox ( TGfxRectangle2D &)
TFloatFixPt Height ()
void ImageLoadingCompleted ( TInt )
TBool IsViewable ()
void LoadUriL ()
CSvgImageElementImpl * NewL (const TUint8 , CSvgDocumentImpl *)
CSvgImageElementImpl * NewLC (const TUint8 , CSvgDocumentImpl *)
const TDesC & Par ()
void Print ( TBool )
CSvgImageElementImpl * ReferenceElement ()
void RemoveImageElementListener ( MSvgImageElementListener *)
void ResetReference ()
TInt SetAttributeDesL (const TInt , const TDesC &)
TInt SetAttributeFloatL (const TInt , const TFloatFixPt )
TInt SetAttributeL (const TDesC &, const TDesC &)
void SetBitmap ( CFbsBitmap *)
void SetHeight ( TFloatFixPt )
void SetParL (const TDesC &)
void SetReferenceElement ( CSvgImageElementImpl *)
void SetUriL (const TDesC &)
void SetWidth ( TFloatFixPt )
TInt StartImageDecoding (const TDesC8 &, TBool )
TInt StartImageDecoding ( RFile &, CFbsBitmap *, TBool )
TFloatFixPt Width ()
TFloatFixPt X ()
TFloatFixPt Y ()
Protected Member Functions
void CopyL ( CSvgImageElementImpl *)
void PrepareImageFromSvgFile (const TDesC8 &)
Private Member Functions
void ConstructL (const TUint8 , CSvgDocumentImpl *)
void NotifyImageDecoded ()
void NotifyResetReference ()
void PrepareImageWithMask ()
void ProcessEncodedImageL (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 *)

void AddImageElementListener ( MSvgImageElementListener * aListener )

Parameters

MSvgImageElementListener * aListener

AssignImageData(HBufC8 *)

void AssignImageData ( HBufC8 * aData )

Parameters

HBufC8 * aData

BitmapDecoded(CFbsBitmap *, CFbsBitmap *)

void BitmapDecoded ( 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 *)

void ConstructL ( const TUint8 aElemID,
CSvgDocumentImpl * aDoc
) [private]

Need method description

Since
1.0

Parameters

const TUint8 aElemID
CSvgDocumentImpl * aDoc

CopyL(CSvgImageElementImpl *)

void CopyL ( 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 TInt aNameId,
TPtrC16 & aValue
) [virtual]

Need method description

Since
1.0

Parameters

const TInt aNameId
TPtrC16 & aValue

GetAttributeFloat(const TInt, TFloatFixPt &)

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

Need method description

Since
1.0

Parameters

const TInt aNameId
TFloatFixPt & aValue

GetBBox(TGfxRectangle2D &)

void GetBBox ( TGfxRectangle2D & aBbox ) [virtual]

Need method description

Since
1.0

Parameters

TGfxRectangle2D & aBbox

GetBitmap()

CFbsBitmap * GetBitmap ( )

GetUnscaledBBox(TGfxRectangle2D &)

void GetUnscaledBBox ( TGfxRectangle2D & ) [virtual]

Need method description

Since
1.0

Parameters

TGfxRectangle2D &

Height()

TFloatFixPt Height ( )

Need method description

Since
1.0

ImageLoadingCompleted(TInt)

void ImageLoadingCompleted ( TInt aErrorStatus )

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()

void LoadUriL ( )

Need method description

Since
1.0

NewL(const TUint8, CSvgDocumentImpl *)

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

Need method description

Since
1.0

Parameters

const TUint8 aElemID
CSvgDocumentImpl * aDoc

NewLC(const TUint8, CSvgDocumentImpl *)

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

Need method description

Since
1.0

Parameters

const TUint8 aElemID
CSvgDocumentImpl * aDoc

NotifyImageDecoded()

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

NotifyResetReference()

void NotifyResetReference ( ) [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 &)

void PrepareImageFromSvgFile ( const TDesC8 & aImageData ) [protected]

Parameters

const TDesC8 & aImageData

PrepareImageWithMask()

void PrepareImageWithMask ( ) [private]

Print(TBool)

void Print ( TBool aIsEncodeOn ) [virtual]

Parameters

TBool aIsEncodeOn

ProcessEncodedImageL(const TDesC &)

void ProcessEncodedImageL ( 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 *)

void RemoveImageElementListener ( MSvgImageElementListener * aListener )

Parameters

MSvgImageElementListener * aListener

ResetReference()

void ResetReference ( )

SetAttributeDesL(const TInt, const TDesC &)

TInt SetAttributeDesL ( const TInt aNameId,
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 TInt aNameId,
const TFloatFixPt aValue
) [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 *)

void SetBitmap ( CFbsBitmap * aBitmap )

Parameters

CFbsBitmap * aBitmap

SetHeight(TFloatFixPt)

void SetHeight ( TFloatFixPt aHeight )

Need method description

Since
1.0

Parameters

TFloatFixPt aHeight

SetParL(const TDesC &)

void SetParL ( const TDesC & aName )

Need method description

Since
1.0

Parameters

const TDesC & aName

SetReferenceElement(CSvgImageElementImpl *)

void SetReferenceElement ( 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 * aImageElement Image Element Pointer

SetUriL(const TDesC &)

void SetUriL ( const TDesC & aUri )

Need method description

Since
1.0

Parameters

const TDesC & aUri

SetWidth(TFloatFixPt)

void SetWidth ( TFloatFixPt aWidth )

Need method description

Since
1.0

Parameters

TFloatFixPt aWidth

StartImageDecoding(const TDesC8 &, TBool)

TInt StartImageDecoding ( const TDesC8 & aImageData,
TBool aSyncLoading
)
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 & aImageData Image Data Descriptor
TBool aSyncLoading ETrue=Sync Loading

StartImageDecoding(RFile &, CFbsBitmap *, TBool)

TInt StartImageDecoding ( RFile & aImageFile,
CFbsBitmap * aBitmap,
TBool aSyncLoading
)
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 & aImageFile Image File handle
CFbsBitmap * aBitmap Bitmap Pointer
TBool aSyncLoading ETrue=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]