|
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: smilliterals declaration |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef _SMILLITERALS_H |
|
21 #define _SMILLITERALS_H |
|
22 |
|
23 #include <e32def.h> |
|
24 |
|
25 //tags |
|
26 _LIT(KSmilTag,"smil"); |
|
27 _LIT(KHeadTag,"head"); |
|
28 _LIT(KBodyTag,"body"); |
|
29 _LIT(KLayoutTag,"layout"); |
|
30 _LIT(KRegionTag,"region"); |
|
31 _LIT(KRootLayoutTag,"root-layout"); |
|
32 _LIT(KSeqTag,"seq"); |
|
33 _LIT(KParTag,"par"); |
|
34 _LIT(KExclTag,"excl"); |
|
35 _LIT(KImageTag,"img"); |
|
36 _LIT(KAudioTag,"audio"); |
|
37 _LIT(KVideoTag,"video"); |
|
38 _LIT(KAnimationTag,"animation"); |
|
39 _LIT(KRefTag,"ref"); |
|
40 _LIT(KTextTag,"text"); |
|
41 _LIT(KTextStreamTag,"textstream"); |
|
42 _LIT(KSwitchTag,"switch"); |
|
43 _LIT(KATag,"a"); |
|
44 _LIT(KAreaTag,"area"); |
|
45 _LIT(KAnchorTag,"anchor"); |
|
46 _LIT(KTransitionTag,"transition"); |
|
47 _LIT(KPrefetchTag,"prefetch"); |
|
48 _LIT(KParamTag,"param"); |
|
49 |
|
50 //attributes |
|
51 _LIT(KXmlnsAttr,"xmlns"); |
|
52 _LIT(KXmlnsAttr2,"xmlns:"); |
|
53 _LIT(KIdAttr,"id"); |
|
54 _LIT(KRegionNameAttr,"regionName"); |
|
55 _LIT(KRegionAttr,"region"); |
|
56 _LIT(KAltAttr,"alt"); |
|
57 _LIT(KDurAttr,"dur"); |
|
58 _LIT(KRepeatCountAttr,"repeatCount"); |
|
59 _LIT(KRepeatDurAttr,"repeatDur"); |
|
60 _LIT(KRepeatAttr,"repeat"); |
|
61 _LIT(KBeginAttr,"begin"); |
|
62 _LIT(KEndAttr,"end"); |
|
63 _LIT(KMinAttr,"min"); |
|
64 _LIT(KMaxAttr,"max"); |
|
65 _LIT(KEndsyncAttr,"endsync"); |
|
66 _LIT(KFillAttr,"fill"); |
|
67 _LIT(KSrcAttr,"src"); |
|
68 _LIT(KTopAttr,"top"); |
|
69 _LIT(KBottomAttr,"bottom"); |
|
70 _LIT(KLeftAttr,"left"); |
|
71 _LIT(KRightAttr,"right"); |
|
72 _LIT(KWidthAttr,"width"); |
|
73 _LIT(KHeightAttr,"height"); |
|
74 _LIT(KZIndexAttr,"z-index"); |
|
75 _LIT(KFitAttr,"fit"); |
|
76 _LIT(KBackgroundColorAttr,"backgroundColor"); |
|
77 _LIT(KBackgroundColor2Attr,"background-color"); |
|
78 _LIT(KShowBackgroundAttr,"showBackground"); |
|
79 _LIT(KHrefAttr,"href"); |
|
80 _LIT(KAccesskeyAttr,"accesskey"); |
|
81 _LIT(KActuateAttr,"actuate"); |
|
82 _LIT(KTargetAttr,"target"); |
|
83 _LIT(KTypeAttr,"type"); |
|
84 _LIT(KTabindexAttr,"tabindex"); |
|
85 _LIT(KSubtypeAttr,"subtype"); |
|
86 _LIT(KTransInAttr,"transIn"); |
|
87 _LIT(KTransOutAttr,"transOut"); |
|
88 _LIT(KFadeColorAttr,"fadeColor"); |
|
89 _LIT(KStartProgressAttr,"startProgress"); |
|
90 _LIT(KEndProgressAttr,"endProgress"); |
|
91 _LIT(KDirectionAttr,"direction"); |
|
92 _LIT(KRestartAttr,"restart"); |
|
93 _LIT(KSkipContentAttr,"skip-content"); |
|
94 _LIT(KShapeAttr,"shape"); |
|
95 _LIT(KCoordsAttr,"coords"); |
|
96 _LIT(KClipBeginAttr,"clipBegin"); |
|
97 _LIT(KClipBegin2Attr,"clip-begin"); |
|
98 _LIT(KClipEndAttr,"clipEnd"); |
|
99 _LIT(KClipEnd2Attr,"clip-end"); |
|
100 _LIT(KNameAttr,"name"); |
|
101 _LIT(KValueAttr,"value"); |
|
102 //_LIT(KShowAttr, "show"); |
|
103 //_LIT(KSourcePlaystateAttr, "sourceplaystate"); |
|
104 |
|
105 //system test attributes |
|
106 _LIT(KSystemAttr,"system"); |
|
107 _LIT(KSystemRequiredAttr,"systemRequired"); |
|
108 _LIT(KSystemScreenSizeAttr,"systemScreenSize"); |
|
109 _LIT(KSystemScreenDepthAttr,"systemScreenDepth"); |
|
110 _LIT(KSystemCPUAttr, "systemCPU"); |
|
111 _LIT(KSystemOperatingSystemAttr, "systemOperatingSystem"); |
|
112 _LIT(KSystemComponentAttr, "systemComponent"); |
|
113 //_LIT(KSystemContentTypeAttr, "systemContentType"); |
|
114 |
|
115 |
|
116 //supported systemRequired URLs |
|
117 static const TText* const KSystemReqValue [] = { |
|
118 //modules |
|
119 _S("http://www.w3.org/2001/SMIL20/AccessKeyTiming"), |
|
120 _S("http://www.w3.org/2001/SMIL20/BasicContentControl"), |
|
121 _S("http://www.w3.org/2001/SMIL20/BasicInlineTiming"), |
|
122 _S("http://www.w3.org/2001/SMIL20/BasicLayout"), |
|
123 _S("http://www.w3.org/2001/SMIL20/BasicLinking"), |
|
124 _S("http://www.w3.org/2001/SMIL20/BasicMedia"), |
|
125 _S("http://www.w3.org/2001/SMIL20/BasicTimeContainers"), |
|
126 _S("http://www.w3.org/2001/SMIL20/BasicTransitions"), |
|
127 _S("http://www.w3.org/2001/SMIL20/EventTiming"), |
|
128 _S("http://www.w3.org/2001/SMIL20/ExclTimeContainers"), |
|
129 _S("http://www.w3.org/2001/SMIL20/LinkingAttributes"), |
|
130 _S("http://www.w3.org/2001/SMIL20/MediaAccessibility"), |
|
131 _S("http://www.w3.org/2001/SMIL20/MediaClipping"), |
|
132 _S("http://www.w3.org/2001/SMIL20/MediaDescription"), |
|
133 _S("http://www.w3.org/2001/SMIL20/MediaParam"), |
|
134 _S("http://www.w3.org/2001/SMIL20/Metainformation"), |
|
135 _S("http://www.w3.org/2001/SMIL20/MinMaxTiming"), |
|
136 _S("http://www.w3.org/2001/SMIL20/MultiArcTiming"), |
|
137 _S("http://www.w3.org/2001/SMIL20/PrefetchControl"), |
|
138 _S("http://www.w3.org/2001/SMIL20/RepeatTiming"), |
|
139 _S("http://www.w3.org/2001/SMIL20/RestartTiming"), |
|
140 _S("http://www.w3.org/2001/SMIL20/SkipContentControl"), |
|
141 _S("http://www.w3.org/2001/SMIL20/Structure"), |
|
142 //other |
|
143 _S("http://www.w3.org/2001/SMIL20/NestedTimeContainers"), |
|
144 _S("http://www.w3.org/2001/SMIL20/DeprecatedFeatures"), |
|
145 |
|
146 _S("http://www.w3.org/2001/SMIL20/HostLanguage"), |
|
147 _S("http://www.w3.org/2001/SMIL20/IntegrationSet"), |
|
148 |
|
149 //3gpp |
|
150 _S("http://www.3gpp.org/SMIL20/PSS4/"), |
|
151 _S("http://www.3gpp.org/SMIL20/PSS5/"), |
|
152 _S("http://www.3gpp.org/SMIL20/PSS6/"), |
|
153 _S("http://www.3gpp.org/SMIL20/PSS4"), |
|
154 _S("http://www.3gpp.org/SMIL20/PSS5"), |
|
155 _S("http://www.3gpp.org/SMIL20/PSS6"), |
|
156 0 |
|
157 }; |
|
158 |
|
159 |
|
160 //attribute values |
|
161 _LIT(KIndefiniteVal,"indefinite"); |
|
162 _LIT(KMediaVal,"media"); |
|
163 _LIT(KHiddenVal,"hidden"); |
|
164 _LIT(KFillVal,"fill"); |
|
165 _LIT(KSliceVal,"slice"); |
|
166 _LIT(KMeetVal,"meet"); |
|
167 _LIT(KScrollVal,"scroll"); |
|
168 _LIT(KNoneVal,"none"); |
|
169 _LIT(KTransparentVal,"transparent"); |
|
170 _LIT(KWhenActiveVal,"whenActive"); |
|
171 _LIT(KAlwaysVal,"always"); |
|
172 _LIT(KTransitionVal,"transition"); |
|
173 _LIT(KFreezeVal,"freeze"); |
|
174 _LIT(KHoldVal,"hold"); |
|
175 _LIT(KRemoveVal,"remove"); |
|
176 _LIT(KForwardVal,"forward"); |
|
177 _LIT(KReverseVal,"reverse"); |
|
178 _LIT(KFirstVal,"first"); |
|
179 _LIT(KLastVal,"last"); |
|
180 _LIT(KAllVal,"all"); |
|
181 _LIT(KWhenNotActiveVal,"whenNotActive"); |
|
182 _LIT(KNeverVal,"never"); |
|
183 _LIT(KTrueVal,"true"); |
|
184 _LIT(KFalseVal,"false"); |
|
185 _LIT(KCircleVal,"circle"); |
|
186 _LIT(KRectVal,"rect"); |
|
187 _LIT(KPolyVal,"poly"); |
|
188 _LIT(KOnLoadVal,"onLoad"); |
|
189 _LIT(KOnRequestVal,"onRequest"); |
|
190 |
|
191 _LIT(KContentTypeVal,"ContentType:"); |
|
192 |
|
193 _LIT(KSmil2NS,"http://www.w3.org/2001/SMIL20/Language"); |
|
194 |
|
195 |
|
196 // colors |
|
197 static const TText* const KColorNames [] = { |
|
198 _S("black"), |
|
199 _S("silver"), |
|
200 _S("gray"), |
|
201 _S("white"), |
|
202 _S("maroon"), |
|
203 _S("red"), |
|
204 _S("purple"), |
|
205 _S("fuchsia"), |
|
206 _S("green"), |
|
207 _S("lime"), |
|
208 _S("olive"), |
|
209 _S("yellow"), |
|
210 _S("navy"), |
|
211 _S("blue"), |
|
212 _S("teal"), |
|
213 _S("aqua"), |
|
214 0 |
|
215 }; |
|
216 |
|
217 //NOTE: TRgb constructor uses order 0x00bbggrr |
|
218 static const TUint KColorValues [] = { |
|
219 0x000000, |
|
220 0xc0c0c0, |
|
221 0x808080, |
|
222 0xffffff, |
|
223 0x000080, |
|
224 0x0000ff, |
|
225 0x800080, |
|
226 0xff00ff, |
|
227 0x008000, |
|
228 0x00ff00, |
|
229 0x008080, |
|
230 0x00ffff, |
|
231 0x800000, |
|
232 0xff0000, |
|
233 0x808000, |
|
234 0xffff00, |
|
235 0 |
|
236 }; |
|
237 |
|
238 #if defined (__WINS__) |
|
239 _LIT(KCPUVal, "x86"); |
|
240 #else |
|
241 _LIT(KCPUVal, "arm"); |
|
242 #endif |
|
243 |
|
244 _LIT(KOSVal, "symbian"); |
|
245 |
|
246 |
|
247 #endif |