|
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(KDisabled, "disabled"); |
|
50 // _LIT8(KLocked, "locked"); |
|
51 // _LIT8(KStyleLocked, "stylelocked"); |
|
52 _LIT8(KLongTap, "_s60-longtap"); |
|
53 _LIT8(KSwipe, "swipe"); |
|
54 _LIT8(KSwipeDestination, "swipe_destination"); |
|
55 _LIT8(KBackgroundMask, "backgroundmask" ); |
|
56 _LIT8(KStylusStates, "stylusstates"); |
|
57 _LIT8(KTouchFeedbackDown, "touchfeedbackdown"); |
|
58 _LIT8(KTouchFeedbackUp, "touchfeedbackup"); |
|
59 _LIT8(KTouchFeedbackDrag, "touchfeedbackdrag"); |
|
60 _LIT8(KTouchFeedbackLongTap, "touchfeedbacklongtap"); |
|
61 _LIT8(KEventFilter, "eventfilter"); |
|
62 _LIT8(KEffectId, "effectid"); |
|
63 _LIT8(KKeyMoveMode, "keymovemode"); |
|
64 _LIT8(KSizeAware, "sizeaware"); |
|
65 _LIT8(KVisualisationAware, "visualisationaware"); |
|
66 namespace touchfeedback |
|
67 { |
|
68 _LIT8(KFeedbackBasic, "basic"); |
|
69 _LIT8(KFeedbackSensitive, "sensitive"); |
|
70 } |
|
71 } |
|
72 namespace tooltip |
|
73 { |
|
74 _LIT8(KStartDelay, "_s60-start-delay"); |
|
75 _LIT8(KDisplayTime, "_s60-display-time"); |
|
76 _LIT8(KPositionHint, "_s60-position-hint"); |
|
77 namespace positionhint |
|
78 { |
|
79 // _LIT8(KNone, "none"); |
|
80 _LIT8(KAboveLeft, "aboveleft"); |
|
81 _LIT8(KAboveRight, "aboveright"); |
|
82 _LIT8(KBelowLeft, "belowleft"); |
|
83 _LIT8(KBelowRight, "belowright"); |
|
84 _LIT8(KRight, "right"); |
|
85 _LIT8(KLeft, "left"); |
|
86 } |
|
87 } |
|
88 namespace styluspopup |
|
89 { |
|
90 _LIT8(KPositionHint, "_s60-position-hint"); |
|
91 namespace positionhint |
|
92 { |
|
93 _LIT8(KAbove, "above"); |
|
94 // _LIT8(KBelow, "below"); |
|
95 } |
|
96 } |
|
97 namespace view |
|
98 { |
|
99 // _LIT8(KUid, "uid"); |
|
100 _LIT8(KInitial, "initial"); |
|
101 // _LIT8(KTitle, "title"); |
|
102 _LIT8(KFocusVisibility, "_s60-focus-visibility"); |
|
103 _LIT8(KStatusPaneLayout, "_s60-status-pane-layout"); |
|
104 namespace statuspanelayout |
|
105 { |
|
106 _LIT8( KNone, "none" ); |
|
107 _LIT8( KBasic, "basic" ); |
|
108 _LIT8( KBasicFlat, "basic-flat" ); |
|
109 _LIT8( KWideScreen, "widescreen" ); |
|
110 _LIT8( KWideScreenFlat, "widescreen-flat" ); |
|
111 _LIT8( KWideScreenFlat3Softkeys, "widescreen-flat-3softkeys" ); |
|
112 } |
|
113 } |
|
114 namespace grid |
|
115 { |
|
116 // _LIT8(KType, "type"); |
|
117 // namespace type |
|
118 // { |
|
119 // _LIT8(KSelection, "selection"); |
|
120 // _LIT8(KMarkable, "markable"); |
|
121 // } |
|
122 // _LIT8(KSelectionType, "selectiontype"); |
|
123 // namespace selectiontype |
|
124 // { |
|
125 // _LIT8(KSingle, "single"); |
|
126 // _LIT8(KMulti, "multi"); |
|
127 // } |
|
128 // _LIT8(KMarkingElement, "markingelement"); |
|
129 // _LIT8(KMarkingElementOff, "markingelementoff"); |
|
130 // _LIT8(KOpeningEffect, "openingeffect"); |
|
131 _LIT8(KS60GridColumns, "_s60-grid-columns"); |
|
132 _LIT8(KS60VisibleRows, "_s60-visible-list-rows"); |
|
133 // _LIT8(KS60GridColumnsLandscape, "_s60-grid-columns-landscape"); |
|
134 // _LIT8(KS60VisibleRowsLandscape, "_s60-visible-list-rows-landscape"); |
|
135 // _LIT8(KS60InitialSelection, "_s60-initial-list-selection"); |
|
136 _LIT8(KS60FocusHorLooping, "_s60-list-focus-horizontal-looping"); |
|
137 _LIT8(KS60FocusVerLooping, "_s60-list-focus-vertical-looping"); |
|
138 namespace s60_focus_looping |
|
139 { |
|
140 _LIT8(KStop, "stop"); |
|
141 // _LIT8(KLoop, "loop"); |
|
142 // _LIT8(KSnake, "snake"); |
|
143 } |
|
144 _LIT8(KS60GridOrientation, "_s60-grid-orientation"); |
|
145 _LIT8(KS60GridVerDirection, "_s60-grid-ver-direction"); //lr, rl |
|
146 _LIT8(KS60GridHorDirection, "_s60-grid-hor-direction"); //tb, bt |
|
147 // _LIT8(KS60GridPreserveImageRatio, "_s60-grid-preserve-image-ratio"); |
|
148 _LIT8(KS60GridScrollbarWidth, "_s60-grid-scrollbar-width"); |
|
149 _LIT8(KS60GridScrollbarMargin, "_s60-grid-scrollbar-margin"); |
|
150 _LIT8(KGridCellTemplate, "gridcelltemplate"); |
|
151 _LIT8(KListRowTemplate, "listrowtemplate"); |
|
152 } |
|
153 namespace newsticker |
|
154 { |
|
155 _LIT8(KXnNewsticker, "newsticker"); |
|
156 _LIT8(KXnScrollAmount, "_s60-scroll-amount"); |
|
157 _LIT8(KXnScrollDelay, "_s60-scroll-delay"); |
|
158 _LIT8(KXnStartDelay, "_s60-start-delay"); |
|
159 _LIT8(KXnNewstickerAnimationDelay, "_s60-animation-delay"); |
|
160 _LIT8(KDisplayTime, "_s60-display-time"); |
|
161 _LIT8(KScrollBehaviour, "_s60-scroll-behaviour"); |
|
162 _LIT8(KScrollLoop, "_s60-scroll-loop"); |
|
163 _LIT8(KRestartAfterUpdate, "_s60-restart-after-update"); |
|
164 namespace scroll_behaviour |
|
165 { |
|
166 // _LIT8(KScroll, "scroll"); |
|
167 _LIT8(KSlide, "slide"); |
|
168 _LIT8(KAlternate, "alternate"); |
|
169 _LIT8(KScrollAlternate, "scroll-alternate"); |
|
170 } |
|
171 } |
|
172 namespace title |
|
173 { |
|
174 _LIT8(KTitleIndex, "titleindex" ); |
|
175 _LIT8(KTitle, "title" ); |
|
176 } |
|
177 /* namespace trackster |
|
178 { |
|
179 _LIT8( KTrackster, "trackster" ); |
|
180 _LIT8( KTracksterCellTemplate, "trackstercelltemplate" ); |
|
181 _LIT8( KText, "text" ); |
|
182 _LIT8( KImage, "image" ); |
|
183 _LIT8( KCurveTypeCurve, "trackstercurve" ); |
|
184 _LIT8( KCurveTypeZoom, "tracksterzoom" ); |
|
185 _LIT8( KKeyPoint, "keypoint" ); |
|
186 _LIT8( KXCoordinate, "_s60-co-ordinate-x" ); |
|
187 _LIT8( KYCoordinate, "_s60-co-ordinate-y" ); |
|
188 _LIT8( KScrollTime, "_S60-scroll-time" ); |
|
189 _LIT8( KS60VisibleFocus, "_s60-visible-focus" ); |
|
190 _LIT8( KTracsterItems, "tracksteritems" ); |
|
191 _LIT8( KItemCount, "_s60-item-count" ); |
|
192 _LIT8( KVisibleFocus, "_s60-visible-focus" ); |
|
193 _LIT8( KItemPoints, "_s60-item-points" ); |
|
194 _LIT8( KTracksterType, "trackstertype" ); |
|
195 _LIT8( KTypeContainer, "container" ); |
|
196 _LIT8( KTypePreview, "preview" ); |
|
197 }*/ |
|
198 /* namespace anim |
|
199 { |
|
200 _LIT8(KS60ZoomingFactor, "_s60-zooming-factor"); |
|
201 _LIT8(KS60ZoomingTime, "_s60-zooming-time"); |
|
202 _LIT8(KS60StartDelay, "_s60-start-delay"); |
|
203 _LIT8(KS60AnimationDelay, "_s60-animation-delay"); |
|
204 _LIT8(KS60LoopAmount, "_s60-loop-amount"); |
|
205 _LIT8(KS60SmoothEnding, "_s60-smooth-ending"); |
|
206 _LIT8(KS60HighlightAnimation, "_s60-highlight-animation"); |
|
207 _LIT8(KS60FocusAnimationTime, "_s60-focus-animation-time"); |
|
208 _LIT8(KS60HWAcceleration, "_s60-hw-acceleration"); |
|
209 }*/ |
|
210 namespace menu |
|
211 { |
|
212 namespace menutype |
|
213 { |
|
214 // _LIT8(KMenuOptions, "menuoptions"); |
|
215 _LIT8(KMenuOptionsNoTaskSwapper, "menuoptionsnotaskswapper"); |
|
216 } |
|
217 _LIT8(KMenuItem, "menuitem" ); |
|
218 _LIT8(KDynMenuItem, "dynmenuitem" ); |
|
219 _LIT8(KMenuExtension, "menuextension" ); |
|
220 _LIT8(KMenuType, "menutype"); |
|
221 _LIT8(KEvent, "event"); |
|
222 _LIT8(KLabel, "label"); |
|
223 // _LIT8(KSelectionType, "selectiontype"); |
|
224 _LIT8(KChecked, "checked"); |
|
225 // _LIT8(KMSKDotImage8,"#mskdot"); |
|
226 _LIT(KMSKDotImage16,"#mskdot"); |
|
227 // _LIT(KMSKDialerImage, "#dialer"); |
|
228 _LIT8(KItemType, "type"); |
|
229 } |
|
230 namespace listquerydialog |
|
231 { |
|
232 _LIT8(KListQueryDialog, "listquerydialog" ); |
|
233 _LIT8(KS60Heading, "_s60-heading"); |
|
234 } |
|
235 namespace softkey |
|
236 { |
|
237 _LIT8(KNodeName, "softkey"); |
|
238 _LIT8(KTypeAttribute,"type"); |
|
239 _LIT8(KModeAttribute,"mode"); |
|
240 namespace type |
|
241 { |
|
242 _LIT8(KLeft, "left"); |
|
243 _LIT8(KRight, "right"); |
|
244 _LIT8(KMiddle, "middle"); |
|
245 } |
|
246 namespace mode |
|
247 { |
|
248 _LIT8(KModeCallActive, "mode_callactive"); |
|
249 _LIT8(KModeCallInactive, "mode_callinactive"); |
|
250 _LIT8(KModeEdit, "mode_edit"); |
|
251 } |
|
252 } |
|
253 namespace text |
|
254 { |
|
255 // _LIT8(KLabel, "label"); |
|
256 } |
|
257 namespace image |
|
258 { |
|
259 _LIT8(KPath, "path"); |
|
260 _LIT8(KMaskPath, "maskpath"); |
|
261 _LIT8(KMaskInverted, "maskinverted"); |
|
262 _LIT8(KS60AspectRatio, "_s60-aspect-ratio"); |
|
263 _LIT8(KPreserve, "preserve"); |
|
264 } |
|
265 namespace clock |
|
266 { |
|
267 _LIT8(KS60Format, "_s60-format"); |
|
268 namespace format |
|
269 { |
|
270 _LIT8(KDigital, "digital"); |
|
271 _LIT8(KAnalog, "analog"); |
|
272 // _LIT8(KLocale, "locale"); |
|
273 } |
|
274 |
|
275 _LIT8(KS60AmPmFontSize, "_s60-ampm-font-size" ); |
|
276 _LIT8(KS60DigitalFontSize, "_s60-digital-font-size"); |
|
277 _LIT8( KS60DateFontSize, "_s60-date-font-size" ); |
|
278 } |
|
279 namespace volumecontrol |
|
280 { |
|
281 _LIT8( KMinRange, "minrange" ); |
|
282 _LIT8( KMaxRange, "maxrange" ); |
|
283 _LIT8( KSlider, "slider" ); |
|
284 _LIT8( KIncrease, "increase" ); |
|
285 _LIT8( KDecrease, "decrease" ); |
|
286 _LIT8( KMute, "mute" ); |
|
287 _LIT8( KVolumeLevelAdjustment, "_s60-volume-level-adjustment" ); |
|
288 } |
|
289 namespace action |
|
290 { |
|
291 _LIT8(KActions, "actions"); |
|
292 _LIT8(KAction, "action"); |
|
293 _LIT8(KProperty, "property"); |
|
294 _LIT8(KName, "name"); |
|
295 _LIT8(KValue, "value"); |
|
296 _LIT8(KTrigger, "trigger"); |
|
297 _LIT8(KEvent, "event"); |
|
298 namespace trigger |
|
299 { |
|
300 _LIT8(KName, "name"); |
|
301 _LIT8(KDelay, "delay"); |
|
302 namespace name |
|
303 { |
|
304 _LIT8(KLeft, "left"); |
|
305 _LIT8(KRight, "right"); |
|
306 _LIT8(KUp, "up"); |
|
307 _LIT8(KDown, "down"); |
|
308 _LIT8(KDownAndUp, "downup"); |
|
309 _LIT8(KActivate, "activate"); |
|
310 _LIT8(KHold, "hold"); |
|
311 // _LIT8(KHover, "hover"); |
|
312 _LIT8(KFocus, "focus"); |
|
313 _LIT8(KPassiveFocus, "passivefocus"); |
|
314 _LIT8(KGainFocus, "gainfocus"); |
|
315 _LIT8(KLoseFocus, "losefocus"); |
|
316 _LIT8(KKeyEvent, "keyevent"); |
|
317 _LIT8(KViewActivate, "viewactivate"); |
|
318 _LIT8(KViewDeactivate, "viewdeactivate"); |
|
319 // _LIT8(KStartup, "startup"); |
|
320 // _LIT8(KShutdown, "shutdown"); |
|
321 _LIT8(KScreenDeviceChange, "screendevicechange"); |
|
322 // _LIT8(KUiDefinitionModificationStart, "uidefinitionmodificationstart"); |
|
323 // _LIT8(KUiDefinitionModificationEnd, "uidefinitionmodificationend"); |
|
324 _LIT8(KForeground, "foreground"); |
|
325 _LIT8(KBackground, "background"); |
|
326 _LIT8(KStylus, "stylus"); |
|
327 _LIT8(KGainVisualisation, "gainvisualisation"); |
|
328 _LIT8(KLoseVisualisation, "losevisualisation"); |
|
329 /*_LIT8(KGainFocusNotification, "gainfocusnotification");*/ |
|
330 _LIT8(KSwipe, "swipe"); |
|
331 _LIT8(KSizeChanged, "sizechanged"); |
|
332 _LIT8(KWidgetAmount, "widgetamount"); |
|
333 _LIT8(KTitleToScroll, "titletoscroll"); |
|
334 _LIT8(KTitleScrolled, "titlescrolled"); |
|
335 _LIT8(KTitleIndex, "titleindex"); |
|
336 /*_LIT8(KViewPagesCountChanged, "viewpagescountchanged");*/ |
|
337 _LIT8(KCallState, "callstate"); |
|
338 /*_LIT8(KViewAdditionCompleted, "viewadded" );*/ |
|
339 _LIT8(KEditMode, "editmode" ); |
|
340 |
|
341 namespace swipe |
|
342 { |
|
343 _LIT8(KDirection, "direction"); |
|
344 namespace direction |
|
345 { |
|
346 _LIT8(KLeft, "left"); |
|
347 _LIT8(KRight, "right"); |
|
348 } |
|
349 } |
|
350 namespace stylus |
|
351 { |
|
352 _LIT8(KStylusState, "stylusstate"); |
|
353 _LIT8(KStylusEventType, "eventtype"); |
|
354 } |
|
355 namespace keyevent |
|
356 { |
|
357 _LIT8(KKeyCode, "keycode"); |
|
358 _LIT8(KScanCode, "scancode"); |
|
359 _LIT8(KModifiers, "modifiers"); |
|
360 _LIT8(KEventType, "eventtype"); |
|
361 _LIT8(KRepeats, "repeats"); |
|
362 } |
|
363 namespace uidefinitionmodification |
|
364 { |
|
365 _LIT8(KReason, "reason"); |
|
366 namespace reason |
|
367 { |
|
368 // _LIT8(KThemeActivated, "themeactivated"); |
|
369 // _LIT8(KDisplaySwitch, "displayswitch"); |
|
370 _LIT8(KLandscape, "landscape"); |
|
371 _LIT8(KPortrait, "portrait"); |
|
372 // _LIT8(KResolutionChange, "resolutionchange"); |
|
373 // _LIT8(KLanguageSwitch, "languageswitch"); |
|
374 } |
|
375 } |
|
376 namespace callstate |
|
377 { |
|
378 _LIT8(KActive, "active"); |
|
379 _LIT8(KInActive, "inactive"); |
|
380 } |
|
381 namespace editmode |
|
382 { |
|
383 _LIT8(KEnter, "enter"); |
|
384 _LIT8(KExit, "exit"); |
|
385 } |
|
386 /*namespace viewpagescountchanged |
|
387 { |
|
388 _LIT8( KInfo, "info" ); |
|
389 namespace info |
|
390 { |
|
391 _LIT8( KInfoMax, "max" ); |
|
392 _LIT8( KInfoMin, "min" ); |
|
393 _LIT8( KInfoMid, "mid" ); |
|
394 _LIT8( KInfoMinMax, "minmax" ); |
|
395 } |
|
396 }*/ |
|
397 /*namespace viewadditioncompleted |
|
398 { |
|
399 _LIT8( KAddedViewActivated, "activated" ); |
|
400 }*/ |
|
401 /* namespace uisettingsmodification |
|
402 { |
|
403 _LIT8(KReason, "reason"); |
|
404 namespace reason |
|
405 { |
|
406 _LIT8(KSettingsUpdated, "settingsupdated"); |
|
407 } |
|
408 }*/ |
|
409 } |
|
410 } |
|
411 namespace event |
|
412 { |
|
413 _LIT8(KSystemPrefix, "system/"); |
|
414 _LIT8(KName, "name"); |
|
415 _LIT8(KSetFocus, "system/setfocus"); |
|
416 _LIT8(KSetInitialFocus, "system/setinitialfocus"); |
|
417 _LIT8(KSetPassiveFocus, "system/setpassivefocus"); |
|
418 _LIT8(KSetActiveFocus, "system/setactivefocus"); |
|
419 _LIT8(KResetPassiveFocus, "system/resetpassivefocus"); |
|
420 _LIT8(KSetEditMode, "system/seteditmode"); |
|
421 _LIT8(KResetEditMode, "system/reseteditmode"); |
|
422 _LIT8(KClearPassiveFocuses, "system/clearpassivefocuses"); |
|
423 _LIT8(KResetStylusCounter, "system/resetstyluscounter"); |
|
424 _LIT8(KRunAddWidgetQuery, "system/runaddwidgetquery"); |
|
425 // _LIT8(KRunRemoveWidgetQuery, "system/runremovewidgetquery"); |
|
426 _LIT8(KRemoveFocusedWidget, "system/removefocusedwidget"); |
|
427 _LIT8(KRemoveWidget, "system/removewidget"); |
|
428 _LIT8(KAddWidget, "system/addwidget"); |
|
429 _LIT8(KRunFullScreenEffect, "system/runfullscreeneffect"); |
|
430 _LIT8(KActivateView, "system/activateview"); |
|
431 _LIT8(KActivateNextView, "system/activatenextview"); |
|
432 _LIT8(KActivatePreviousView, "system/activatepreviousview"); |
|
433 _LIT8(KAddView,"system/addview"); |
|
434 _LIT8(KRemoveView,"system/removeview"); |
|
435 /*_LIT8(KFocusNext, "system/focusnext"); |
|
436 _LIT8(KFocusPrevious, "system/focusprevious");*/ |
|
437 _LIT8(KActivate, "system/activate"); |
|
438 _LIT8(KDeactivate, "system/deactivate"); |
|
439 _LIT8(KExit, "system/exitapplication"); |
|
440 _LIT8(KSet, "system/set"); |
|
441 /*_LIT8(KUiDefinitionModificationStart, "system/uidefinitionmodificationstart"); |
|
442 _LIT8(KUiDefinitionModificationEnd, "system/uidefinitionmodificationend"); |
|
443 _LIT8(KUiSettingsModificationStart, "system/uisettingsmodificationstart"); |
|
444 _LIT8(KUiSettingsModificationEnd, "system/uisettingsmodificationend"); */ |
|
445 _LIT8(KRestartTriggerTimer, "system/restarttriggertimer" ); |
|
446 _LIT8(KCancelTriggerTimer, "system/canceltriggertimer" ); |
|
447 /*_LIT8(KNotifyFocus, "system/notifyfocus" ); */ |
|
448 _LIT8(KTryDisplayingMenu, "system/trydisplayingmenu"); |
|
449 _LIT8(KTryDisplayingListQueryDialog, "system/trydisplayinglistquerydialog"); |
|
450 _LIT8(KTryDisplayingStylusPopup, "system/trydisplayingstyluspopup"); |
|
451 _LIT8(KToggleWidgetsVisibilty, "system/togglewidgetsvisibilty"); |
|
452 /*_LIT8(KStoreFocus, "system/storefocus"); |
|
453 _LIT8(KRestoreFocus, "system/restorefocus");*/ |
|
454 _LIT8(KSetWallpaper, "system/setwallpaper"); |
|
455 _LIT8(KActivateSelectedItem, "system/activateselecteditem"); |
|
456 _LIT8(KDestination, "destination"); |
|
457 _LIT8(KBroadcast, "broadcast"); |
|
458 _LIT8(KReportEnterEditMode, "system/reportentereditmode" ); |
|
459 _LIT8(KReportExitEditMode, "system/reportexiteditmode" ); |
|
460 namespace systemset |
|
461 { |
|
462 _LIT8(KId, "id"); |
|
463 _LIT8(KPseudoClass, "pseudoclass"); |
|
464 _LIT8(KName, "name"); |
|
465 _LIT8(KValue, "value"); |
|
466 _LIT8(KType, "type"); |
|
467 _LIT8(KUnit, "unit"); |
|
468 _LIT8(KClass, "class"); |
|
469 namespace type |
|
470 { |
|
471 _LIT8(KNumeric, "numeric"); |
|
472 _LIT8(KString, "string"); |
|
473 _LIT8(KAttribute, "attribute"); |
|
474 _LIT8(KRGB, "rgb"); |
|
475 _LIT8(KUrl, "url"); |
|
476 } |
|
477 } |
|
478 } |
|
479 } |
|
480 namespace style |
|
481 { |
|
482 namespace common |
|
483 { |
|
484 _LIT8(KDisplay, "display"); |
|
485 _LIT8(KNavIndex, "nav-index"); |
|
486 _LIT8(KS60NavLooping, "_s60-nav-looping"); |
|
487 _LIT8(KFocus, "focus"); |
|
488 _LIT8(KPressedDown, "presseddown"); |
|
489 _LIT8(KPassiveFocus, "passivefocus"); |
|
490 _LIT8(KHold, "hold"); |
|
491 _LIT8(KActive, "active"); |
|
492 _LIT8(KEdit, "edit"); |
|
493 namespace edit |
|
494 { |
|
495 _LIT8(KEditable, "editable"); |
|
496 } |
|
497 namespace display |
|
498 { |
|
499 _LIT8(KBlock, "block"); |
|
500 _LIT8(KNone, "none"); |
|
501 } |
|
502 /* namespace focus |
|
503 { |
|
504 _LIT8(KSensitive, "sensitive"); |
|
505 _LIT8(KNone, "none"); |
|
506 }*/ |
|
507 _LIT8(KS60DisplayPriority, "_s60-display-priority"); |
|
508 _LIT8(KVisibility, "visibility"); |
|
509 namespace visibility |
|
510 { |
|
511 _LIT8(KVisible, "visible"); |
|
512 _LIT8(KHidden, "hidden"); |
|
513 _LIT8(KBlank, "blank"); |
|
514 } |
|
515 // _LIT8(KS60Orientation, "_s60-orientation"); |
|
516 /* namespace s60_orientation |
|
517 { |
|
518 _LIT8(KVertical, "vertical"); |
|
519 _LIT8(KHorizontal, "horizontal"); |
|
520 }*/ |
|
521 _LIT8(KBlockProgression, "block-progression"); |
|
522 namespace block_progression |
|
523 { |
|
524 _LIT8(KTB, "tb"); |
|
525 _LIT8(KBT, "bt"); |
|
526 _LIT8(KRL, "rl"); |
|
527 _LIT8(KLR, "lr"); |
|
528 } |
|
529 _LIT8(KDirection, "direction"); |
|
530 namespace direction |
|
531 { |
|
532 _LIT8(KLTR, "ltr"); |
|
533 _LIT8(KRTL, "rtl"); |
|
534 } |
|
535 _LIT8(KWidth, "width"); |
|
536 _LIT8(KHeight, "height"); |
|
537 _LIT8(KMarginTop, "margin-top"); |
|
538 _LIT8(KMarginRight, "margin-right"); |
|
539 _LIT8(KMarginBottom, "margin-bottom"); |
|
540 _LIT8(KMarginLeft, "margin-left"); |
|
541 _LIT8(KBorderWidth, "border-width"); |
|
542 namespace border_width |
|
543 { |
|
544 _LIT8(KThin, "thin"); |
|
545 _LIT8(KMedium, "medium"); |
|
546 // _LIT8(KThick, "thick"); |
|
547 } |
|
548 _LIT8(KBorderTopWidth, "border-top-width"); |
|
549 _LIT8(KBorderRightWidth, "border-right-width"); |
|
550 _LIT8(KBorderBottomWidth, "border-bottom-width"); |
|
551 _LIT8(KBorderLeftWidth, "border-left-width"); |
|
552 _LIT8(KPaddingTop, "padding-top"); |
|
553 _LIT8(KPaddingRight, "padding-right"); |
|
554 _LIT8(KPaddingBottom, "padding-bottom"); |
|
555 _LIT8(KPaddingLeft, "padding-left"); |
|
556 _LIT8(KPosition, "position"); |
|
557 namespace position |
|
558 { |
|
559 _LIT8(KAbsolute, "absolute"); |
|
560 _LIT8(KStatic, "static"); |
|
561 // _LIT8(KFixed, "fixed"); |
|
562 _LIT8(KRelative, "relative"); |
|
563 _LIT8(KFloating, "floating"); |
|
564 // _LIT8(KInherit, "inherit"); |
|
565 } |
|
566 _LIT8(KTop, "top"); |
|
567 _LIT8(KRight, "right"); |
|
568 _LIT8(KBottom, "bottom"); |
|
569 _LIT8(KLeft, "left"); |
|
570 _LIT8(KMinWidth, "min-width"); |
|
571 _LIT8(KMaxWidth, "max-width"); |
|
572 _LIT8(KMinHeight, "min-height"); |
|
573 _LIT8(KMaxHeight, "max-height"); |
|
574 _LIT8(KOverflow, "overflow"); |
|
575 // _LIT8(KTextOverflowMode, "text-overflow-mode"); |
|
576 _LIT8(KZIndex, "z-index"); |
|
577 _LIT8(KAuto, "auto"); |
|
578 _LIT8(KAdaptive, "adaptive"); |
|
579 _LIT8(KAppearance, "appearance"); |
|
580 } |
|
581 }//style |
|
582 namespace appearance |
|
583 { |
|
584 namespace common |
|
585 { |
|
586 //Color and background properties |
|
587 _LIT8(KColor, "color"); |
|
588 _LIT8(KEffectsColor, "font-effects-color"); |
|
589 // _LIT8(KHighlightColor, "highlight-color"); |
|
590 _LIT8(KBackGroundColor, "background-color"); |
|
591 _LIT8(KFocusBackground, "focus-background"); |
|
592 _LIT8(KBackGroundImage, "background-image"); |
|
593 _LIT8(KBackGroundSize, "background-size"); |
|
594 _LIT8(KBackGroundRepeat, "background-repeat"); |
|
595 _LIT8(KFallBackImage, "fallback-image"); |
|
596 namespace backgroundrepeat |
|
597 { |
|
598 _LIT8(KRepeat, "repeat"); |
|
599 _LIT8(KRepeatX, "repeat-x"); |
|
600 _LIT8(KRepeatY, "repeat-y"); |
|
601 _LIT8(KSpace, "space"); |
|
602 _LIT8(KNoRepeat, "no-repeat"); |
|
603 } |
|
604 _LIT8(KBackGroundPosition, "background-position"); |
|
605 namespace backgroundposition |
|
606 { |
|
607 _LIT8(KLeft, "left"); |
|
608 _LIT8(KRight, "right"); |
|
609 _LIT8(KTop, "top"); |
|
610 _LIT8(KBottom, "bottom"); |
|
611 // _LIT8(KCenter, "center"); |
|
612 } |
|
613 // Border properties |
|
614 _LIT8(KBorderStyle, "border-style"); |
|
615 _LIT8(KBorderTopStyle, "border-top-style"); |
|
616 _LIT8(KBorderRightStyle, "border-right-style"); |
|
617 _LIT8(KBorderBottomStyle,"border-bottom-style"); |
|
618 _LIT8(KBorderLeftStyle, "border-left-style"); |
|
619 namespace borderstyle |
|
620 { |
|
621 // _LIT8(KNone, "none"); |
|
622 // _LIT8(KHidden, "hidden"); |
|
623 _LIT8(KDotted, "dotted"); |
|
624 // _LIT8(KDashed, "dashed"); |
|
625 _LIT8(KSolid, "solid"); |
|
626 // _LIT8(KDouble, "double"); |
|
627 // _LIT8(KDotDash, "dot-dash"); |
|
628 // _LIT8(KDotDotDash, "dot-dot-dash"); |
|
629 // _LIT8(KWave, "wave"); |
|
630 _LIT8(KGroove, "groove"); |
|
631 _LIT8(KRidge, "ridge"); |
|
632 _LIT8(KInset, "inset"); |
|
633 _LIT8(KOutset, "outset"); |
|
634 } |
|
635 _LIT8(KBorderColor, "border-color"); |
|
636 _LIT8(KBorderLeftColor, "border-left-color"); |
|
637 _LIT8(KBorderRightColor, "border-right-color"); |
|
638 _LIT8(KBorderTopColor, "border-top-color"); |
|
639 _LIT8(KBorderBottomColor, "border-bottom-color"); |
|
640 _LIT8(KBorderImage, "border-image"); |
|
641 namespace borderimage |
|
642 { |
|
643 _LIT8(KStretch, "stretch"); |
|
644 _LIT8(KRepeat, "repeat"); |
|
645 _LIT8(KRound, "round"); |
|
646 } |
|
647 //Font properties |
|
648 _LIT8(KFontFamily, "font-family"); |
|
649 _LIT8(KFontSize, "font-size"); |
|
650 _LIT8(KFontWeight, "font-weight"); |
|
651 _LIT8(KFontLineSpace, "font-line-space"); |
|
652 namespace fontweight |
|
653 { |
|
654 _LIT8(KBold, "bold"); |
|
655 } |
|
656 _LIT8(KFontStyle, "font-style"); |
|
657 namespace fontstyle |
|
658 { |
|
659 _LIT8(KItalic, "italic"); |
|
660 } |
|
661 _LIT8(KTextDecoration, "text-decoration"); |
|
662 namespace textdecoration |
|
663 { |
|
664 _LIT8(KUnderline, "underline"); |
|
665 _LIT8(KLinethrough, "line-through"); |
|
666 } |
|
667 _LIT8(KTextAlign, "text-align"); |
|
668 namespace textalign |
|
669 { |
|
670 _LIT8( KAlignLeft,"left"); |
|
671 _LIT8( KAlignRight,"right"); |
|
672 _LIT8( KAlignCenter,"center"); |
|
673 _LIT8( KAlignJustify,"justify"); |
|
674 } |
|
675 _LIT8(KS60TextVAlign, "_s60-text-valign"); |
|
676 namespace textvalign |
|
677 { |
|
678 _LIT8( KAlignTop, "top"); |
|
679 // _LIT8( KAlignCenter, "center"); |
|
680 _LIT8( KAlignBottom, "bottom"); |
|
681 } |
|
682 _LIT8(KTextEffects, "font-effects"); |
|
683 namespace fonteffects |
|
684 { |
|
685 _LIT8( KEffectsAlgorithmicbold, "algorithmicbold"); |
|
686 _LIT8( KEffectsDropshadow, "dropshadow"); |
|
687 _LIT8( KEffectsOutline, "outline"); |
|
688 _LIT8( KEffectsEmbossed, "embossed"); |
|
689 _LIT8( KEffectsEngraved, "engraved"); |
|
690 _LIT8( KEffectsSoftedge, "softedge"); |
|
691 } |
|
692 _LIT8(KTextOverflowMode, "text-overflow-mode"); |
|
693 namespace textoverflow |
|
694 { |
|
695 _LIT8(KClipMode, "clip"); |
|
696 // _LIT8(KEllipsisMode, "ellipsis"); |
|
697 _LIT8(KWrapMode,"wrap"); |
|
698 _LIT8(KMaxLineAmount,"max-line-amount"); |
|
699 } |
|
700 _LIT8(KWhiteSpaceCollapse, "white-space-collapse"); |
|
701 namespace whitespace |
|
702 { |
|
703 // _LIT8(KPreserve, "preserve"); |
|
704 _LIT8(KCollapse, "collapse"); |
|
705 _LIT8(KPreserveBreaks, "preserve-breaks"); |
|
706 _LIT8(KDiscard, "discard"); |
|
707 } |
|
708 //View properties missing |
|
709 }//common |
|
710 } |
|
711 } |
|
712 |
|
713 // Class declaration |
|
714 /** |
|
715 * Xuikon property class implementation. |
|
716 * |
|
717 * @ingroup group_xnlayoutengine |
|
718 * @lib ?library |
|
719 * @since Series 60 3.1 |
|
720 */ |
|
721 class CXnProperty : public CBase |
|
722 { |
|
723 public: |
|
724 // Constructors and destructor |
|
725 |
|
726 /** |
|
727 * Two-phased constructor. |
|
728 * |
|
729 * @param aProperty DOM property to embed |
|
730 */ |
|
731 IMPORT_C static CXnProperty* NewL( CXnDomProperty* aProperty ); |
|
732 |
|
733 /** |
|
734 * Two-phased constructor. |
|
735 * |
|
736 * @param aName Property name |
|
737 * @param aPropertyValue Property value |
|
738 * @param aStringPool String pool to use |
|
739 */ |
|
740 IMPORT_C static CXnProperty* NewL( |
|
741 const TDesC8& aName, |
|
742 CXnDomPropertyValue* aPropertyValue, |
|
743 CXnDomStringPool& aStringPool ); |
|
744 |
|
745 /** |
|
746 * Two-phased constructor. |
|
747 * |
|
748 * @param aName Property name |
|
749 * @param aPropertyValue Property value |
|
750 * @param aValueType Property value type |
|
751 * @param aStringPool String pool to use |
|
752 */ |
|
753 IMPORT_C static CXnProperty* NewL( |
|
754 const TDesC8& aPropertyName, |
|
755 const TDesC8& aPropertyValue, |
|
756 CXnDomPropertyValue::TPrimitiveValueType aValueType, |
|
757 CXnDomStringPool& aStringPool ); |
|
758 |
|
759 /** |
|
760 * Two-phased constructor. |
|
761 * |
|
762 * @param aName Property name |
|
763 * @param aPropertyValue Property value |
|
764 * @param aValueType Property value type |
|
765 * @param aStringPool String pool to use |
|
766 */ |
|
767 IMPORT_C static CXnProperty* NewL( |
|
768 const TDesC8& aPropertyName, |
|
769 TReal aPropertyValue, |
|
770 CXnDomPropertyValue::TPrimitiveValueType aValueType, |
|
771 CXnDomStringPool& aStringPool ); |
|
772 |
|
773 /** |
|
774 * Two-phased constructor. Does not take ownership of the DOM property |
|
775 * |
|
776 * @param aProperty DOM property to embed |
|
777 */ |
|
778 static CXnProperty* NewSharedL( CXnDomProperty* aProperty ); |
|
779 |
|
780 /** |
|
781 * Destructor. |
|
782 */ |
|
783 virtual ~CXnProperty(); |
|
784 |
|
785 public: |
|
786 // new functions |
|
787 |
|
788 /** |
|
789 * Compares two propertys |
|
790 * |
|
791 * @since Series 60 3.2 |
|
792 * @return ETrue if properties equals, EFalse otherwise |
|
793 */ |
|
794 IMPORT_C TBool EqualsL( CXnProperty& aProperty ) const; |
|
795 |
|
796 /** |
|
797 * Get the embedded DOM property |
|
798 * |
|
799 * @since Series 60 3.1 |
|
800 * @return Embedded DOM property |
|
801 */ |
|
802 IMPORT_C CXnDomProperty* Property(); |
|
803 |
|
804 /** |
|
805 * Get the value of the property as a 16-bit descriptor. Ownership is |
|
806 * transferred to caller. |
|
807 * |
|
808 * @since Series 60 3.1 |
|
809 * @return String value of the property |
|
810 */ |
|
811 IMPORT_C HBufC* StringValueL(); |
|
812 |
|
813 /** |
|
814 * Get the value of the property as an 8-bit descriptor. |
|
815 * |
|
816 * @since Series 60 3.1 |
|
817 * @return String value of the property |
|
818 */ |
|
819 IMPORT_C const TDesC8& StringValue(); |
|
820 |
|
821 /** |
|
822 * Get the value of the property as a number |
|
823 * |
|
824 * @since Series 60 3.1 |
|
825 * @return Numeric value of the property |
|
826 */ |
|
827 IMPORT_C TReal FloatValueL(); |
|
828 |
|
829 /** |
|
830 * Clone the property |
|
831 * |
|
832 * @since Series 60 3.1 |
|
833 * @return Clone of the property |
|
834 */ |
|
835 IMPORT_C CXnProperty* CloneL(); |
|
836 |
|
837 private: |
|
838 /** |
|
839 * C++ default constructor. |
|
840 */ |
|
841 CXnProperty(); |
|
842 |
|
843 /** |
|
844 * Two-phased constructor. |
|
845 * |
|
846 * @param aProperty DOM property to embed |
|
847 */ |
|
848 void ConstructL( CXnDomProperty* aProperty ); |
|
849 |
|
850 /** |
|
851 * Two-phased constructor. |
|
852 * |
|
853 * @param aName Property name |
|
854 * @param aPropertyValue Property value |
|
855 * @param aStringPool String pool to use |
|
856 */ |
|
857 void ConstructL( |
|
858 const TDesC8& aName, |
|
859 CXnDomPropertyValue* aPropertyValue, |
|
860 CXnDomStringPool& aStringPool ); |
|
861 |
|
862 /** |
|
863 * Two-phased constructor. |
|
864 * |
|
865 * @param aName Property name |
|
866 * @param aPropertyValue Property value |
|
867 * @param aValueType Property value type |
|
868 * @param aStringPool String pool to use |
|
869 */ |
|
870 void ConstructL( |
|
871 const TDesC8& aPropertyName, |
|
872 const TDesC8& aPropertyValue, |
|
873 CXnDomPropertyValue::TPrimitiveValueType aValueType, |
|
874 CXnDomStringPool& aStringPool ); |
|
875 |
|
876 /** |
|
877 * Two-phased constructor. |
|
878 * |
|
879 * @param aName Property name |
|
880 * @param aPropertyValue Property value |
|
881 * @param aValueType Property value type |
|
882 * @param aStringPool String pool to use |
|
883 */ |
|
884 void ConstructL( |
|
885 const TDesC8& aPropertyName, |
|
886 TReal aPropertyValue, |
|
887 CXnDomPropertyValue::TPrimitiveValueType aValueType, |
|
888 CXnDomStringPool& aStringPool ); |
|
889 |
|
890 /** |
|
891 * Two-phased constructor. Does not take ownership of the DOM property |
|
892 * |
|
893 * @param aProperty DOM property to embed |
|
894 */ |
|
895 void ConstructSharedL( CXnDomProperty* aProperty ); |
|
896 |
|
897 private: |
|
898 // Data |
|
899 |
|
900 /** |
|
901 * embedded DOM property. |
|
902 * Own or Not own, depending on the iIsDomPropertyOwned flag |
|
903 */ |
|
904 CXnDomProperty* iProperty; |
|
905 |
|
906 /** |
|
907 * flag indicating whether the DOM property is owned by the |
|
908 * CXnProperty object |
|
909 */ |
|
910 TBool iIsDomPropertyOwned; |
|
911 }; |
|
912 |
|
913 #endif |