|
1 /* |
|
2 * Copyright (c) 2005 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 CSVGSCRIPTELEMENTIMPL_H |
|
20 #define CSVGSCRIPTELEMENTIMPL_H |
|
21 |
|
22 #if !defined(__E32BASE_H__) |
|
23 #include <e32base.h> |
|
24 #endif |
|
25 |
|
26 #include "SVGElementImpl.h" |
|
27 #include "SVGDocumentImpl.h" |
|
28 |
|
29 |
|
30 /** |
|
31 * Class description goes here. |
|
32 * |
|
33 * @lib SVGEngine.lib |
|
34 * @since 1.0 |
|
35 */ |
|
36 class CSvgScriptElementImpl : public CSvgElementImpl |
|
37 { |
|
38 public: // Constructor/deconstructor |
|
39 |
|
40 |
|
41 /** |
|
42 * Need method description |
|
43 * |
|
44 * @since 1.0 |
|
45 * @param |
|
46 * @return |
|
47 */ |
|
48 static CSvgScriptElementImpl* NewL( TUint8 aElementId, CSvgDocumentImpl* aDocument ); |
|
49 |
|
50 public: |
|
51 |
|
52 /** |
|
53 * Need method description |
|
54 * |
|
55 * @since 1.0 |
|
56 * @param |
|
57 * @return |
|
58 */ |
|
59 virtual ~CSvgScriptElementImpl(); |
|
60 |
|
61 /** |
|
62 * Need method description |
|
63 * |
|
64 * @since 1.0 |
|
65 * @param |
|
66 * @return |
|
67 */ |
|
68 TInt SetAttributeL( const TDesC& aName, const TDesC& aValue ); |
|
69 |
|
70 /** |
|
71 * Need method description |
|
72 * |
|
73 * @since 1.0 |
|
74 * @param |
|
75 * @return |
|
76 */ |
|
77 void SetScriptL( const TDesC& aScriptString ); |
|
78 |
|
79 /** |
|
80 * Need method description |
|
81 * |
|
82 * @since 1.0 |
|
83 * @param |
|
84 * @return |
|
85 */ |
|
86 const HBufC8* GetScript(); |
|
87 |
|
88 void Print( TBool aIsEncodeOn ); |
|
89 |
|
90 private: |
|
91 |
|
92 /** |
|
93 * Constructor |
|
94 * |
|
95 * @since 1.0 |
|
96 * @param |
|
97 * @return |
|
98 */ |
|
99 CSvgScriptElementImpl( CSvgDocumentImpl* aDocument ); |
|
100 |
|
101 /** |
|
102 * Constructor |
|
103 * |
|
104 * @since 1.0 |
|
105 * @param |
|
106 * @return |
|
107 */ |
|
108 void ConstructL( TUint8 aElementId ); |
|
109 |
|
110 void FetchExternalScriptL(); |
|
111 |
|
112 private: |
|
113 CSvgDocumentImpl* iDocument; |
|
114 HBufC8* iScript; |
|
115 HBufC* iXLink; |
|
116 |
|
117 |
|
118 }; |
|
119 |
|
120 #endif |