author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Tue, 14 Sep 2010 21:59:06 +0300 | |
branch | RCL_3 |
changeset 46 | bd83ceabce89 |
parent 44 | ecbabf52600f |
child 56 | 8152b1f1763a |
permissions | -rw-r--r-- |
44 | 1 |
/* |
2 |
* Copyright (c) 2002-2005 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: peninput vkb laf manager |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
||
19 |
#ifndef C_PENINPUTVKBCNLAFDATAMGR_H |
|
20 |
#define C_PENINPUTVKBCNLAFDATAMGR_H |
|
21 |
||
22 |
// System includes |
|
23 |
#include <e32base.h> |
|
24 |
#include <w32std.h> |
|
25 |
#include <AknFepGlobalEnums.h> |
|
26 |
// User includes |
|
27 |
||
28 |
// Forward decalaration |
|
29 |
||
30 |
// laf type definition |
|
31 |
enum TPeninputCnQwtLayoutType |
|
32 |
{ |
|
33 |
ELayoutNone = -1, |
|
34 |
ELayout10x3, |
|
35 |
ELayout11x3, |
|
36 |
ELayout11x4, |
|
37 |
ELayout10x3_withCandi, |
|
38 |
ELayout10x4 |
|
39 |
}; |
|
40 |
||
41 |
enum TPeninputCnCellType |
|
42 |
{ |
|
43 |
EVkbCangjieAndPinying, // 10 |
|
44 |
EVkbStroke, // 10 |
|
45 |
EVkbZhuyin, // 11 |
|
46 |
EVkbLatin_Zhuyin, // 11 |
|
47 |
EVkbLatin, // 10 |
|
48 |
EVkbAccent, |
|
49 |
EVkbNumber, // 10 |
|
50 |
EVkbNumber_Zhuyin, // 11 |
|
51 |
EVkbCangjieAndPinying_FSQ, // 10 |
|
52 |
EVkbStroke_FSQ, // 10 |
|
53 |
EVkbZhuyin_FSQ, // 11 |
|
54 |
EVkbLatin_FSQ, // 10 |
|
55 |
EVkbNumber_FSQ, // 10 |
|
56 |
EVkbLatin_Zhuyin_FSQ, // 11 |
|
57 |
EVkbNumber_Zhuyin_FSQ // 11 |
|
58 |
}; |
|
59 |
||
60 |
enum TPeninputCnVkbLafOption |
|
61 |
{ |
|
62 |
EOptionNone, // Default option setting |
|
63 |
EOption3CellRange = 0x0001, |
|
64 |
EOptionWithSmily = 0x0002 |
|
65 |
}; |
|
66 |
||
67 |
struct TPeninputCnButtonLayoutData |
|
68 |
{ |
|
69 |
TRect iRect; |
|
70 |
TRect iInnerRect; |
|
71 |
}; |
|
72 |
||
73 |
struct TPeninputCnKeyLayoutData |
|
74 |
{ |
|
75 |
TRect iKaypadRect; |
|
76 |
RArray<TRect> iRects; |
|
77 |
RArray<TRect> iCharRects; |
|
78 |
TAknTextLineLayout iTextLayout; |
|
79 |
const CFont* iFont; |
|
80 |
}; |
|
81 |
||
82 |
struct TPeninputCnEntryLayoutData |
|
83 |
{ |
|
84 |
TRect iRect; |
|
85 |
TRect iPromptTextRect; |
|
86 |
TRect iTextRect; |
|
87 |
const CFont* iPromptTextFont; |
|
88 |
const CFont* iTextFont; |
|
89 |
}; |
|
90 |
||
91 |
struct TPeninputCnICFConfig |
|
92 |
{ |
|
93 |
TInt iLeftMargin; |
|
94 |
TInt iRightMargin; |
|
95 |
TInt iTopMargin; |
|
96 |
TInt iTextLineHeight; |
|
97 |
TInt iLineSpaceMargin; |
|
98 |
}; |
|
99 |
||
100 |
||
101 |
struct TPeninputCnRangeBarLayoutData |
|
102 |
{ |
|
103 |
TRect iRect; |
|
104 |
RArray<TPeninputCnButtonLayoutData> iCellDataArray; |
|
105 |
}; |
|
106 |
||
107 |
struct TPeninputCnSpaceIconLayoutDataEx |
|
108 |
{ |
|
109 |
TSize iIconOffset; // The offset to the left and top border of frame |
|
110 |
TInt iSideIconWidth; // The width of two sizes'subicon |
|
111 |
}; |
|
112 |
||
113 |
/* |
|
114 |
* Store LAF data for candidate list |
|
115 |
*/ |
|
116 |
struct TPeninputCnCandidateListLayoutData |
|
117 |
{ |
|
118 |
TSize iSelectionItemSize; |
|
119 |
TInt iSelectionHorMargin; |
|
120 |
TInt iSelectionVerMargin; |
|
121 |
TSize iSelectionNaviSize; |
|
122 |
TSize iSelectionNaviInnerSize; |
|
123 |
TAknTextLineLayout iSelectionTextLine; |
|
124 |
TAknTextLineLayout iSelectionPageTextLine; |
|
125 |
const CFont* iFont; |
|
126 |
}; |
|
127 |
||
128 |
/* |
|
129 |
* Stroe LAF data for tooltip box |
|
130 |
*/ |
|
131 |
struct TPeninputCnTooltipBoxLayoutData |
|
132 |
{ |
|
133 |
TRect iRect; |
|
134 |
TAknTextLineLayout iTooltipTextLayout; |
|
135 |
const CFont* iFont; |
|
136 |
}; |
|
137 |
||
138 |
class CPeninputCnQwtLayoutDataInfo : public CBase |
|
139 |
{ |
|
140 |
public: |
|
141 |
virtual ~CPeninputCnQwtLayoutDataInfo(); |
|
142 |
TPeninputCnButtonLayoutData iCloseButton; |
|
143 |
TPeninputCnButtonLayoutData iOptionButton; |
|
144 |
TPeninputCnEntryLayoutData iICF; |
|
145 |
TPeninputCnButtonLayoutData iMoveButton; |
|
146 |
TPeninputCnButtonLayoutData iLeftButton; |
|
147 |
TPeninputCnButtonLayoutData iRightButton; |
|
148 |
TPeninputCnButtonLayoutData iClearButton; |
|
149 |
TPeninputCnKeyLayoutData iKeypad; |
|
150 |
TPeninputCnButtonLayoutData iShiftButton; |
|
151 |
TPeninputCnRangeBarLayoutData iRangbar; |
|
152 |
TPeninputCnButtonLayoutData iSmillyButton; |
|
153 |
TPeninputCnButtonLayoutData iSpaceButton; |
|
154 |
TPeninputCnButtonLayoutData iEnterButton; |
|
155 |
TPeninputCnButtonLayoutData iSwitchButton; |
|
156 |
TRect iTitlebarRect; |
|
157 |
TRect iClientRect; |
|
158 |
TRect iQwtRect; |
|
159 |
TRect iPreviewWndRect; |
|
160 |
TRect iPreviewWndInnerRect; |
|
161 |
TAknTextLineLayout iPreviewWndText; |
|
162 |
CFont* iPreviewFont; |
|
163 |
TPeninputCnSpaceIconLayoutDataEx iSpaceIconLayout; |
|
164 |
||
165 |
/* |
|
166 |
* LAF data for candidate list |
|
167 |
*/ |
|
168 |
TPeninputCnCandidateListLayoutData iCandidateList; |
|
169 |
||
170 |
/* |
|
171 |
* LAF data for tooltip box |
|
172 |
*/ |
|
173 |
TPeninputCnTooltipBoxLayoutData iTooltipBox; |
|
46
bd83ceabce89
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
174 |
|
bd83ceabce89
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
175 |
/* |
bd83ceabce89
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
176 |
* LAF data for composition area |
bd83ceabce89
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
177 |
*/ |
bd83ceabce89
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
178 |
TRect iCompositionRect; |
44 | 179 |
}; |
180 |
||
181 |
class MPeninputCnLafDataBase |
|
182 |
{ |
|
183 |
public: |
|
184 |
virtual const TPeninputCnButtonLayoutData& ButtonLayoutData( TInt aButtonID ) const = 0; |
|
185 |
virtual const TPeninputCnEntryLayoutData& ICFLayoutData() const = 0; |
|
186 |
virtual const TPeninputCnKeyLayoutData& KeypadLayoutData() const = 0; |
|
187 |
virtual const TPeninputCnRangeBarLayoutData& RangbarLayoutData() const = 0; |
|
188 |
||
189 |
virtual const CPeninputCnQwtLayoutDataInfo& QwtLayoutData() const = 0; |
|
190 |
virtual void SetLayoutType( TInt aLayoutType ) = 0; |
|
191 |
virtual TInt LayoutType() const = 0; |
|
192 |
}; |
|
193 |
||
194 |
class MPeninputCnLafDataCommon : public MPeninputCnLafDataBase |
|
195 |
{ |
|
196 |
public: |
|
197 |
virtual ~MPeninputCnLafDataCommon(); |
|
198 |
void DestoryDataCommon(); |
|
199 |
const TPeninputCnButtonLayoutData& ButtonLayoutData( TInt aButtonID ) const; |
|
200 |
const TPeninputCnEntryLayoutData& ICFLayoutData() const ; |
|
201 |
const TPeninputCnKeyLayoutData& KeypadLayoutData() const ; |
|
202 |
const TPeninputCnRangeBarLayoutData& RangbarLayoutData() const; |
|
203 |
const CPeninputCnQwtLayoutDataInfo& QwtLayoutData() const; |
|
204 |
||
205 |
/* |
|
46
bd83ceabce89
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
206 |
* Get layout rect for composition area |
bd83ceabce89
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
207 |
* |
bd83ceabce89
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
208 |
* @param none |
bd83ceabce89
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
209 |
* @return rect of composition area |
bd83ceabce89
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
210 |
*/ |
bd83ceabce89
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
211 |
const TRect& compositionLayoutData() const; |
bd83ceabce89
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
212 |
|
bd83ceabce89
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
213 |
/* |
44 | 214 |
* Return layout data for candidate list; |
215 |
* |
|
216 |
* @return The layout data for candidate list |
|
217 |
*/ |
|
218 |
const TPeninputCnCandidateListLayoutData& CandidateListLayoutData() const; |
|
219 |
||
220 |
/* |
|
221 |
* Return layout data for tooltip box; |
|
222 |
* |
|
223 |
* @return The layout data for tooltip box |
|
224 |
*/ |
|
225 |
const TPeninputCnTooltipBoxLayoutData& TooltipBoxLayoutData() const; |
|
226 |
||
227 |
inline void SetLayoutType( TInt aLayoutType ); |
|
228 |
inline TInt LayoutType() const; |
|
229 |
inline void SetLafOption( TPeninputCnVkbLafOption aLafOption ); |
|
230 |
inline TPeninputCnVkbLafOption LafOption() const; |
|
231 |
void ConstructL(); |
|
232 |
TBool IsValid() const; |
|
233 |
protected: |
|
234 |
void GetTopAndBottomPaneInfo( const TRect& aParentWndRect, |
|
235 |
TInt aLayoutType, |
|
236 |
TInt aLayoutParam, |
|
237 |
CPeninputCnQwtLayoutDataInfo& aDataInfo ); |
|
238 |
virtual void ReadLafInfoL() = 0; |
|
239 |
||
240 |
TInt iLayoutType; |
|
241 |
TPeninputCnVkbLafOption iLafOption; |
|
242 |
RPointerArray<CPeninputCnQwtLayoutDataInfo> iLayoutDataInfo; |
|
243 |
}; |
|
244 |
||
245 |
class CPeninputCnLafDataVKB : public CBase, |
|
246 |
public MPeninputCnLafDataCommon |
|
247 |
||
248 |
{ |
|
249 |
public: |
|
250 |
static CPeninputCnLafDataVKB* NewL( TInt aLayoutType ); |
|
251 |
static CPeninputCnLafDataVKB* NewLC( TInt aLayoutType ); |
|
252 |
virtual ~CPeninputCnLafDataVKB(); |
|
253 |
||
254 |
protected: |
|
255 |
CPeninputCnLafDataVKB( TInt aLayoutType ); |
|
256 |
||
257 |
void ReadLafInfoL(); |
|
258 |
}; |
|
259 |
||
260 |
class CPeninputCnLafDataFSQ : public CBase, |
|
261 |
public MPeninputCnLafDataCommon |
|
262 |
||
263 |
{ |
|
264 |
public: |
|
265 |
static CPeninputCnLafDataFSQ* NewL( TInt aLayoutType ); |
|
266 |
static CPeninputCnLafDataFSQ* NewLC( TInt aLayoutType ); |
|
267 |
virtual ~CPeninputCnLafDataFSQ(); |
|
268 |
||
269 |
protected: |
|
270 |
CPeninputCnLafDataFSQ( TInt aLayoutType ); |
|
271 |
||
272 |
void ReadLafInfoL(); |
|
273 |
||
274 |
private: |
|
275 |
||
276 |
/** |
|
277 |
* Read LAF data for candidate list |
|
278 |
* |
|
279 |
* @param aRect the parent window's rect |
|
280 |
* @return candidate list layout data |
|
281 |
*/ |
|
282 |
TPeninputCnCandidateListLayoutData ReadLafForCandidateList( const TRect& aRect ); |
|
283 |
||
284 |
/** |
|
285 |
* Read LAF data for tooltip box |
|
286 |
* |
|
287 |
* @param aRect the parent window's rect |
|
288 |
* @return tooltip box layout data |
|
289 |
*/ |
|
290 |
TPeninputCnTooltipBoxLayoutData ReadLafForTooltipBox( const TRect& aRect ); |
|
291 |
}; |
|
292 |
||
293 |
/** |
|
294 |
* Peninput VKB data management class |
|
295 |
* This class manager the data of VKB |
|
296 |
* |
|
297 |
* @lib peninputgenericvkb.lib |
|
298 |
* @since S60 v3.2 |
|
299 |
*/ |
|
300 |
class CPeninputCnGenericVkbLafMgr : public CBase |
|
301 |
{ |
|
302 |
||
303 |
public: |
|
304 |
||
305 |
/** |
|
306 |
* Two-phased constructor |
|
307 |
* |
|
308 |
* @since S60 v3.2 |
|
309 |
* @return The pointer to CPeninputCnGenericVkbLafMgr object |
|
310 |
*/ |
|
311 |
static CPeninputCnGenericVkbLafMgr* NewL(); |
|
312 |
||
313 |
/** |
|
314 |
* Two-phased constructor |
|
315 |
* |
|
316 |
* @since S60 v3.2 |
|
317 |
* @return The pointer to CPeninputCnGenericVkbLafMgr object |
|
318 |
*/ |
|
319 |
static CPeninputCnGenericVkbLafMgr* NewLC(); |
|
320 |
||
321 |
/** |
|
322 |
* Destructor |
|
323 |
* |
|
324 |
* @since S60 v3.2 |
|
325 |
* @return None |
|
326 |
*/ |
|
327 |
virtual ~CPeninputCnGenericVkbLafMgr(); |
|
328 |
||
329 |
/** |
|
330 |
* ConstructL |
|
331 |
* |
|
332 |
* @since S60 v3.2 |
|
333 |
* @return None |
|
334 |
*/ |
|
335 |
void ConstructL(); |
|
336 |
||
337 |
/** |
|
338 |
* Set layout type |
|
339 |
* |
|
340 |
* @since S60 v3.2 |
|
341 |
* @param aLayoutType Layout type index |
|
342 |
* @return None |
|
343 |
*/ |
|
344 |
void SetInputModeL( TPluginInputMode aInputMode ); |
|
345 |
||
346 |
/** |
|
347 |
* Get layout type |
|
348 |
* |
|
349 |
* @since S60 v3.2 |
|
350 |
* @return Input mode |
|
351 |
*/ |
|
352 |
TPluginInputMode InputMode() const; |
|
353 |
||
354 |
/** |
|
355 |
* Set layout type |
|
356 |
* |
|
357 |
* @since S60 v3.2 |
|
358 |
* @param aLayoutType Layout type index |
|
359 |
* @return None |
|
360 |
*/ |
|
361 |
void SetLayoutType( TPeninputCnQwtLayoutType aLayoutType ); |
|
362 |
||
363 |
/** |
|
364 |
* Set option ( option change will cause reloading laf ) |
|
365 |
* |
|
366 |
* @since S60 v3.2 |
|
367 |
* @param aOption option type |
|
368 |
* @return None |
|
369 |
*/ |
|
370 |
void SetLafOption( TPeninputCnVkbLafOption aOption ); |
|
371 |
TPeninputCnVkbLafOption OptionType() const; |
|
372 |
||
373 |
/** |
|
374 |
* Get button laf data |
|
375 |
* |
|
376 |
* @since S60 v3.2 |
|
377 |
* @param aButtonID button id |
|
378 |
* @param aOutterRect button rect |
|
379 |
* @param aInnerRect button forground rect |
|
380 |
* @return None |
|
381 |
*/ |
|
382 |
void GetButtonRect( TPeninputCommonCtrlID aButtonID, |
|
383 |
TRect& aOutterRect, |
|
384 |
TRect& aInnerRect ); |
|
385 |
||
386 |
/** |
|
387 |
* Get key laf data |
|
388 |
* |
|
389 |
* @since S60 v3.2 |
|
390 |
* @param aColume the colume index of the key |
|
391 |
* @param aRow the row index of the key |
|
392 |
* @return Key rect |
|
393 |
*/ |
|
394 |
void GetKeyRect( TInt aColume, TInt aRow, TRect& aKeyRect, TRect& aCharRect ) const; |
|
395 |
const CFont* KeyTextFont() const; |
|
396 |
const TRect& KeypadRect() const; |
|
397 |
const TRect& ICFRect() const; |
|
398 |
const CFont* ICFPromptTextFont() const; |
|
399 |
const CFont* ICFTextFont() const; |
|
400 |
TAknTextLineLayout KeyTextLayout() const; |
|
401 |
void GetICFConfig( TPeninputCnICFConfig& aICFConfig ); |
|
402 |
const TRect& EntirePaneRect() const; |
|
403 |
const TRect& RangbarRect() const; |
|
404 |
TInt RangbarCellCount() const; |
|
405 |
void RangbarCellAt( TInt aIndex, TRect& aOutterRect, TRect& aInnerRect ); |
|
406 |
||
407 |
TPeninputCnQwtLayoutType LayoutTypeFromRowsColumns(const TInt aRows, const TInt aColumns); |
|
408 |
const TRect& TitlebarRect() const; |
|
409 |
||
410 |
TBool IsValid(); |
|
411 |
const TRect& ClientRect() const; |
|
412 |
||
413 |
/** |
|
414 |
* Get gap value for cell calc |
|
415 |
* |
|
416 |
* @since S60 v3.2 |
|
417 |
* @return gap value |
|
418 |
*/ |
|
419 |
static TSize GetCellSize( TPeninputCnCellType aCellType ); |
|
420 |
||
421 |
/** |
|
422 |
* Get gap value for cell calc |
|
423 |
* |
|
424 |
* @since S60 v3.2 |
|
425 |
* @return gap value |
|
426 |
*/ |
|
427 |
TInt CellAidGap( TPeninputCnCellType aCellType ) const; |
|
428 |
||
429 |
inline void GetPreviewWndRect( TRect& aOutRect, TRect& aInnerRect ) const; |
|
430 |
inline TAknTextLineLayout PreviewWndText() const; |
|
431 |
inline CFont* PreviewFont() const; |
|
432 |
inline TSize GetSpaceIconOffset() const; |
|
433 |
inline TInt GetSpaceSideIconWidth() const; |
|
434 |
||
435 |
/** |
|
436 |
* Return layout data for candidate list |
|
437 |
* |
|
438 |
* @return The layout data for candidate list |
|
439 |
*/ |
|
440 |
const TPeninputCnCandidateListLayoutData& CandidateListLayoutData() const; |
|
441 |
||
442 |
/* |
|
443 |
* Return layout data for candidate list |
|
444 |
* |
|
445 |
* @return The layout data for tooltip box |
|
446 |
*/ |
|
447 |
const TPeninputCnTooltipBoxLayoutData& TooltipBoxLayoutData() const; |
|
46
bd83ceabce89
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
448 |
|
bd83ceabce89
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
449 |
/* |
bd83ceabce89
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
450 |
* Get layout rect for composition area |
bd83ceabce89
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
451 |
* |
bd83ceabce89
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
452 |
* @param none |
bd83ceabce89
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
453 |
* @return rect of composition area |
bd83ceabce89
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
454 |
*/ |
bd83ceabce89
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
455 |
const TRect& compositionLayoutData() const; |
bd83ceabce89
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
456 |
|
44 | 457 |
protected: |
458 |
||
459 |
/** |
|
460 |
* Set laf data base type |
|
461 |
* |
|
462 |
* @since S60 v3.2 |
|
463 |
* @param aLafData The exact laf data |
|
464 |
* @return None |
|
465 |
*/ |
|
466 |
void SetLafData( MPeninputCnLafDataBase* aLafData ); |
|
467 |
||
468 |
/** |
|
469 |
* Constructor |
|
470 |
* |
|
471 |
* @since S60 v3.2 |
|
472 |
* @param aContext The layout context |
|
473 |
* @return None |
|
474 |
*/ |
|
475 |
CPeninputCnGenericVkbLafMgr(); |
|
476 |
||
477 |
private: |
|
478 |
MPeninputCnLafDataCommon* iLafData; |
|
479 |
TPluginInputMode iInputMode; |
|
480 |
}; |
|
481 |
||
482 |
inline void CPeninputCnGenericVkbLafMgr::GetPreviewWndRect( TRect& aOutRect, |
|
483 |
TRect& aInnerRect ) const |
|
484 |
{ |
|
485 |
aOutRect = iLafData->QwtLayoutData().iPreviewWndRect; |
|
486 |
aInnerRect = iLafData->QwtLayoutData().iPreviewWndInnerRect; |
|
487 |
} |
|
488 |
||
489 |
inline TAknTextLineLayout CPeninputCnGenericVkbLafMgr::PreviewWndText() const |
|
490 |
{ |
|
491 |
return iLafData->QwtLayoutData().iPreviewWndText; |
|
492 |
} |
|
493 |
||
494 |
inline CFont* CPeninputCnGenericVkbLafMgr::PreviewFont() const |
|
495 |
{ |
|
496 |
return iLafData->QwtLayoutData().iPreviewFont; |
|
497 |
} |
|
498 |
||
499 |
inline TSize CPeninputCnGenericVkbLafMgr::GetSpaceIconOffset() const |
|
500 |
{ |
|
501 |
return iLafData->QwtLayoutData().iSpaceIconLayout.iIconOffset; |
|
502 |
} |
|
503 |
||
504 |
inline TInt CPeninputCnGenericVkbLafMgr::GetSpaceSideIconWidth() const |
|
505 |
{ |
|
506 |
return iLafData->QwtLayoutData().iSpaceIconLayout.iSideIconWidth; |
|
507 |
} |
|
508 |
#endif // C_PENINPUTVKBCNLAFDATAMGR_H |