83
|
1 |
/*
|
|
2 |
* Copyright (c) 2002-2004 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: Literal definitions
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
#ifndef XN_LITERAL_H
|
|
21 |
#define XN_LITERAL_H
|
|
22 |
|
|
23 |
#include "xndomnode.h"
|
|
24 |
#include <stringtablesupport.h>
|
|
25 |
// MODULE LITERAL DEFINITIONS
|
|
26 |
//Core
|
|
27 |
_STLIT8(KProperty, "property");
|
|
28 |
|
|
29 |
//Ui
|
|
30 |
_STLIT8(KXmluiml, "xmluiml");
|
|
31 |
_STLIT8(KHeader, "header");
|
|
32 |
_STLIT8(KInclude, "include");
|
|
33 |
_STLIT8(KViews, "views");
|
|
34 |
_STLIT8(KView, "view");
|
|
35 |
_STLIT8(KPanes, "panes");
|
|
36 |
_STLIT8(KStatusPane, "statuspane");
|
|
37 |
_STLIT8(KMainPane, "mainpane");
|
|
38 |
_STLIT8(KControlPane, "controlpane");
|
|
39 |
_STLIT8(KDialogs, "dialogs");
|
|
40 |
_STLIT8(KDialog, "dialog");
|
|
41 |
_STLIT8(KNote, "note");
|
|
42 |
|
|
43 |
//Header
|
|
44 |
_STLIT8(KUiDefinition,"uidefinition");
|
|
45 |
_STLIT8(KApplication, "application");
|
|
46 |
_STLIT8(KDesc, "desc");
|
|
47 |
|
|
48 |
//Control
|
|
49 |
_STLIT8(KButton, "button");
|
|
50 |
_STLIT8(KMenuBar, "menubar");
|
|
51 |
_STLIT8(KMenu, "menu");
|
|
52 |
_STLIT8(KMenuItem, "menuitem");
|
|
53 |
_STLIT8(KText, "text");
|
|
54 |
_STLIT8(KImage, "image");
|
|
55 |
_STLIT8(KEditor, "editor");
|
|
56 |
_STLIT8(KMarquee, "marquee");
|
|
57 |
_STLIT8(KNewsticker, "newsticker");
|
|
58 |
_STLIT8(KAnimation, "animation");
|
|
59 |
_STLIT8(KTooltip, "tooltip");
|
|
60 |
//XHTML
|
|
61 |
_STLIT8(KObject, "object");
|
|
62 |
_STLIT8(KParam, "param");
|
|
63 |
|
|
64 |
//Box
|
|
65 |
_STLIT8(KBox, "box");
|
|
66 |
|
|
67 |
//Interaction
|
|
68 |
_STLIT8(KAction, "action");
|
|
69 |
_STLIT8(KTrigger, "trigger");
|
|
70 |
_STLIT8(KEvent, "event");
|
|
71 |
|
|
72 |
|
|
73 |
//PROPERTY LITERAL DEFINITIONS
|
|
74 |
|
|
75 |
//Common properties
|
|
76 |
_STLIT8(KDisplay, "display");
|
|
77 |
_STLIT8(KDisplayPriority, "_s60-display-priority");
|
|
78 |
_STLIT8(KVisibility, "visibility");
|
|
79 |
_STLIT8(KInitialFocus, "_s60-initial-focus");
|
|
80 |
|
|
81 |
|
|
82 |
_STLIT8(KBlockProgression, "block-progression");
|
|
83 |
_STLIT8(KDirection, "direction");
|
|
84 |
|
|
85 |
_STLIT8(KWidth, "width");
|
|
86 |
_STLIT8(KHeight, "height");
|
|
87 |
|
|
88 |
_STLIT8(KMarginTop, "margin-top");
|
|
89 |
_STLIT8(KMarginRight, "margin-right");
|
|
90 |
_STLIT8(KMarginBottom, "margin-bottom");
|
|
91 |
_STLIT8(KMarginLeft, "margin-left");
|
|
92 |
_STLIT8(KBorderWidth, "border-width");
|
|
93 |
_STLIT8(KBorderTopWidth, "border-top-width");
|
|
94 |
_STLIT8(KBorderRightWidth, "border-right-width");
|
|
95 |
_STLIT8(KBorderBottomWidth,"border-bottom-width");
|
|
96 |
_STLIT8(KBorderLeftWidth, "border-left-width");
|
|
97 |
|
|
98 |
_STLIT8(KPaddingTop, "padding-top");
|
|
99 |
_STLIT8(KPaddingRight, "padding-right");
|
|
100 |
_STLIT8(KPaddingBottom, "padding-bottom");
|
|
101 |
_STLIT8(KPaddingLeft, "padding-left");
|
|
102 |
|
|
103 |
_STLIT8(KPosition, "position");
|
|
104 |
_STLIT8(KTop, "top");
|
|
105 |
_STLIT8(KRight, "right");
|
|
106 |
_STLIT8(KBottom, "bottom");
|
|
107 |
_STLIT8(KLeft, "left");
|
|
108 |
_STLIT8(KMinWidth, "min-width");
|
|
109 |
_STLIT8(KMaxWidth, "max-width");
|
|
110 |
_STLIT8(KMinHeight, "min-height");
|
|
111 |
_STLIT8(KMaxHeight, "max-height");
|
|
112 |
|
|
113 |
_STLIT8(KColor, "color");
|
|
114 |
_STLIT8(KBGColor, "background-color");
|
|
115 |
_STLIT8(KBGImg, "background-image");
|
|
116 |
_STLIT8(KBGSize, "background-size");
|
|
117 |
_STLIT8(KBGRepeat, "background-repeat");
|
|
118 |
_STLIT8(KBGPos, "background-position");
|
|
119 |
|
|
120 |
_STLIT8(KBorderTopStyle, "border-top-style");
|
|
121 |
_STLIT8(KBorderRightStyle, "border-right-style");
|
|
122 |
_STLIT8(KBorderBottomStyle,"border-bottom-style");
|
|
123 |
_STLIT8(KBorderLeftStyle, "border-left-style");
|
|
124 |
_STLIT8(KBorderColor, "border-color");
|
|
125 |
_STLIT8(KBorderImg, "border-image");
|
|
126 |
|
|
127 |
|
|
128 |
//Element with text properties
|
|
129 |
_STLIT8(KTextOverflowMode, "text-overflow-mode");
|
|
130 |
|
|
131 |
_STLIT8(KFontFamily, "font-family");
|
|
132 |
_STLIT8(KFontSize, "font-size");
|
|
133 |
_STLIT8(KFontWeight, "font-weight");
|
|
134 |
_STLIT8(KFontStyle, "font-style");
|
|
135 |
_STLIT8(KTextDecoration, "text-decoration");
|
|
136 |
|
|
137 |
//For text,list,datalist, grid, datagrid elements
|
|
138 |
_STLIT8(KOverflow, "overflow");
|
|
139 |
|
|
140 |
//Views and view properties
|
|
141 |
_STLIT8(KViewDecoration, "_s60-view-decoration");
|
|
142 |
_STLIT8(KTabStyle, "_s60-tab-style");
|
|
143 |
_STLIT8(KTabColor, "_s60-tab-color");
|
|
144 |
_STLIT8(KTabImg, "_s60-tab-image");
|
|
145 |
_STLIT8(KViewTransitionEffect, "_s60-view-transition-effect");
|
|
146 |
|
|
147 |
//View
|
|
148 |
_STLIT8(KTabLabel, "_s60-tab-label");
|
|
149 |
|
|
150 |
//Function pointer
|
|
151 |
typedef void (*FuncPtr) (TAny*);
|
|
152 |
|
|
153 |
//Struct to hold type and function which operates it
|
|
154 |
typedef struct
|
|
155 |
{
|
|
156 |
const void* iName;
|
|
157 |
FuncPtr iFuncPtr;
|
|
158 |
TContentType iContentType;
|
|
159 |
}TXnElementVisitor;
|
|
160 |
|
|
161 |
//Struct to follow up if property has capability to inherit
|
|
162 |
typedef struct
|
|
163 |
{
|
|
164 |
const void* iName;
|
|
165 |
TBool iInherit;
|
|
166 |
}TXnPropertyProxy;
|
|
167 |
|
|
168 |
|
|
169 |
// Common properties intermediate table
|
|
170 |
const TXnPropertyProxy KXnCommonPropertyTable[] =
|
|
171 |
{
|
|
172 |
{(const void*)&KDisplay, EFalse},
|
|
173 |
{(const void*)&KDisplayPriority, EFalse},
|
|
174 |
{(const void*)&KVisibility, ETrue},
|
|
175 |
{(const void*)&KInitialFocus, EFalse},
|
|
176 |
|
|
177 |
{(const void*)&KBlockProgression, ETrue},
|
|
178 |
{(const void*)&KDirection, ETrue},
|
|
179 |
|
|
180 |
{(const void*)&KWidth, EFalse},
|
|
181 |
{(const void*)&KHeight, EFalse},
|
|
182 |
|
|
183 |
{(const void*)&KMarginTop, EFalse},
|
|
184 |
{(const void*)&KMarginRight, EFalse},
|
|
185 |
{(const void*)&KMarginBottom, EFalse},
|
|
186 |
{(const void*)&KMarginLeft, EFalse},
|
|
187 |
{(const void*)&KBorderWidth, EFalse},
|
|
188 |
{(const void*)&KBorderTopWidth, EFalse},
|
|
189 |
{(const void*)&KBorderRightWidth, EFalse},
|
|
190 |
{(const void*)&KBorderBottomWidth, EFalse},
|
|
191 |
{(const void*)&KBorderLeftWidth, EFalse},
|
|
192 |
|
|
193 |
{(const void*)&KPaddingTop, EFalse},
|
|
194 |
{(const void*)&KPaddingRight, EFalse},
|
|
195 |
{(const void*)&KPaddingBottom, EFalse},
|
|
196 |
{(const void*)&KPaddingLeft, EFalse},
|
|
197 |
|
|
198 |
{(const void*)&KPosition, EFalse},
|
|
199 |
{(const void*)&KTop, EFalse},
|
|
200 |
{(const void*)&KRight, EFalse},
|
|
201 |
{(const void*)&KBottom, EFalse},
|
|
202 |
{(const void*)&KLeft, EFalse},
|
|
203 |
|
|
204 |
{(const void*)&KMinWidth, EFalse},
|
|
205 |
{(const void*)&KMaxWidth, EFalse},
|
|
206 |
{(const void*)&KMinHeight, EFalse},
|
|
207 |
{(const void*)&KMaxHeight, EFalse},
|
|
208 |
|
|
209 |
//Appearance
|
|
210 |
{(const void*)&KColor, ETrue},
|
|
211 |
{(const void*)&KBGColor, EFalse},
|
|
212 |
{(const void*)&KBGImg, EFalse},
|
|
213 |
{(const void*)&KBGSize, EFalse},
|
|
214 |
{(const void*)&KBGRepeat, EFalse},
|
|
215 |
{(const void*)&KBGPos, EFalse},
|
|
216 |
|
|
217 |
{(const void*)&KBorderTopStyle, EFalse},
|
|
218 |
{(const void*)&KBorderRightStyle, EFalse},
|
|
219 |
{(const void*)&KBorderBottomStyle, EFalse},
|
|
220 |
{(const void*)&KBorderLeftStyle, EFalse},
|
|
221 |
{(const void*)&KBorderColor, EFalse},
|
|
222 |
{(const void*)&KBorderImg, EFalse}
|
|
223 |
|
|
224 |
};
|
|
225 |
|
|
226 |
|
|
227 |
const TXnPropertyProxy KXnElementWithTextPropertyTable[] =
|
|
228 |
{
|
|
229 |
{(const void*)&KTextOverflowMode, EFalse},
|
|
230 |
{(const void*)&KFontFamily, ETrue},
|
|
231 |
{(const void*)&KFontSize, ETrue},
|
|
232 |
{(const void*)&KFontWeight, ETrue},
|
|
233 |
{(const void*)&KFontStyle, ETrue},
|
|
234 |
{(const void*)&KTextDecoration, EFalse}
|
|
235 |
};
|
|
236 |
|
|
237 |
const TXnPropertyProxy KXnTextElementPropertyTable[] =
|
|
238 |
{
|
|
239 |
{(const void*)&KOverflow, EFalse}
|
|
240 |
};
|
|
241 |
|
|
242 |
const TXnPropertyProxy KXnViewsAndViewPropertyTable[] =
|
|
243 |
{
|
|
244 |
{(const void*)&KViewDecoration, EFalse},
|
|
245 |
{(const void*)&KTabStyle, ETrue},
|
|
246 |
{(const void*)&KTabColor, ETrue},
|
|
247 |
{(const void*)&KTabImg, EFalse},
|
|
248 |
{(const void*)&KViewTransitionEffect, EFalse}
|
|
249 |
};
|
|
250 |
|
|
251 |
const TXnPropertyProxy KXnViewPropertyTable[] =
|
|
252 |
{
|
|
253 |
|
|
254 |
{(const void*)&KTabLabel, EFalse}
|
|
255 |
|
|
256 |
};
|
|
257 |
// CLASS DECLARATION
|
|
258 |
|
|
259 |
|
|
260 |
#endif // MXN_DOM_VISITOR_H
|
|
261 |
|
|
262 |
// End of File
|