author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Tue, 14 Sep 2010 20:58:58 +0300 | |
branch | RCL_3 |
changeset 88 | 3321d3e205b6 |
parent 83 | 5456b4e8b3a8 |
child 93 | b01126ce0bec |
permissions | -rw-r--r-- |
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: |
|
15 |
* Xuikon property header file |
|
16 |
* |
|
17 |
*/ |
|
18 |
||
19 |
#ifndef XNPROPERTY_H |
|
20 |
#define XNPROPERTY_H |
|
21 |
||
22 |
// System includes |
|
23 |
#include <e32base.h> |
|
24 |
||
25 |
// User includes |
|
26 |
#include "xndompropertyvalue.h" |
|
27 |
||
28 |
// Forward declarations |
|
29 |
class CXnDomProperty; |
|
30 |
class CXnDomPropertyValue; |
|
31 |
class CXnDomStringPool; |
|
32 |
||
33 |
// Constants |
|
34 |
namespace XnPropertyNames |
|
35 |
{ |
|
36 |
_LIT8(KTrue, "true"); |
|
37 |
_LIT8(KFalse, "false"); |
|
38 |
_LIT8(KNone, "none"); |
|
39 |
_LIT8(KWidget, "widget"); |
|
40 |
_LIT8(KPlugin, "plugin"); |
|
41 |
||
42 |
namespace common |
|
43 |
{ |
|
44 |
_LIT8(KId, "id"); |
|
45 |
_LIT8(KClass, "class"); |
|
46 |
_LIT8(KPCData, "pcdata"); |
|
47 |
_LIT8(KFocusable, "focusable"); |
|
48 |
_LIT8(KInitialFocus, "_s60-initial-focus"); |
|
49 |
_LIT8(KFocusAppearance, "_s60-focus-appearance"); |
|
50 |
_LIT8(KDisabled, "disabled"); |
|
51 |
_LIT8(KLongTap, "_s60-longtap"); |
|
52 |
_LIT8(KSwipe, "swipe"); |
|
53 |
_LIT8(KSwipeDestination, "_s60-swipe-destination"); |
|
54 |
_LIT8(KBackgroundMask, "backgroundmask" ); |
|
55 |
_LIT8(KEffectId, "effectid"); |
|
56 |
_LIT8(KSizeAware, "sizeaware"); |
|
57 |
_LIT8(KVisualisationAware, "visualisationaware"); |
|
58 |
} |
|
59 |
namespace tooltip |
|
60 |
{ |
|
61 |
_LIT8(KStartDelay, "_s60-start-delay"); |
|
62 |
_LIT8(KDisplayTime, "_s60-display-time"); |
|
63 |
_LIT8(KPositionHint, "_s60-position-hint"); |
|
64 |
namespace positionhint |
|
65 |
{ |
|
66 |
_LIT8(KAboveLeft, "aboveleft"); |
|
67 |
_LIT8(KAboveRight, "aboveright"); |
|
68 |
_LIT8(KBelowLeft, "belowleft"); |
|
69 |
_LIT8(KBelowRight, "belowright"); |
|
70 |
_LIT8(KRight, "right"); |
|
71 |
_LIT8(KLeft, "left"); |
|
72 |
} |
|
73 |
} |
|
74 |
namespace popup |
|
75 |
{ |
|
76 |
_LIT8(KPopupType, "_s60-popup-type"); |
|
77 |
||
78 |
namespace popuptype |
|
79 |
{ |
|
80 |
_LIT8(KNormal, "normal"); |
|
81 |
_LIT8(KPermanent, "permanent"); |
|
82 |
} |
|
83 |
} |
|
84 |
namespace view |
|
85 |
{ |
|
86 |
_LIT8(KStatusPaneLayout, "_s60-status-pane-layout"); |
|
87 |
namespace statuspanelayout |
|
88 |
{ |
|
89 |
_LIT8( KNone, "none" ); |
|
90 |
_LIT8( KBasic, "basic" ); |
|
91 |
_LIT8( KBasicFlat, "basic-flat" ); |
|
92 |
_LIT8( KWideScreen, "widescreen" ); |
|
93 |
_LIT8( KWideScreenFlat, "widescreen-flat" ); |
|
94 |
_LIT8( KWideScreenFlat3Softkeys, "widescreen-flat-3softkeys" ); |
|
95 |
} |
|
96 |
} |
|
97 |
namespace newsticker |
|
98 |
{ |
|
99 |
_LIT8(KXnNewsticker, "newsticker"); |
|
100 |
_LIT8(KXnScrollAmount, "_s60-scroll-amount"); |
|
101 |
_LIT8(KXnScrollDelay, "_s60-scroll-delay"); |
|
102 |
_LIT8(KXnStartDelay, "_s60-start-delay"); |
|
103 |
_LIT8(KDisplayTime, "_s60-display-time"); |
|
104 |
_LIT8(KScrollBehaviour, "_s60-scroll-behaviour"); |
|
105 |
_LIT8(KScrollLoop, "_s60-scroll-loop"); |
|
106 |
_LIT8(KRestartAfterUpdate, "_s60-restart-after-update"); |
|
107 |
namespace scroll_behaviour |
|
108 |
{ |
|
109 |
_LIT8(KSlide, "slide"); |
|
110 |
_LIT8(KAlternate, "alternate"); |
|
111 |
_LIT8(KScrollAlternate, "scroll-alternate"); |
|
112 |
} |
|
113 |
} |
|
114 |
namespace title |
|
115 |
{ |
|
116 |
_LIT8(KTitleIndex, "titleindex" ); |
|
117 |
_LIT8(KTitle, "title" ); |
|
118 |
} |
|
119 |
namespace menu |
|
120 |
{ |
|
121 |
namespace menutype |
|
122 |
{ |
|
123 |
_LIT8(KMenuOptionsNoTaskSwapper, "menuoptionsnotaskswapper"); |
|
124 |
} |
|
125 |
_LIT8(KMenuItem, "menuitem" ); |
|
126 |
_LIT8(KDynMenuItem, "dynmenuitem" ); |
|
127 |
_LIT8(KMenuExtension, "menuextension" ); |
|
128 |
_LIT8(KMenuType, "menutype"); |
|
129 |
_LIT8(KEvent, "event"); |
|
130 |
_LIT8(KLabel, "label"); |
|
131 |
_LIT8(KChecked, "checked"); |
|
132 |
_LIT(KMSKDotImage16,"#mskdot"); |
|
133 |
_LIT8(KItemType, "type"); |
|
134 |
} |
|
135 |
namespace listquerydialog |
|
136 |
{ |
|
137 |
_LIT8(KListQueryDialog, "listquerydialog" ); |
|
138 |
_LIT8(KS60Heading, "_s60-heading"); |
|
139 |
} |
|
140 |
namespace softkey |
|
141 |
{ |
|
142 |
_LIT8(KNodeName, "softkey"); |
|
143 |
_LIT8(KTypeAttribute,"type"); |
|
144 |
_LIT8(KModeAttribute,"mode"); |
|
145 |
namespace type |
|
146 |
{ |
|
147 |
_LIT8(KLeft, "left"); |
|
148 |
_LIT8(KRight, "right"); |
|
149 |
_LIT8(KMiddle, "middle"); |
|
150 |
} |
|
151 |
namespace mode |
|
152 |
{ |
|
153 |
_LIT8(KModeCallActive, "mode_callactive"); |
|
154 |
_LIT8(KModeCallInactive, "mode_callinactive"); |
|
155 |
_LIT8(KModeEdit, "mode_edit"); |
|
156 |
} |
|
157 |
} |
|
158 |
namespace image |
|
159 |
{ |
|
160 |
_LIT8(KPath, "path"); |
|
161 |
_LIT8(KMaskPath, "maskpath"); |
|
162 |
_LIT8(KMaskInverted, "maskinverted"); |
|
163 |
_LIT8(KS60AspectRatio, "_s60-aspect-ratio"); |
|
164 |
_LIT8(KPreserve, "preserve"); |
|
165 |
_LIT8(KNone, "none"); |
|
166 |
} |
|
167 |
namespace clock |
|
168 |
{ |
|
88
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
169 |
_LIT8( KS60Format, "_s60-format" ); |
83 | 170 |
namespace format |
171 |
{ |
|
88
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
172 |
_LIT8( KDigital, "digital" ); |
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
173 |
_LIT8( KAnalog, "analog" ); |
83 | 174 |
} |
88
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
175 |
_LIT8( KS60AmPmFontSize, "_s60-ampm-font-size" ); |
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
176 |
_LIT8( KS60DigitalFontSize, "_s60-digital-font-size" ); |
83 | 177 |
_LIT8( KS60DateFontSize, "_s60-date-font-size" ); |
88
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
178 |
_LIT8( KS60FontSize, "_s60-font-size" ); |
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
179 |
_LIT8( KFace, "face" ); |
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
180 |
_LIT8( KFace12, "face12" ); |
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
181 |
_LIT8( KFace24, "face24" ); |
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
182 |
_LIT8( KDate, "date" ); |
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
183 |
_LIT8( KDay, "day" ); |
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
184 |
_LIT8( KAmpm, "ampm" ); |
83 | 185 |
} |
186 |
namespace volumecontrol |
|
187 |
{ |
|
188 |
_LIT8( KMinRange, "minrange" ); |
|
189 |
_LIT8( KMaxRange, "maxrange" ); |
|
190 |
_LIT8( KSlider, "slider" ); |
|
191 |
_LIT8( KIncrease, "increase" ); |
|
192 |
_LIT8( KDecrease, "decrease" ); |
|
193 |
_LIT8( KMute, "mute" ); |
|
194 |
_LIT8( KVolumeLevelAdjustment, "_s60-volume-level-adjustment" ); |
|
195 |
} |
|
196 |
namespace texteditor |
|
197 |
{ |
|
198 |
_LIT8( KEditorMarginLeft, "editor-margin-left" ); |
|
199 |
_LIT8( KEditorMarginRight, "editor-margin-right" ); |
|
200 |
_LIT8( KEditorMarginTop, "editor-margin-top" ); |
|
201 |
_LIT8( KEditorMarginBottom, "editor-margin-bottom" ); |
|
202 |
} |
|
203 |
namespace action |
|
204 |
{ |
|
205 |
_LIT8(KActions, "actions"); |
|
206 |
_LIT8(KAction, "action"); |
|
207 |
_LIT8(KProperty, "property"); |
|
208 |
_LIT8(KName, "name"); |
|
209 |
_LIT8(KValue, "value"); |
|
210 |
_LIT8(KTrigger, "trigger"); |
|
211 |
_LIT8(KEvent, "event"); |
|
212 |
namespace trigger |
|
213 |
{ |
|
214 |
_LIT8(KName, "name"); |
|
215 |
namespace name |
|
216 |
{ |
|
217 |
_LIT8(KLeft, "left"); |
|
218 |
_LIT8(KRight, "right"); |
|
219 |
_LIT8(KUp, "up"); |
|
220 |
_LIT8(KDown, "down"); |
|
221 |
_LIT8(KDownAndUp, "downup"); |
|
222 |
_LIT8(KActivate, "activate"); |
|
223 |
_LIT8(KHold, "hold"); |
|
224 |
_LIT8(KFocus, "focus"); |
|
225 |
_LIT8(KPassiveFocus, "passivefocus"); |
|
226 |
_LIT8(KGainFocus, "gainfocus"); |
|
227 |
_LIT8(KLoseFocus, "losefocus"); |
|
228 |
_LIT8(KKeyEvent, "keyevent"); |
|
229 |
_LIT8(KViewActivate, "viewactivate"); |
|
230 |
_LIT8(KViewDeactivate, "viewdeactivate"); |
|
231 |
_LIT8(KScreenDeviceChange, "screendevicechange"); |
|
232 |
_LIT8(KStylus, "stylus"); |
|
233 |
_LIT8(KGainVisualisation, "gainvisualisation"); |
|
234 |
_LIT8(KLoseVisualisation, "losevisualisation"); |
|
235 |
_LIT8(KSwipe, "swipe"); |
|
236 |
_LIT8(KSizeChanged, "sizechanged"); |
|
237 |
_LIT8(KWidgetAmount, "widgetamount"); |
|
238 |
_LIT8(KTitleToScroll, "titletoscroll"); |
|
239 |
_LIT8(KTitleScrolled, "titlescrolled"); |
|
240 |
_LIT8(KTitleIndex, "titleindex"); |
|
241 |
_LIT8(KCallState, "callstate"); |
|
242 |
_LIT8(KEditMode, "editmode" ); |
|
243 |
||
244 |
namespace swipe |
|
245 |
{ |
|
246 |
_LIT8(KDirection, "direction"); |
|
247 |
namespace direction |
|
248 |
{ |
|
249 |
_LIT8(KLeft, "left"); |
|
250 |
_LIT8(KRight, "right"); |
|
251 |
} |
|
252 |
} |
|
253 |
namespace keyevent |
|
254 |
{ |
|
255 |
_LIT8(KKeyCode, "keycode"); |
|
256 |
_LIT8(KScanCode, "scancode"); |
|
257 |
_LIT8(KModifiers, "modifiers"); |
|
258 |
_LIT8(KEventType, "eventtype"); |
|
259 |
_LIT8(KRepeats, "repeats"); |
|
260 |
} |
|
261 |
namespace orientation |
|
262 |
{ |
|
263 |
_LIT8(KReason, "reason"); |
|
264 |
namespace reason |
|
265 |
{ |
|
266 |
_LIT8(KLandscape, "landscape"); |
|
267 |
_LIT8(KPortrait, "portrait"); |
|
268 |
} |
|
269 |
} |
|
270 |
namespace callstate |
|
271 |
{ |
|
272 |
_LIT8(KActive, "active"); |
|
273 |
_LIT8(KInActive, "inactive"); |
|
274 |
} |
|
275 |
namespace editmode |
|
276 |
{ |
|
277 |
_LIT8(KEnter, "enter"); |
|
278 |
_LIT8(KExit, "exit"); |
|
279 |
} |
|
280 |
} |
|
281 |
} |
|
282 |
namespace event |
|
283 |
{ |
|
284 |
_LIT8(KSystemPrefix, "system/"); |
|
285 |
_LIT8(KName, "name"); |
|
286 |
_LIT8(KSetFocus, "system/setfocus"); |
|
287 |
_LIT8(KSetInitialFocus, "system/setinitialfocus"); |
|
288 |
_LIT8(KSetPassiveFocus, "system/setpassivefocus"); |
|
289 |
_LIT8(KSetActiveFocus, "system/setactivefocus"); |
|
290 |
_LIT8(KResetPassiveFocus, "system/resetpassivefocus"); |
|
291 |
_LIT8(KSetEditMode, "system/seteditmode"); |
|
292 |
_LIT8(KResetEditMode, "system/reseteditmode"); |
|
293 |
_LIT8(KClearPassiveFocuses, "system/clearpassivefocuses"); |
|
294 |
_LIT8(KRunAddWidgetQuery, "system/runaddwidgetquery"); |
|
295 |
_LIT8(KRemoveFocusedWidget, "system/removefocusedwidget"); |
|
296 |
_LIT8(KRemoveWidget, "system/removewidget"); |
|
297 |
_LIT8(KAddWidget, "system/addwidget"); |
|
298 |
_LIT8(KActivateView, "system/activateview"); |
|
299 |
_LIT8(KActivateNextView, "system/activatenextview"); |
|
300 |
_LIT8(KActivatePreviousView, "system/activatepreviousview"); |
|
301 |
_LIT8(KAddView,"system/addview"); |
|
302 |
_LIT8(KRemoveView,"system/removeview"); |
|
303 |
_LIT8(KActivate, "system/activate"); |
|
304 |
_LIT8(KDeactivate, "system/deactivate"); |
|
305 |
_LIT8(KSet, "system/set"); |
|
306 |
_LIT8(KTryDisplayingMenu, "system/trydisplayingmenu"); |
|
307 |
_LIT8(KTryDisplayingListQueryDialog, "system/trydisplayinglistquerydialog"); |
|
308 |
_LIT8(KTryDisplayingStylusPopup, "system/trydisplayingstyluspopup"); |
|
309 |
_LIT8(KToggleWidgetsVisibilty, "system/togglewidgetsvisibilty"); |
|
310 |
_LIT8(KSetWallpaper, "system/setwallpaper"); |
|
311 |
_LIT8(KActivateTextEditor, "system/activatetexteditor"); |
|
312 |
_LIT8(KDeactivateTextEditor, "system/deactivatetexteditor"); |
|
313 |
_LIT8(KActivateSelectedItem, "system/activateselecteditem"); |
|
314 |
_LIT8(KDestination, "destination"); |
|
315 |
_LIT8(KBroadcast, "broadcast"); |
|
316 |
_LIT8(KReportEnterEditMode, "system/reportentereditmode" ); |
|
317 |
_LIT8(KReportExitEditMode, "system/reportexiteditmode" ); |
|
318 |
namespace systemset |
|
319 |
{ |
|
320 |
_LIT8(KId, "id"); |
|
321 |
_LIT8(KPseudoClass, "pseudoclass"); |
|
322 |
_LIT8(KName, "name"); |
|
323 |
_LIT8(KValue, "value"); |
|
324 |
_LIT8(KType, "type"); |
|
325 |
_LIT8(KUnit, "unit"); |
|
326 |
_LIT8(KClass, "class"); |
|
327 |
namespace type |
|
328 |
{ |
|
329 |
_LIT8(KNumeric, "numeric"); |
|
330 |
_LIT8(KString, "string"); |
|
331 |
_LIT8(KAttribute, "attribute"); |
|
332 |
_LIT8(KRGB, "rgb"); |
|
333 |
_LIT8(KUrl, "url"); |
|
334 |
} |
|
335 |
} |
|
336 |
} |
|
337 |
} |
|
338 |
namespace style |
|
339 |
{ |
|
340 |
namespace common |
|
341 |
{ |
|
342 |
_LIT8(KDisplay, "display"); |
|
343 |
_LIT8(KNavIndex, "nav-index"); |
|
344 |
_LIT8(KS60NavLooping, "_s60-nav-looping"); |
|
345 |
_LIT8(KFocus, "focus"); |
|
346 |
_LIT8(KPressedDown, "presseddown"); |
|
347 |
_LIT8(KPassiveFocus, "passivefocus"); |
|
348 |
_LIT8(KHold, "hold"); |
|
349 |
_LIT8(KActive, "active"); |
|
350 |
_LIT8(KEdit, "edit"); |
|
351 |
namespace edit |
|
352 |
{ |
|
353 |
_LIT8(KEditable, "editable"); |
|
354 |
} |
|
355 |
namespace display |
|
356 |
{ |
|
357 |
_LIT8(KBlock, "block"); |
|
358 |
_LIT8(KNone, "none"); |
|
359 |
} |
|
360 |
_LIT8(KS60DisplayPriority, "_s60-display-priority"); |
|
361 |
_LIT8(KVisibility, "visibility"); |
|
362 |
namespace visibility |
|
363 |
{ |
|
364 |
_LIT8(KVisible, "visible"); |
|
365 |
_LIT8(KHidden, "hidden"); |
|
366 |
_LIT8(KBlank, "blank"); |
|
367 |
} |
|
368 |
_LIT8(KBlockProgression, "block-progression"); |
|
369 |
namespace block_progression |
|
370 |
{ |
|
371 |
_LIT8(KTB, "tb"); |
|
372 |
_LIT8(KBT, "bt"); |
|
373 |
_LIT8(KRL, "rl"); |
|
374 |
_LIT8(KLR, "lr"); |
|
375 |
} |
|
376 |
_LIT8(KDirection, "direction"); |
|
377 |
namespace direction |
|
378 |
{ |
|
379 |
_LIT8(KLTR, "ltr"); |
|
380 |
_LIT8(KRTL, "rtl"); |
|
381 |
} |
|
382 |
_LIT8(KWidth, "width"); |
|
383 |
_LIT8(KHeight, "height"); |
|
384 |
_LIT8(KMarginTop, "margin-top"); |
|
385 |
_LIT8(KMarginRight, "margin-right"); |
|
386 |
_LIT8(KMarginBottom, "margin-bottom"); |
|
387 |
_LIT8(KMarginLeft, "margin-left"); |
|
388 |
_LIT8(KBorderWidth, "border-width"); |
|
389 |
namespace border_width |
|
390 |
{ |
|
391 |
_LIT8(KThin, "thin"); |
|
392 |
_LIT8(KMedium, "medium"); |
|
393 |
_LIT8(KThick, "thick"); |
|
394 |
} |
|
395 |
_LIT8(KBorderTopWidth, "border-top-width"); |
|
396 |
_LIT8(KBorderRightWidth, "border-right-width"); |
|
397 |
_LIT8(KBorderBottomWidth, "border-bottom-width"); |
|
398 |
_LIT8(KBorderLeftWidth, "border-left-width"); |
|
399 |
_LIT8(KPaddingTop, "padding-top"); |
|
400 |
_LIT8(KPaddingRight, "padding-right"); |
|
401 |
_LIT8(KPaddingBottom, "padding-bottom"); |
|
402 |
_LIT8(KPaddingLeft, "padding-left"); |
|
403 |
_LIT8(KPosition, "position"); |
|
404 |
namespace position |
|
405 |
{ |
|
406 |
_LIT8(KAbsolute, "absolute"); |
|
407 |
_LIT8(KStatic, "static"); |
|
408 |
_LIT8(KRelative, "relative"); |
|
409 |
_LIT8(KFloating, "floating"); |
|
410 |
} |
|
411 |
_LIT8(KTop, "top"); |
|
412 |
_LIT8(KRight, "right"); |
|
413 |
_LIT8(KBottom, "bottom"); |
|
414 |
_LIT8(KLeft, "left"); |
|
415 |
_LIT8(KMinWidth, "min-width"); |
|
416 |
_LIT8(KMaxWidth, "max-width"); |
|
417 |
_LIT8(KMinHeight, "min-height"); |
|
418 |
_LIT8(KMaxHeight, "max-height"); |
|
419 |
_LIT8(KOverflow, "overflow"); |
|
420 |
_LIT8(KZIndex, "z-index"); |
|
421 |
_LIT8(KAuto, "auto"); |
|
422 |
_LIT8(KAdaptive, "adaptive"); |
|
423 |
_LIT8(KAppearance, "appearance"); |
|
424 |
namespace s60_focus_looping |
|
425 |
{ |
|
426 |
_LIT8(KStop, "stop"); |
|
427 |
} |
|
428 |
} |
|
429 |
}//style |
|
430 |
namespace appearance |
|
431 |
{ |
|
432 |
namespace common |
|
433 |
{ |
|
434 |
//Color and background properties |
|
435 |
_LIT8(KColor, "color"); |
|
436 |
_LIT8(KEffectsColor, "font-effects-color"); |
|
437 |
_LIT8(KBackGroundColor, "background-color"); |
|
438 |
_LIT8(KFocusBackground, "focus-background"); |
|
439 |
_LIT8(KBackGroundImage, "background-image"); |
|
440 |
_LIT8(KBackGroundSize, "background-size"); |
|
441 |
_LIT8(KBackGroundRepeat, "background-repeat"); |
|
442 |
_LIT8(KFallBackImage, "fallback-image"); |
|
443 |
namespace backgroundrepeat |
|
444 |
{ |
|
445 |
_LIT8(KRepeat, "repeat"); |
|
446 |
_LIT8(KRepeatX, "repeat-x"); |
|
447 |
_LIT8(KRepeatY, "repeat-y"); |
|
448 |
_LIT8(KSpace, "space"); |
|
449 |
_LIT8(KNoRepeat, "no-repeat"); |
|
450 |
} |
|
451 |
_LIT8(KBackGroundPosition, "background-position"); |
|
452 |
namespace backgroundposition |
|
453 |
{ |
|
454 |
_LIT8(KLeft, "left"); |
|
455 |
_LIT8(KRight, "right"); |
|
456 |
_LIT8(KTop, "top"); |
|
457 |
_LIT8(KBottom, "bottom"); |
|
458 |
} |
|
459 |
// Border properties |
|
460 |
_LIT8(KBorderStyle, "border-style"); |
|
461 |
_LIT8(KBorderTopStyle, "border-top-style"); |
|
462 |
_LIT8(KBorderRightStyle, "border-right-style"); |
|
463 |
_LIT8(KBorderBottomStyle,"border-bottom-style"); |
|
464 |
_LIT8(KBorderLeftStyle, "border-left-style"); |
|
465 |
namespace borderstyle |
|
466 |
{ |
|
467 |
_LIT8(KDotted, "dotted"); |
|
468 |
_LIT8(KSolid, "solid"); |
|
469 |
_LIT8(KGroove, "groove"); |
|
470 |
_LIT8(KRidge, "ridge"); |
|
471 |
_LIT8(KInset, "inset"); |
|
472 |
_LIT8(KOutset, "outset"); |
|
473 |
} |
|
474 |
_LIT8(KBorderColor, "border-color"); |
|
475 |
_LIT8(KBorderLeftColor, "border-left-color"); |
|
476 |
_LIT8(KBorderRightColor, "border-right-color"); |
|
477 |
_LIT8(KBorderTopColor, "border-top-color"); |
|
478 |
_LIT8(KBorderBottomColor, "border-bottom-color"); |
|
479 |
_LIT8(KBorderImage, "border-image"); |
|
480 |
namespace borderimage |
|
481 |
{ |
|
482 |
_LIT8(KStretch, "stretch"); |
|
483 |
_LIT8(KRepeat, "repeat"); |
|
484 |
_LIT8(KRound, "round"); |
|
485 |
} |
|
486 |
//Font properties |
|
487 |
_LIT8(KFontFamily, "font-family"); |
|
488 |
_LIT8(KFontSize, "font-size"); |
|
489 |
_LIT8(KFontWeight, "font-weight"); |
|
490 |
_LIT8(KFontLineSpace, "font-line-space"); |
|
491 |
namespace fontweight |
|
492 |
{ |
|
493 |
_LIT8(KBold, "bold"); |
|
494 |
} |
|
495 |
_LIT8(KFontStyle, "font-style"); |
|
496 |
namespace fontstyle |
|
497 |
{ |
|
498 |
_LIT8(KItalic, "italic"); |
|
499 |
} |
|
500 |
_LIT8(KTextDecoration, "text-decoration"); |
|
501 |
namespace textdecoration |
|
502 |
{ |
|
503 |
_LIT8(KUnderline, "underline"); |
|
504 |
_LIT8(KLinethrough, "line-through"); |
|
505 |
} |
|
506 |
_LIT8(KTextAlign, "text-align"); |
|
507 |
namespace textalign |
|
508 |
{ |
|
509 |
_LIT8( KAlignLeft,"left"); |
|
510 |
_LIT8( KAlignRight,"right"); |
|
511 |
_LIT8( KAlignCenter,"center"); |
|
512 |
_LIT8( KAlignJustify,"justify"); |
|
513 |
} |
|
514 |
_LIT8(KS60TextVAlign, "_s60-text-valign"); |
|
515 |
namespace textvalign |
|
516 |
{ |
|
517 |
_LIT8( KAlignTop, "top"); |
|
518 |
_LIT8( KAlignCenter, "center"); |
|
519 |
_LIT8( KAlignBottom, "bottom"); |
|
520 |
} |
|
521 |
_LIT8(KTextEffects, "font-effects"); |
|
522 |
namespace fonteffects |
|
523 |
{ |
|
524 |
_LIT8( KEffectsAlgorithmicbold, "algorithmicbold"); |
|
525 |
_LIT8( KEffectsDropshadow, "dropshadow"); |
|
526 |
_LIT8( KEffectsOutline, "outline"); |
|
527 |
_LIT8( KEffectsEmbossed, "embossed"); |
|
528 |
_LIT8( KEffectsEngraved, "engraved"); |
|
529 |
_LIT8( KEffectsSoftedge, "softedge"); |
|
530 |
} |
|
531 |
_LIT8(KTextOverflowMode, "text-overflow-mode"); |
|
532 |
namespace textoverflow |
|
533 |
{ |
|
534 |
_LIT8(KClipMode, "clip"); |
|
535 |
_LIT8(KWrapMode,"wrap"); |
|
536 |
_LIT8(KMaxLineAmount,"max-line-amount"); |
|
537 |
} |
|
538 |
_LIT8(KWhiteSpaceCollapse, "white-space-collapse"); |
|
539 |
namespace whitespace |
|
540 |
{ |
|
541 |
_LIT8(KCollapse, "collapse"); |
|
542 |
_LIT8(KPreserveBreaks, "preserve-breaks"); |
|
543 |
_LIT8(KDiscard, "discard"); |
|
544 |
} |
|
545 |
//View properties missing |
|
546 |
}//common |
|
547 |
} |
|
548 |
} |
|
549 |
||
550 |
// Class declaration |
|
551 |
/** |
|
552 |
* Xuikon property class implementation. |
|
553 |
* |
|
554 |
* @ingroup group_xnlayoutengine |
|
555 |
* @lib ?library |
|
556 |
* @since Series 60 3.1 |
|
557 |
*/ |
|
558 |
class CXnProperty : public CBase |
|
559 |
{ |
|
560 |
public: |
|
561 |
// Constructors and destructor |
|
562 |
||
563 |
/** |
|
564 |
* Two-phased constructor. |
|
565 |
* |
|
566 |
* @param aProperty DOM property to embed |
|
567 |
*/ |
|
568 |
IMPORT_C static CXnProperty* NewL( CXnDomProperty* aProperty ); |
|
569 |
||
570 |
/** |
|
571 |
* Two-phased constructor. |
|
572 |
* |
|
573 |
* @param aName Property name |
|
574 |
* @param aPropertyValue Property value |
|
575 |
* @param aStringPool String pool to use |
|
576 |
*/ |
|
577 |
IMPORT_C static CXnProperty* NewL( |
|
578 |
const TDesC8& aName, |
|
579 |
CXnDomPropertyValue* aPropertyValue, |
|
580 |
CXnDomStringPool& aStringPool ); |
|
581 |
||
582 |
/** |
|
583 |
* Two-phased constructor. |
|
584 |
* |
|
585 |
* @param aName Property name |
|
586 |
* @param aPropertyValue Property value |
|
587 |
* @param aValueType Property value type |
|
588 |
* @param aStringPool String pool to use |
|
589 |
*/ |
|
590 |
IMPORT_C static CXnProperty* NewL( |
|
591 |
const TDesC8& aPropertyName, |
|
592 |
const TDesC8& aPropertyValue, |
|
593 |
CXnDomPropertyValue::TPrimitiveValueType aValueType, |
|
594 |
CXnDomStringPool& aStringPool ); |
|
595 |
||
596 |
/** |
|
597 |
* Two-phased constructor. |
|
598 |
* |
|
599 |
* @param aName Property name |
|
600 |
* @param aPropertyValue Property value |
|
601 |
* @param aValueType Property value type |
|
602 |
* @param aStringPool String pool to use |
|
603 |
*/ |
|
604 |
IMPORT_C static CXnProperty* NewL( |
|
605 |
const TDesC8& aPropertyName, |
|
606 |
TReal aPropertyValue, |
|
607 |
CXnDomPropertyValue::TPrimitiveValueType aValueType, |
|
608 |
CXnDomStringPool& aStringPool ); |
|
609 |
||
610 |
/** |
|
611 |
* Two-phased constructor. Does not take ownership of the DOM property |
|
612 |
* |
|
613 |
* @param aProperty DOM property to embed |
|
614 |
*/ |
|
615 |
static CXnProperty* NewSharedL( CXnDomProperty* aProperty ); |
|
616 |
||
617 |
/** |
|
618 |
* Destructor. |
|
619 |
*/ |
|
620 |
virtual ~CXnProperty(); |
|
621 |
||
622 |
public: |
|
623 |
// new functions |
|
624 |
||
625 |
/** |
|
626 |
* Compares two propertys |
|
627 |
* |
|
628 |
* @since Series 60 3.2 |
|
629 |
* @return ETrue if properties equals, EFalse otherwise |
|
630 |
*/ |
|
631 |
IMPORT_C TBool EqualsL( CXnProperty& aProperty ) const; |
|
632 |
||
633 |
/** |
|
634 |
* Get the embedded DOM property |
|
635 |
* |
|
636 |
* @since Series 60 3.1 |
|
637 |
* @return Embedded DOM property |
|
638 |
*/ |
|
639 |
IMPORT_C CXnDomProperty* Property(); |
|
640 |
||
641 |
/** |
|
642 |
* Get the value of the property as a 16-bit descriptor. Ownership is |
|
643 |
* transferred to caller. |
|
644 |
* |
|
645 |
* @since Series 60 3.1 |
|
646 |
* @return String value of the property |
|
647 |
*/ |
|
648 |
IMPORT_C HBufC* StringValueL(); |
|
649 |
||
650 |
/** |
|
651 |
* Get the value of the property as an 8-bit descriptor. |
|
652 |
* |
|
653 |
* @since Series 60 3.1 |
|
654 |
* @return String value of the property |
|
655 |
*/ |
|
656 |
IMPORT_C const TDesC8& StringValue(); |
|
657 |
||
658 |
/** |
|
659 |
* Get the value of the property as a number |
|
660 |
* |
|
661 |
* @since Series 60 3.1 |
|
662 |
* @return Numeric value of the property |
|
663 |
*/ |
|
664 |
IMPORT_C TReal FloatValueL(); |
|
665 |
||
666 |
/** |
|
667 |
* Clone the property |
|
668 |
* |
|
669 |
* @since Series 60 3.1 |
|
670 |
* @return Clone of the property |
|
671 |
*/ |
|
672 |
IMPORT_C CXnProperty* CloneL(); |
|
673 |
||
674 |
private: |
|
675 |
/** |
|
676 |
* C++ default constructor. |
|
677 |
*/ |
|
678 |
CXnProperty(); |
|
679 |
||
680 |
/** |
|
681 |
* Two-phased constructor. |
|
682 |
* |
|
683 |
* @param aProperty DOM property to embed |
|
684 |
*/ |
|
685 |
void ConstructL( CXnDomProperty* aProperty ); |
|
686 |
||
687 |
/** |
|
688 |
* Two-phased constructor. |
|
689 |
* |
|
690 |
* @param aName Property name |
|
691 |
* @param aPropertyValue Property value |
|
692 |
* @param aStringPool String pool to use |
|
693 |
*/ |
|
694 |
void ConstructL( |
|
695 |
const TDesC8& aName, |
|
696 |
CXnDomPropertyValue* aPropertyValue, |
|
697 |
CXnDomStringPool& aStringPool ); |
|
698 |
||
699 |
/** |
|
700 |
* Two-phased constructor. |
|
701 |
* |
|
702 |
* @param aName Property name |
|
703 |
* @param aPropertyValue Property value |
|
704 |
* @param aValueType Property value type |
|
705 |
* @param aStringPool String pool to use |
|
706 |
*/ |
|
707 |
void ConstructL( |
|
708 |
const TDesC8& aPropertyName, |
|
709 |
const TDesC8& aPropertyValue, |
|
710 |
CXnDomPropertyValue::TPrimitiveValueType aValueType, |
|
711 |
CXnDomStringPool& aStringPool ); |
|
712 |
||
713 |
/** |
|
714 |
* Two-phased constructor. |
|
715 |
* |
|
716 |
* @param aName Property name |
|
717 |
* @param aPropertyValue Property value |
|
718 |
* @param aValueType Property value type |
|
719 |
* @param aStringPool String pool to use |
|
720 |
*/ |
|
721 |
void ConstructL( |
|
722 |
const TDesC8& aPropertyName, |
|
723 |
TReal aPropertyValue, |
|
724 |
CXnDomPropertyValue::TPrimitiveValueType aValueType, |
|
725 |
CXnDomStringPool& aStringPool ); |
|
726 |
||
727 |
/** |
|
728 |
* Two-phased constructor. Does not take ownership of the DOM property |
|
729 |
* |
|
730 |
* @param aProperty DOM property to embed |
|
731 |
*/ |
|
732 |
void ConstructSharedL( CXnDomProperty* aProperty ); |
|
733 |
||
734 |
private: |
|
735 |
// Data |
|
736 |
||
737 |
/** |
|
738 |
* embedded DOM property. |
|
739 |
* Own or Not own, depending on the iIsDomPropertyOwned flag |
|
740 |
*/ |
|
741 |
CXnDomProperty* iProperty; |
|
742 |
||
743 |
/** |
|
744 |
* flag indicating whether the DOM property is owned by the |
|
745 |
* CXnProperty object |
|
746 |
*/ |
|
747 |
TBool iIsDomPropertyOwned; |
|
748 |
}; |
|
749 |
||
750 |
#endif |