|
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(KGrid, "grid"); |
|
51 _STLIT8(KListItem, "listitem"); |
|
52 _STLIT8(KDataGrid, "datagrid"); |
|
53 _STLIT8(KGridCellTemplate, "gridcelltemplate"); |
|
54 _STLIT8(KList, "list"); |
|
55 _STLIT8(KDataList, "datalist"); |
|
56 _STLIT8(KListRowTemplate, "listrowtemplate"); |
|
57 _STLIT8(KMenuBar, "menubar"); |
|
58 _STLIT8(KMenu, "menu"); |
|
59 _STLIT8(KMenuItem, "menuitem"); |
|
60 _STLIT8(KText, "text"); |
|
61 _STLIT8(KImage, "image"); |
|
62 _STLIT8(KEditor, "editor"); |
|
63 _STLIT8(KMarquee, "marquee"); |
|
64 _STLIT8(KNewsticker, "newsticker"); |
|
65 _STLIT8(KTooltip, "tooltip"); |
|
66 //XHTML |
|
67 _STLIT8(KObject, "object"); |
|
68 _STLIT8(KParam, "param"); |
|
69 |
|
70 //Box |
|
71 _STLIT8(KBox, "box"); |
|
72 |
|
73 //Interaction |
|
74 _STLIT8(KAction, "action"); |
|
75 _STLIT8(KTrigger, "trigger"); |
|
76 _STLIT8(KEvent, "event"); |
|
77 |
|
78 |
|
79 //PROPERTY LITERAL DEFINITIONS |
|
80 |
|
81 //Common properties |
|
82 _STLIT8(KDisplay, "display"); |
|
83 _STLIT8(KDisplayPriority, "_s60-display-priority"); |
|
84 _STLIT8(KVisibility, "visibility"); |
|
85 _STLIT8(KInitialFocus, "_s60-initial-focus"); |
|
86 |
|
87 |
|
88 _STLIT8(KBlockProgression, "block-progression"); |
|
89 _STLIT8(KDirection, "direction"); |
|
90 |
|
91 _STLIT8(KWidth, "width"); |
|
92 _STLIT8(KHeight, "height"); |
|
93 |
|
94 _STLIT8(KMarginTop, "margin-top"); |
|
95 _STLIT8(KMarginRight, "margin-right"); |
|
96 _STLIT8(KMarginBottom, "margin-bottom"); |
|
97 _STLIT8(KMarginLeft, "margin-left"); |
|
98 _STLIT8(KBorderWidth, "border-width"); |
|
99 _STLIT8(KBorderTopWidth, "border-top-width"); |
|
100 _STLIT8(KBorderRightWidth, "border-right-width"); |
|
101 _STLIT8(KBorderBottomWidth,"border-bottom-width"); |
|
102 _STLIT8(KBorderLeftWidth, "border-left-width"); |
|
103 |
|
104 _STLIT8(KPaddingTop, "padding-top"); |
|
105 _STLIT8(KPaddingRight, "padding-right"); |
|
106 _STLIT8(KPaddingBottom, "padding-bottom"); |
|
107 _STLIT8(KPaddingLeft, "padding-left"); |
|
108 |
|
109 _STLIT8(KPosition, "position"); |
|
110 _STLIT8(KTop, "top"); |
|
111 _STLIT8(KRight, "right"); |
|
112 _STLIT8(KBottom, "bottom"); |
|
113 _STLIT8(KLeft, "left"); |
|
114 _STLIT8(KMinWidth, "min-width"); |
|
115 _STLIT8(KMaxWidth, "max-width"); |
|
116 _STLIT8(KMinHeight, "min-height"); |
|
117 _STLIT8(KMaxHeight, "max-height"); |
|
118 |
|
119 _STLIT8(KColor, "color"); |
|
120 _STLIT8(KBGColor, "background-color"); |
|
121 _STLIT8(KBGImg, "background-image"); |
|
122 _STLIT8(KBGSize, "background-size"); |
|
123 _STLIT8(KBGRepeat, "background-repeat"); |
|
124 _STLIT8(KBGPos, "background-position"); |
|
125 |
|
126 _STLIT8(KBorderTopStyle, "border-top-style"); |
|
127 _STLIT8(KBorderRightStyle, "border-right-style"); |
|
128 _STLIT8(KBorderBottomStyle,"border-bottom-style"); |
|
129 _STLIT8(KBorderLeftStyle, "border-left-style"); |
|
130 _STLIT8(KBorderColor, "border-color"); |
|
131 _STLIT8(KBorderImg, "border-image"); |
|
132 |
|
133 |
|
134 //Element with text properties |
|
135 _STLIT8(KTextOverflowMode, "text-overflow-mode"); |
|
136 |
|
137 _STLIT8(KFontFamily, "font-family"); |
|
138 _STLIT8(KFontSize, "font-size"); |
|
139 _STLIT8(KFontWeight, "font-weight"); |
|
140 _STLIT8(KFontStyle, "font-style"); |
|
141 _STLIT8(KTextDecoration, "text-decoration"); |
|
142 |
|
143 //For text,list,datalist, grid, datagrid elements |
|
144 _STLIT8(KOverflow, "overflow"); |
|
145 |
|
146 //List And grid properties |
|
147 _STLIT8(KVisibleRows, "_s60-visible-list-rows"); |
|
148 _STLIT8(KInitialSelection, "_s60-initial-list-selection"); |
|
149 _STLIT8(KFocusHorLooping, "_s60-list-focus-horizontal-looping"); |
|
150 _STLIT8(KFocusVerLooping, "_s60-list-focus-vertical-looping"); |
|
151 |
|
152 //Datagrid & grid properties |
|
153 _STLIT8(KGridColumns, "_s60-grid-columns"); |
|
154 _STLIT8(KS60GridOrientation, "_s60-grid-orientation"); |
|
155 _STLIT8(KS60GridVerDirection, "_s60-grid-ver-direction"); //lr, rl |
|
156 _STLIT8(KS60GridHorDirection, "_s60-grid-hor-direction"); //tb, bt |
|
157 |
|
158 //Views and view properties |
|
159 _STLIT8(KViewDecoration, "_s60-view-decoration"); |
|
160 _STLIT8(KTabStyle, "_s60-tab-style"); |
|
161 _STLIT8(KTabColor, "_s60-tab-color"); |
|
162 _STLIT8(KTabImg, "_s60-tab-image"); |
|
163 _STLIT8(KViewTransitionEffect, "_s60-view-transition-effect"); |
|
164 |
|
165 //View |
|
166 _STLIT8(KTabLabel, "_s60-tab-label"); |
|
167 |
|
168 //Function pointer |
|
169 typedef void (*FuncPtr) (TAny*); |
|
170 |
|
171 //Struct to hold type and function which operates it |
|
172 typedef struct |
|
173 { |
|
174 const void* iName; |
|
175 FuncPtr iFuncPtr; |
|
176 TContentType iContentType; |
|
177 }TXnElementVisitor; |
|
178 |
|
179 //Struct to follow up if property has capability to inherit |
|
180 typedef struct |
|
181 { |
|
182 const void* iName; |
|
183 TBool iInherit; |
|
184 }TXnPropertyProxy; |
|
185 |
|
186 |
|
187 // Common properties intermediate table |
|
188 const TXnPropertyProxy KXnCommonPropertyTable[] = |
|
189 { |
|
190 {(const void*)&KDisplay, EFalse}, |
|
191 {(const void*)&KDisplayPriority, EFalse}, |
|
192 {(const void*)&KVisibility, ETrue}, |
|
193 {(const void*)&KInitialFocus, EFalse}, |
|
194 |
|
195 {(const void*)&KBlockProgression, ETrue}, |
|
196 {(const void*)&KDirection, ETrue}, |
|
197 |
|
198 {(const void*)&KWidth, EFalse}, |
|
199 {(const void*)&KHeight, EFalse}, |
|
200 |
|
201 {(const void*)&KMarginTop, EFalse}, |
|
202 {(const void*)&KMarginRight, EFalse}, |
|
203 {(const void*)&KMarginBottom, EFalse}, |
|
204 {(const void*)&KMarginLeft, EFalse}, |
|
205 {(const void*)&KBorderWidth, EFalse}, |
|
206 {(const void*)&KBorderTopWidth, EFalse}, |
|
207 {(const void*)&KBorderRightWidth, EFalse}, |
|
208 {(const void*)&KBorderBottomWidth, EFalse}, |
|
209 {(const void*)&KBorderLeftWidth, EFalse}, |
|
210 |
|
211 {(const void*)&KPaddingTop, EFalse}, |
|
212 {(const void*)&KPaddingRight, EFalse}, |
|
213 {(const void*)&KPaddingBottom, EFalse}, |
|
214 {(const void*)&KPaddingLeft, EFalse}, |
|
215 |
|
216 {(const void*)&KPosition, EFalse}, |
|
217 {(const void*)&KTop, EFalse}, |
|
218 {(const void*)&KRight, EFalse}, |
|
219 {(const void*)&KBottom, EFalse}, |
|
220 {(const void*)&KLeft, EFalse}, |
|
221 |
|
222 {(const void*)&KMinWidth, EFalse}, |
|
223 {(const void*)&KMaxWidth, EFalse}, |
|
224 {(const void*)&KMinHeight, EFalse}, |
|
225 {(const void*)&KMaxHeight, EFalse}, |
|
226 |
|
227 //Appearance |
|
228 {(const void*)&KColor, ETrue}, |
|
229 {(const void*)&KBGColor, EFalse}, |
|
230 {(const void*)&KBGImg, EFalse}, |
|
231 {(const void*)&KBGSize, EFalse}, |
|
232 {(const void*)&KBGRepeat, EFalse}, |
|
233 {(const void*)&KBGPos, EFalse}, |
|
234 |
|
235 {(const void*)&KBorderTopStyle, EFalse}, |
|
236 {(const void*)&KBorderRightStyle, EFalse}, |
|
237 {(const void*)&KBorderBottomStyle, EFalse}, |
|
238 {(const void*)&KBorderLeftStyle, EFalse}, |
|
239 {(const void*)&KBorderColor, EFalse}, |
|
240 {(const void*)&KBorderImg, EFalse} |
|
241 |
|
242 }; |
|
243 |
|
244 |
|
245 const TXnPropertyProxy KXnElementWithTextPropertyTable[] = |
|
246 { |
|
247 {(const void*)&KTextOverflowMode, EFalse}, |
|
248 {(const void*)&KFontFamily, ETrue}, |
|
249 {(const void*)&KFontSize, ETrue}, |
|
250 {(const void*)&KFontWeight, ETrue}, |
|
251 {(const void*)&KFontStyle, ETrue}, |
|
252 {(const void*)&KTextDecoration, EFalse} |
|
253 }; |
|
254 |
|
255 const TXnPropertyProxy KXnTextElementPropertyTable[] = |
|
256 { |
|
257 {(const void*)&KOverflow, EFalse} |
|
258 }; |
|
259 |
|
260 const TXnPropertyProxy KXnGridAndListPropertyTable[] = |
|
261 { |
|
262 {(const void*)&KVisibleRows, EFalse}, |
|
263 {(const void*)&KInitialSelection, EFalse}, |
|
264 {(const void*)&KFocusHorLooping, EFalse}, |
|
265 {(const void*)&KFocusVerLooping, EFalse}, |
|
266 {(const void*)&KOverflow, EFalse} |
|
267 }; |
|
268 |
|
269 const TXnPropertyProxy KXnDataGridAndGridPropertyTable[] = |
|
270 { |
|
271 {(const void*)&KGridColumns, EFalse}, |
|
272 {(const void*)&KS60GridOrientation, EFalse}, |
|
273 {(const void*)&KS60GridVerDirection, EFalse}, |
|
274 {(const void*)&KS60GridHorDirection, EFalse} |
|
275 }; |
|
276 |
|
277 const TXnPropertyProxy KXnViewsAndViewPropertyTable[] = |
|
278 { |
|
279 {(const void*)&KViewDecoration, EFalse}, |
|
280 {(const void*)&KTabStyle, ETrue}, |
|
281 {(const void*)&KTabColor, ETrue}, |
|
282 {(const void*)&KTabImg, EFalse}, |
|
283 {(const void*)&KViewTransitionEffect, EFalse} |
|
284 }; |
|
285 |
|
286 const TXnPropertyProxy KXnViewPropertyTable[] = |
|
287 { |
|
288 |
|
289 {(const void*)&KTabLabel, EFalse} |
|
290 |
|
291 }; |
|
292 // CLASS DECLARATION |
|
293 |
|
294 |
|
295 #endif // MXN_DOM_VISITOR_H |
|
296 |
|
297 // End of File |