|
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_CSVGHKERNELEMENTIMPL_ |
|
20 #define _INC_CSVGHKERNELEMENTIMPL_ |
|
21 |
|
22 #include "SVGElementImpl.h" |
|
23 #include "GfxFloatFixPt.h" |
|
24 |
|
25 |
|
26 |
|
27 #ifdef SVG_FONTS_INCLUDE |
|
28 |
|
29 class CSvgDocumentImpl; |
|
30 |
|
31 |
|
32 /** |
|
33 * Class description goes here. |
|
34 * |
|
35 * @lib SVGEngine.lib |
|
36 * @since 1.0 |
|
37 */ |
|
38 class CSvgHkernElementImpl : public CSvgElementImpl |
|
39 { |
|
40 public: |
|
41 |
|
42 // Constructor/deconstructor |
|
43 |
|
44 /** |
|
45 * Need method description |
|
46 * |
|
47 * @since 1.0 |
|
48 * @param |
|
49 * @return |
|
50 */ |
|
51 static CSvgHkernElementImpl*NewL( const TUint8 aElemID, |
|
52 CSvgDocumentImpl* aDoc ); |
|
53 |
|
54 /** |
|
55 * Need method description |
|
56 * |
|
57 * @since 1.0 |
|
58 * @param |
|
59 * @return |
|
60 */ |
|
61 static CSvgHkernElementImpl*NewLC( const TUint8 aElemID, |
|
62 CSvgDocumentImpl* aDoc ); |
|
63 |
|
64 private: |
|
65 /** |
|
66 * Need method description |
|
67 * |
|
68 * @since 1.0 |
|
69 * @param |
|
70 * @return |
|
71 */ |
|
72 void ConstructL( const TUint8 aElemID ); |
|
73 |
|
74 |
|
75 public: |
|
76 |
|
77 /** |
|
78 * Need method description |
|
79 * |
|
80 * @since 1.0 |
|
81 * @param |
|
82 * @return |
|
83 */ |
|
84 virtual ~CSvgHkernElementImpl(); |
|
85 |
|
86 // SVG Implementation: |
|
87 |
|
88 |
|
89 /** |
|
90 * Need method description |
|
91 * |
|
92 * @since 1.0 |
|
93 * @param |
|
94 * @return |
|
95 */ |
|
96 TFloatFixPt GetK(); |
|
97 |
|
98 /** |
|
99 * Need method description |
|
100 * |
|
101 * @since 1.0 |
|
102 * @param |
|
103 * @return |
|
104 */ |
|
105 TInt SetAttributeDesL( const TInt aNameId, const TDesC& aValue ); |
|
106 |
|
107 TInt SetAttributeFloatL( const TInt aNameId, |
|
108 const TFloatFixPt aValue ); |
|
109 |
|
110 |
|
111 // From MXmlElement API |
|
112 |
|
113 |
|
114 /** |
|
115 * Need method description |
|
116 * |
|
117 * @since 1.0 |
|
118 * @param |
|
119 * @return |
|
120 */ |
|
121 TInt SetAttributeL( const TDesC& aName, |
|
122 const TDesC& aValue ); |
|
123 |
|
124 |
|
125 /** |
|
126 * Need method description |
|
127 * |
|
128 * @since 1.0 |
|
129 * @param |
|
130 * @return |
|
131 */ |
|
132 MXmlElement* CloneL(MXmlElement* aParentElement); |
|
133 |
|
134 |
|
135 /** |
|
136 * Need method description |
|
137 * |
|
138 * @since 1.0 |
|
139 * @param |
|
140 * @return |
|
141 */ |
|
142 TBool DrawL( CGfx2dGc* aGc, |
|
143 CSvgElementImpl* aElement ); |
|
144 // From MXmlElementOpt API |
|
145 |
|
146 |
|
147 /** |
|
148 * Need method description |
|
149 * |
|
150 * @since 1.0 |
|
151 * @param |
|
152 * @return |
|
153 */ |
|
154 TInt GetAttributeFloat( const TInt aNameId, |
|
155 TFloatFixPt& aValue ); |
|
156 |
|
157 |
|
158 /** |
|
159 * Need method description |
|
160 * |
|
161 * @since 1.0 |
|
162 * @param |
|
163 * @return |
|
164 */ |
|
165 TInt GetAttributeDes( const TInt aNameId, |
|
166 TPtrC16& aValue ); |
|
167 |
|
168 void Print( TBool aIsEncodeOn ); |
|
169 |
|
170 |
|
171 private: |
|
172 |
|
173 TFloatFixPt iK; |
|
174 |
|
175 HBufC* iG1; |
|
176 |
|
177 HBufC* iG2; |
|
178 |
|
179 HBufC* iU1; |
|
180 |
|
181 HBufC* iU2; |
|
182 |
|
183 |
|
184 |
|
185 |
|
186 /** |
|
187 * Need method description |
|
188 * |
|
189 * @since 1.0 |
|
190 * @param |
|
191 * @return |
|
192 */ |
|
193 CSvgHkernElementImpl( CSvgDocumentImpl* aDoc ); |
|
194 }; |
|
195 |
|
196 #endif /* SVG_FONTS_INCLUDE */ |
|
197 |
|
198 #endif |