46
|
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_CPAINTCSSVALUEIMPL__
|
|
20 |
#define __INC_CPAINTCSSVALUEIMPL__
|
|
21 |
|
|
22 |
|
|
23 |
#include "SVGCssValue.h"
|
|
24 |
#include "SVGElementImpl.h"
|
|
25 |
|
|
26 |
#include "SVGMemoryManager.h"
|
|
27 |
|
|
28 |
class MGfxPaint;
|
|
29 |
|
|
30 |
|
|
31 |
/**
|
|
32 |
* Class description goes here.
|
|
33 |
*
|
|
34 |
* @lib SVGEngine.lib
|
|
35 |
* @since 1.0
|
|
36 |
*/
|
|
37 |
|
|
38 |
class CPaintCssValueImpl : public CCssValue
|
|
39 |
|
|
40 |
{
|
|
41 |
public:
|
|
42 |
|
|
43 |
/**
|
|
44 |
* Need method description
|
|
45 |
*
|
|
46 |
* @since 1.0
|
|
47 |
* @param
|
|
48 |
* @return
|
|
49 |
*/
|
|
50 |
~CPaintCssValueImpl();
|
|
51 |
|
|
52 |
|
|
53 |
CPaintCssValueImpl( );
|
|
54 |
|
|
55 |
|
|
56 |
|
|
57 |
|
|
58 |
|
|
59 |
/**
|
|
60 |
* Need method description
|
|
61 |
*
|
|
62 |
* @since 1.0
|
|
63 |
* @param
|
|
64 |
* @return
|
|
65 |
*/
|
|
66 |
TInt SetValueL( const TDesC& aValue );
|
|
67 |
|
|
68 |
/**
|
|
69 |
* Need method description
|
|
70 |
*
|
|
71 |
* @since 1.0
|
|
72 |
* @param
|
|
73 |
* @return
|
|
74 |
*/
|
|
75 |
TInt SetValueL( const TInt& aValue );
|
|
76 |
|
|
77 |
/**
|
|
78 |
* Need method description
|
|
79 |
*
|
|
80 |
* @since 1.0
|
|
81 |
* @param
|
|
82 |
* @return
|
|
83 |
*/
|
|
84 |
MGfxPaint* Value();
|
|
85 |
|
|
86 |
void GetColorFromSolidColorElement(CSvgElementImpl* aReferencedElement);
|
|
87 |
|
|
88 |
//void SetL( CPaintCssValueImpl* aValue );
|
|
89 |
/**
|
|
90 |
* Need method description
|
|
91 |
*
|
|
92 |
* @since 1.0
|
|
93 |
* @param
|
|
94 |
* @return
|
|
95 |
*/
|
|
96 |
|
|
97 |
TInt CloneRGBValueL(const TInt& aValue);
|
|
98 |
|
|
99 |
|
|
100 |
void SetUrlflag();
|
|
101 |
TBool GetUrlflag();
|
|
102 |
|
|
103 |
void SetUrlIdL(const TDesC& aValue);
|
|
104 |
HBufC* GetUrlId();
|
|
105 |
|
|
106 |
|
|
107 |
TBool IsEqual(CCssValue* aValue);
|
|
108 |
TBool IsDefaultSet();
|
|
109 |
|
|
110 |
void SetElement(CSvgElementImpl* aElement);
|
|
111 |
CSvgElementImpl* GetElement();
|
|
112 |
|
|
113 |
void Print();
|
|
114 |
|
|
115 |
//this data should all be private
|
|
116 |
HBufC* iUrlId;
|
|
117 |
MGfxPaint* iValue;
|
|
118 |
|
|
119 |
//For Gradient Support
|
|
120 |
TBool iUrlFlag;
|
|
121 |
TInt32 iValueType; //0 for TGfxColor
|
|
122 |
//1 for TLinearGradientPaint
|
|
123 |
//2 for TRadialGradientPaint
|
|
124 |
|
|
125 |
|
|
126 |
CSvgElementImpl* iSvgElementImpl;
|
|
127 |
TBool iDefaultSet;
|
|
128 |
|
|
129 |
private: // Data
|
|
130 |
// Indicates whether the iValue field is owned by CSvgPaintCssValueImpl
|
|
131 |
TBool iIsValueOwned;
|
|
132 |
|
|
133 |
|
|
134 |
/**
|
|
135 |
* Need method description
|
|
136 |
*
|
|
137 |
* @since 1.0
|
|
138 |
* @param
|
|
139 |
* @return
|
|
140 |
*/
|
|
141 |
//void ConstructL( const TDesC& aValue, CSvgElementImpl* aSvgElementImpl );
|
|
142 |
|
|
143 |
|
|
144 |
//void ConstructL( CSvgElementImpl* aSvgElementImpl );
|
|
145 |
|
|
146 |
};
|
|
147 |
|
|
148 |
#endif /* __INC_CPAINTCSSVALUEIMPL__ */ |