|
1 /* |
|
2 * Copyright (c) 2003 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: SVG Implementation header file |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef _INC_CSVGSETELEMENTIMPL_ |
|
20 #define _INC_CSVGSETELEMENTIMPL_ |
|
21 |
|
22 #include "SVGAnimationBase.h" |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 class CSvgDocumentImpl; |
|
28 |
|
29 |
|
30 /** |
|
31 * Class description goes here. |
|
32 * |
|
33 * @lib SVGEngine.lib |
|
34 * @since 1.0 |
|
35 */ |
|
36 class CSvgSetElementImpl : public CSvgAnimationBase |
|
37 { |
|
38 public: |
|
39 TBool DoAnimProcL(MSvgEvent* aEvent); |
|
40 // Constructor/deconstructor |
|
41 |
|
42 /** |
|
43 * Need method description |
|
44 * |
|
45 * @since 1.0 |
|
46 * @param |
|
47 * @return |
|
48 */ |
|
49 static CSvgSetElementImpl*NewL( const TUint8 aElemID, |
|
50 CSvgDocumentImpl* aDoc ); |
|
51 |
|
52 /** |
|
53 * Need method description |
|
54 * |
|
55 * @since 1.0 |
|
56 * @param |
|
57 * @return |
|
58 */ |
|
59 static CSvgSetElementImpl*NewLC( const TUint8 aElemID, |
|
60 CSvgDocumentImpl* aDoc ); |
|
61 |
|
62 void ReInitializeAnimation(); |
|
63 |
|
64 void Reset(MSvgEvent* aEvent); |
|
65 void DeactivateAnimation(); |
|
66 |
|
67 private: |
|
68 /** |
|
69 * Need method description |
|
70 * |
|
71 * @since 1.0 |
|
72 * @param |
|
73 * @return |
|
74 */ |
|
75 void ConstructL( const TUint8 aElemID ); |
|
76 |
|
77 |
|
78 public: |
|
79 |
|
80 |
|
81 /** |
|
82 * Need method description |
|
83 * |
|
84 * @since 1.0 |
|
85 * @param |
|
86 * @return |
|
87 */ |
|
88 virtual ~CSvgSetElementImpl(); |
|
89 |
|
90 private: |
|
91 |
|
92 /** |
|
93 * Need method description |
|
94 * |
|
95 * @since 1.0 |
|
96 * @param |
|
97 * @return |
|
98 */ |
|
99 CSvgSetElementImpl( CSvgDocumentImpl* aDoc ); |
|
100 |
|
101 public: |
|
102 |
|
103 /** |
|
104 * Need method description |
|
105 * |
|
106 * @since 1.0 |
|
107 * @param |
|
108 * @return |
|
109 */ |
|
110 TInt SetAttributeIntL( const TInt aNameId, const TInt32 aValue); |
|
111 /** |
|
112 * Need method description |
|
113 * |
|
114 * @since 1.0 |
|
115 * @param |
|
116 * @return |
|
117 */ |
|
118 TInt GetAttributeIntL( const TInt aNameId, TInt32& aValue ); |
|
119 /** |
|
120 * Need method description |
|
121 * |
|
122 * @since 1.0 |
|
123 * @param |
|
124 * @return |
|
125 */ |
|
126 TInt SetAttributeFloatL(const TInt aNameId, TFloatFixPt aValue ); |
|
127 /** |
|
128 * Need method description |
|
129 * |
|
130 * @since 1.0 |
|
131 * @param |
|
132 * @return |
|
133 */ |
|
134 TInt GetAttributeFloat(const TInt aNameId, TFloatFixPt& aValue ); |
|
135 // From MXmlElement API |
|
136 |
|
137 // From MEventReceiver |
|
138 |
|
139 /** |
|
140 * Need method description |
|
141 * |
|
142 * @since 1.0 |
|
143 * @param |
|
144 * @return |
|
145 */ |
|
146 TBool ReceiveEventL( MSvgEvent* aEvent ); |
|
147 // From MEventReceiver |
|
148 |
|
149 /** |
|
150 * Need method description |
|
151 * |
|
152 * @since 1.0 |
|
153 * @param |
|
154 * @return |
|
155 */ |
|
156 void ResetReferenceElementL(); |
|
157 CGfxGeneralPath* GetPathAttribute(TInt aAttributeId); |
|
158 void SetPathAttribute(TInt aAttributeId, CGfxGeneralPath* aPathHandle); |
|
159 |
|
160 |
|
161 void InitAnimationL(); |
|
162 void SetToOriginalL(); |
|
163 |
|
164 void Print( TBool aIsEncodeOn ); |
|
165 |
|
166 private: |
|
167 |
|
168 |
|
169 |
|
170 // this tells that the style attribute is inherited one. |
|
171 // this will be used by the SetMediaTime to repoint it to the parent. |
|
172 |
|
173 TBool iIsInheritedAttribute; |
|
174 |
|
175 |
|
176 |
|
177 private: |
|
178 // From CSvgAnimationBase |
|
179 |
|
180 /** |
|
181 * Need method description |
|
182 * |
|
183 * @since 1.0 |
|
184 * @param |
|
185 * @return |
|
186 */ |
|
187 |
|
188 virtual TBool AnimProcL( MSvgTimerEvent* aEvent ); |
|
189 |
|
190 /** |
|
191 * Need method description |
|
192 * |
|
193 * @since 1.0 |
|
194 * @param |
|
195 * @return |
|
196 */ |
|
197 void ResetAnimationL(); |
|
198 }; |
|
199 |
|
200 |
|
201 #endif /* _INC_CSvgSetElementImpl_ */ |