|
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_CSVGSTYLEELEMENTIMPL_ |
|
20 #define _INC_CSVGSTYLEELEMENTIMPL_ |
|
21 |
|
22 #include "SVGElementImpl.h" |
|
23 #include "GfxFloatFixPt.h" |
|
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 CSvgStyleElementImpl : public CSvgElementImpl |
|
37 { |
|
38 public: |
|
39 |
|
40 // Constructor/deconstructor |
|
41 |
|
42 /** |
|
43 * Need method description |
|
44 * |
|
45 * @since 1.0 |
|
46 * @param |
|
47 * @return |
|
48 */ |
|
49 static CSvgStyleElementImpl*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 CSvgStyleElementImpl*NewLC( const TUint8 aElemID, |
|
60 CSvgDocumentImpl* aDoc ); |
|
61 |
|
62 private: |
|
63 /** |
|
64 * Need method description |
|
65 * |
|
66 * @since 1.0 |
|
67 * @param |
|
68 * @return |
|
69 */ |
|
70 void ConstructL( const TUint8 aElemID ); |
|
71 |
|
72 |
|
73 |
|
74 public: |
|
75 |
|
76 |
|
77 /** |
|
78 * Need method description |
|
79 * |
|
80 * @since 1.0 |
|
81 * @param |
|
82 * @return |
|
83 */ |
|
84 virtual ~CSvgStyleElementImpl(); |
|
85 |
|
86 // SVG Implementation: |
|
87 |
|
88 /** |
|
89 * Need method description |
|
90 * |
|
91 * @since 1.0 |
|
92 * @param |
|
93 * @return |
|
94 */ |
|
95 void SetTypeL( const TDesC& aValue ); |
|
96 |
|
97 |
|
98 /** |
|
99 * Need method description |
|
100 * |
|
101 * @since 1.0 |
|
102 * @param |
|
103 * @return |
|
104 */ |
|
105 void SetMediaL( const TDesC& aValue ); |
|
106 |
|
107 |
|
108 /** |
|
109 * Need method description |
|
110 * |
|
111 * @since 1.0 |
|
112 * @param |
|
113 * @return |
|
114 */ |
|
115 void SetTitleL( const TDesC& aValue ); |
|
116 |
|
117 |
|
118 /** |
|
119 * Need method description |
|
120 * |
|
121 * @since 1.0 |
|
122 * @param |
|
123 * @return |
|
124 */ |
|
125 void SetStyleL( const TDesC& aValue ); |
|
126 |
|
127 // From MXmlElement API |
|
128 |
|
129 |
|
130 /** |
|
131 * Need method description |
|
132 * |
|
133 * @since 1.0 |
|
134 * @param |
|
135 * @return |
|
136 */ |
|
137 TInt SetAttributeL( const TDesC& aName, |
|
138 const TDesC& aValue ); |
|
139 // From CSvgElementImpl |
|
140 |
|
141 |
|
142 /** |
|
143 * Need method description |
|
144 * |
|
145 * @since 1.0 |
|
146 * @param |
|
147 * @return |
|
148 */ |
|
149 MXmlElement* CloneL(MXmlElement* aParentElement); |
|
150 |
|
151 |
|
152 /** |
|
153 * Need method description |
|
154 * |
|
155 * @since 1.0 |
|
156 * @param |
|
157 * @return |
|
158 */ |
|
159 TBool DrawL( CGfx2dGc* aGc, |
|
160 CSvgElementImpl* aElement ); |
|
161 |
|
162 // From MXmlElementOpt API |
|
163 |
|
164 TInt SetAttributeDesL( const TInt aNameId, |
|
165 const TDesC& aValue ); |
|
166 |
|
167 |
|
168 /** |
|
169 * Need method description |
|
170 * |
|
171 * @since 1.0 |
|
172 * @param |
|
173 * @return |
|
174 */ |
|
175 TInt GetAttributeFloat( const TInt aNameId, |
|
176 TFloatFixPt& aValue ); |
|
177 |
|
178 void Print( TBool aIsEncodeOn ); |
|
179 |
|
180 private: |
|
181 |
|
182 HBufC* iType; |
|
183 |
|
184 HBufC* iMedia; |
|
185 |
|
186 HBufC* iTitle; |
|
187 |
|
188 HBufC* iStyle; |
|
189 |
|
190 |
|
191 |
|
192 |
|
193 /** |
|
194 * Need method description |
|
195 * |
|
196 * @since 1.0 |
|
197 * @param |
|
198 * @return |
|
199 */ |
|
200 CSvgStyleElementImpl( CSvgDocumentImpl* aDoc ); |
|
201 }; |
|
202 |
|
203 #endif |