|
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_CSVGDESCELEMENTIMPL_ |
|
20 #define _INC_CSVGDESCELEMENTIMPL_ |
|
21 |
|
22 #include "SVGElementImpl.h" |
|
23 #include "GfxFloatFixPt.h" |
|
24 |
|
25 class CSvgDocumentImpl; |
|
26 |
|
27 |
|
28 /** |
|
29 * Class description goes here. |
|
30 * |
|
31 * @lib SVGEngine.lib |
|
32 * @since 1.0 |
|
33 */ |
|
34 class CSvgDescElementImpl : public CSvgElementImpl |
|
35 { |
|
36 public: |
|
37 |
|
38 // Constructor/deconstructor |
|
39 |
|
40 |
|
41 /** |
|
42 * Need method description |
|
43 * |
|
44 * @since 1.0 |
|
45 * @param |
|
46 * @return |
|
47 */ |
|
48 static CSvgDescElementImpl* NewL( const TUint8 aElemID, |
|
49 CSvgDocumentImpl* aDoc ); |
|
50 |
|
51 |
|
52 /** |
|
53 * Need method description |
|
54 * |
|
55 * @since 1.0 |
|
56 * @param |
|
57 * @return |
|
58 */ |
|
59 static CSvgDescElementImpl* NewLC( const TUint8 aElemID, |
|
60 CSvgDocumentImpl* aDoc ); |
|
61 |
|
62 |
|
63 /** |
|
64 * Need method description |
|
65 * |
|
66 * @since 1.0 |
|
67 * @param |
|
68 * @return |
|
69 */ |
|
70 virtual ~CSvgDescElementImpl(); |
|
71 |
|
72 // From MXmlElement API |
|
73 |
|
74 |
|
75 /** |
|
76 * Need method description |
|
77 * |
|
78 * @since 1.0 |
|
79 * @param |
|
80 * @return |
|
81 */ |
|
82 TInt SetAttributeL( const TDesC& aName, |
|
83 const TDesC& aValue ); |
|
84 |
|
85 TInt SetAttributeDesL( const TInt aNameId, |
|
86 const TDesC& aValue ); |
|
87 |
|
88 TInt GetAttributeDes( const TInt aNameId, TPtrC16& aValue ); |
|
89 |
|
90 // From CSvgElementImpl |
|
91 |
|
92 |
|
93 /** |
|
94 * Need method description |
|
95 * |
|
96 * @since 1.0 |
|
97 * @param |
|
98 * @return |
|
99 */ |
|
100 MXmlElement* CloneL(MXmlElement* aParentElement); |
|
101 |
|
102 void CopyL( CSvgDescElementImpl* aDestElement ); |
|
103 |
|
104 /** |
|
105 * Need method description |
|
106 * |
|
107 * @since 1.0 |
|
108 * @param |
|
109 * @return |
|
110 */ |
|
111 TBool DrawL( CGfx2dGc* aGc, |
|
112 CSvgElementImpl* aElement ); |
|
113 |
|
114 void SetTextL( const TDesC& aText ); |
|
115 |
|
116 void Print( TBool aIsEncodeOn ); |
|
117 |
|
118 private: |
|
119 |
|
120 /** |
|
121 * Need method description |
|
122 * |
|
123 * @since 1.0 |
|
124 * @param |
|
125 * @return |
|
126 */ |
|
127 void ConstructL( const TUint8 aElemID ); |
|
128 |
|
129 |
|
130 /** |
|
131 * Need method description |
|
132 * |
|
133 * @since 1.0 |
|
134 * @param |
|
135 * @return |
|
136 */ |
|
137 CSvgDescElementImpl( CSvgDocumentImpl* aDoc ); |
|
138 |
|
139 |
|
140 |
|
141 HBufC* iText; |
|
142 }; |
|
143 |
|
144 #endif |