author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Wed, 15 Sep 2010 12:34:44 +0300 | |
branch | RCL_3 |
changeset 50 | 5a1685599b76 |
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: split itut data manager |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
||
19 |
#ifndef C_SPLITITUTDATAMGR_H |
|
20 |
#define C_SPLITITUTDATAMGR_H |
|
21 |
||
22 |
#include <e32base.h> |
|
23 |
#include <PtiDefs.h> |
|
24 |
#include <AknLayout2Def.h> |
|
25 |
||
26 |
#include "peninputsplititutpropertysubscriber.h" |
|
27 |
#include "peninputsplititutdata.h" |
|
28 |
||
29 |
class CPtiEngine; |
|
30 |
class CFont; |
|
31 |
class MSplitItutLayoutContext; |
|
32 |
class CSplitItutWindowManager; |
|
33 |
||
34 |
extern const TInt KInvalidResId; |
|
35 |
extern const TInt KMaxPredictCandCnt; |
|
36 |
extern const TInt KInvalidImMode; |
|
37 |
const TInt KMaxFileLength = 80; |
|
38 |
||
39 |
/** |
|
40 |
* Class CSplitItutDataMgr |
|
41 |
* |
|
42 |
* Wrapper of L&F data. |
|
43 |
* |
|
44 |
* @lib peninputsplititut.lib |
|
45 |
* @since S60 v5.0 |
|
46 |
*/ |
|
47 |
||
48 |
class CSplitItutDataMgr : public CBase |
|
49 |
{ |
|
50 |
public: |
|
51 |
/** |
|
52 |
* Symbian constructor. |
|
53 |
* |
|
54 |
* @since S60 v5.0 |
|
55 |
* @return Pointer to created object. |
|
56 |
*/ |
|
57 |
static CSplitItutDataMgr* NewL( MSplitItutLayoutContext* aLayoutContext, |
|
58 |
CPtiEngine* aPtiEngine ); |
|
59 |
||
60 |
/** |
|
61 |
* standard c++ destructor. |
|
62 |
* |
|
63 |
* @since S60 v5.0 |
|
64 |
* @return None |
|
65 |
*/ |
|
66 |
~CSplitItutDataMgr(); |
|
67 |
||
68 |
/** |
|
69 |
* Add subscriber |
|
70 |
* |
|
71 |
* @since S60 v5.0 |
|
72 |
* @param aSubscriber sub scriber |
|
73 |
* @return None |
|
74 |
*/ |
|
75 |
void AddSubscriber(MItutPropertySubscriber* aSubscriber); |
|
76 |
||
77 |
/** |
|
78 |
* read laf data. |
|
79 |
* |
|
80 |
* @since S60 v5.0 |
|
81 |
* @return None |
|
82 |
*/ |
|
83 |
void ReadLafInfo(); |
|
84 |
||
85 |
/** |
|
86 |
* Set input language |
|
87 |
* |
|
88 |
* @since S60 v5.0 |
|
89 |
* @param aLanguage input language |
|
90 |
* @return None |
|
91 |
*/ |
|
92 |
void SetLanguageL(TInt aLanguage); |
|
93 |
||
94 |
/** |
|
95 |
* read laf data. |
|
96 |
* |
|
97 |
* @since S60 v5.0 |
|
98 |
* @param aMode input mode |
|
99 |
* @return None |
|
100 |
*/ |
|
101 |
void SetInputModeL(TInt aMode); |
|
102 |
||
103 |
/** |
|
104 |
* Set input case |
|
105 |
* |
|
106 |
* @since S60 v5.0 |
|
107 |
* @param aCase input case |
|
108 |
* @return None |
|
109 |
*/ |
|
110 |
void SetCase(TInt aCase); |
|
111 |
||
112 |
/** |
|
113 |
* Request data |
|
114 |
* |
|
115 |
* @since S60 v5.0 |
|
116 |
* @param aDataType data type |
|
117 |
* @return date |
|
118 |
*/ |
|
119 |
TAny* RequestData(TInt aDataType); |
|
120 |
||
121 |
/** |
|
122 |
* Get ptiengine pointer |
|
123 |
* |
|
124 |
* @since S60 v5.0 |
|
125 |
* @return ptiengine |
|
126 |
*/ |
|
127 |
inline CPtiEngine* PtiEngine(); |
|
128 |
||
129 |
/** |
|
130 |
* Notify change control layout |
|
131 |
* |
|
132 |
* @since S60 v5.0 |
|
133 |
* @param aPropertyName property name |
|
134 |
* @param aCtrlResId control id |
|
135 |
* @return None |
|
136 |
*/ |
|
137 |
void NotifyChangeControlLayout(MItutPropertySubscriber::TItutProperty aPropertyName, |
|
138 |
TInt aCtrlResId); |
|
139 |
||
140 |
/** |
|
141 |
* Get input language |
|
142 |
* |
|
143 |
* @since S60 v5.0 |
|
144 |
* @return language id |
|
145 |
*/ |
|
146 |
inline TInt InputLanguage(); |
|
147 |
||
148 |
/** |
|
149 |
* Is valid language |
|
150 |
* |
|
151 |
* @since S60 v5.0 |
|
152 |
* @param aLanguage language id |
|
153 |
* @return TBool |
|
154 |
*/ |
|
155 |
inline TBool IsValidLanguage(TInt aLanguage); |
|
156 |
||
157 |
/** |
|
158 |
* Get input mode |
|
159 |
* |
|
160 |
* @since S60 v5.0 |
|
161 |
* @return input mode |
|
162 |
*/ |
|
163 |
inline TInt InputMode(); |
|
164 |
||
165 |
/** |
|
166 |
* Get text case |
|
167 |
* |
|
168 |
* @since S60 v5.0 |
|
169 |
* @return text case |
|
170 |
*/ |
|
171 |
inline TInt TextCase(); |
|
172 |
||
173 |
/** |
|
174 |
* Is exist plus char |
|
175 |
* |
|
176 |
* @since S60 v5.0 |
|
177 |
* @return TBool |
|
178 |
*/ |
|
179 |
TBool IsExistPlusChar(); |
|
180 |
||
181 |
/** |
|
182 |
* Set latin only flag |
|
183 |
* |
|
184 |
* @since S60 v5.0 |
|
185 |
* @param aLatinOnly latin only flag |
|
186 |
* @return TBool |
|
187 |
*/ |
|
188 |
inline void SetLatinOnly( TBool aLatinOnly ); |
|
189 |
||
190 |
/** |
|
191 |
* Is in Spell mode |
|
192 |
* |
|
193 |
* @since S60 v5.0 |
|
194 |
* @return TBool |
|
195 |
*/ |
|
196 |
inline TBool IsSpellMode(); |
|
197 |
||
198 |
/** |
|
199 |
* Set Spell mode flag |
|
200 |
* |
|
201 |
* @since S60 v5.0 |
|
202 |
* @param aSpellMode Spell mode flag |
|
203 |
* @return void |
|
204 |
*/ |
|
205 |
inline void SetSpellMode(TBool aSpellMode); |
|
206 |
||
207 |
/** |
|
50
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
208 |
* Set Spell Indicator Data |
44 | 209 |
* |
210 |
* @param aIndicatorData Indicator Data |
|
211 |
* @return void |
|
212 |
*/ |
|
50
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
213 |
inline void SetSpellIndicatorData(TFepIndicatorInfo &aIndicatorData); |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
214 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
215 |
/** |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
216 |
* Get Spell Indicator Data |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
217 |
* |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
218 |
* @return TFepIndicatorInfo |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
219 |
*/ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
220 |
inline TFepIndicatorInfo SpellIndicatorData(); |
44 | 221 |
|
222 |
/** |
|
50
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
223 |
* Set Split Indicator Data |
44 | 224 |
* |
50
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
225 |
* @param aIndicatorData Indicator Data |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
226 |
* @return void |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
227 |
*/ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
228 |
inline void SetSplitIndicatorData(TFepIndicatorInfo &aIndicatorData); |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
229 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
230 |
/** |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
231 |
* Get Split Indicator Data |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
232 |
* |
44 | 233 |
* @return TFepIndicatorInfo |
234 |
*/ |
|
50
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
235 |
inline TFepIndicatorInfo SplitIndicatorData(); |
44 | 236 |
|
237 |
/** |
|
238 |
* Set update flag |
|
239 |
* |
|
240 |
* @since S60 v5.0 |
|
241 |
* @param aNeedUpdate need update flag |
|
242 |
* @return None |
|
243 |
*/ |
|
244 |
void SetUpdate(TBool aNeedUpdate); |
|
245 |
||
246 |
/** |
|
247 |
* get update flag |
|
248 |
* |
|
249 |
* @since S60 v5.0 |
|
250 |
* @return update flag |
|
251 |
*/ |
|
252 |
TBool IsUpdate() const; |
|
253 |
||
254 |
// TInt GetNextPageCandidateL(RPointerArray<HBufC>& aList); |
|
255 |
||
256 |
// TBool NextPageCandidateExist(); |
|
257 |
||
258 |
// void ClearChnCandidates(TInt aCmd); |
|
259 |
||
260 |
/** |
|
261 |
* get keypad resource id |
|
262 |
* |
|
263 |
* @since S60 v5.0 |
|
264 |
* @return keypad resource id |
|
265 |
*/ |
|
266 |
TInt KeypadResourceId(); |
|
267 |
||
268 |
/** |
|
269 |
* Is chinese |
|
270 |
* |
|
271 |
* @since S60 v5.0 |
|
272 |
* @return TBool |
|
273 |
*/ |
|
274 |
TBool IsChinese(); |
|
275 |
||
276 |
/** |
|
277 |
* Is Hindi |
|
278 |
* |
|
279 |
* @since S60 v5.0 |
|
280 |
* @return TBool |
|
281 |
*/ |
|
282 |
TBool IsHindi(); |
|
283 |
||
284 |
/** |
|
285 |
* Is Thai |
|
286 |
* |
|
287 |
* @since S60 v5.0 |
|
288 |
* @return TBool |
|
289 |
*/ |
|
290 |
TBool IsThai(); |
|
291 |
||
292 |
/** |
|
293 |
* Is right to left language |
|
294 |
* |
|
295 |
* @since S60 v5.0 |
|
296 |
* @return TBool |
|
297 |
*/ |
|
298 |
TBool IsRtoLLanguage(); |
|
299 |
||
300 |
/** |
|
301 |
* Is right to left language |
|
302 |
* |
|
303 |
* @since S60 v5.0 |
|
304 |
* @param aLanguage language id |
|
305 |
* @return TBool |
|
306 |
*/ |
|
307 |
TBool IsRtoLLanguage( TInt aLanguage ); |
|
308 |
||
309 |
/** |
|
310 |
* Is language direction switch |
|
311 |
* |
|
312 |
* @since S60 v5.0 |
|
313 |
* @return TBool |
|
314 |
*/ |
|
315 |
TBool IsLangDirectionSwitch() const; |
|
316 |
||
317 |
/** |
|
318 |
* set language direction switch |
|
319 |
* |
|
320 |
* @since S60 v5.0 |
|
321 |
* @param aIsChange change flag |
|
322 |
* @return None |
|
323 |
*/ |
|
324 |
inline void SetLangDirectionSwitch( TBool aIsChange ); |
|
325 |
||
326 |
/** |
|
327 |
* set numeric keymap |
|
328 |
* |
|
329 |
* @since S60 v5.0 |
|
330 |
* @param aKeymap |
|
331 |
* @return None |
|
332 |
*/ |
|
333 |
void SetNumericKeymap( const TInt aKeymap ); |
|
334 |
||
335 |
/** |
|
336 |
* set numeric keymap data |
|
337 |
* |
|
338 |
* @since S60 v5.0 |
|
339 |
* @param aKeymapData |
|
340 |
* @return None |
|
341 |
*/ |
|
342 |
void SetNumericKeymapData( TInt* aKeymapData ); |
|
343 |
||
344 |
/** |
|
345 |
* is char flag changed |
|
346 |
* |
|
347 |
* @since S60 v5.0 |
|
348 |
* @return TBool |
|
349 |
*/ |
|
350 |
inline TBool IsCharFlagChanged(); |
|
351 |
||
352 |
/** |
|
353 |
* set numeric only |
|
354 |
* |
|
355 |
* @since S60 v5.0 |
|
356 |
* @param aIsNumberOnly |
|
357 |
* @return None |
|
358 |
*/ |
|
359 |
inline void SetNumericOnly( TBool aIsNumberOnly ); |
|
360 |
||
361 |
/** |
|
362 |
* get numeric only flag |
|
363 |
* |
|
364 |
* @since S60 v5.0 |
|
365 |
* @return TBool |
|
366 |
*/ |
|
367 |
inline TBool IsNumericOnly() const; |
|
368 |
||
50
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
369 |
/** |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
370 |
* Get the size of the screen |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
371 |
* |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
372 |
* @since S60 v5.0 |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
373 |
* @param none |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
374 |
* @return the size of the screen |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
375 |
*/ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
376 |
TRect screenSize(); |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
377 |
|
44 | 378 |
TRect iShiftIconRect; |
379 |
TRect iStarIconRect; |
|
380 |
||
50
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
381 |
/** |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
382 |
* The star icon rect under number mode |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
383 |
*/ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
384 |
TRect iStarIconRectInNumMode; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
385 |
|
44 | 386 |
private: |
387 |
/** |
|
388 |
* C++ constructor |
|
389 |
* |
|
390 |
* @since S60 v5.0 |
|
391 |
* @return None |
|
392 |
*/ |
|
393 |
CSplitItutDataMgr(MSplitItutLayoutContext* aLayoutContext, CPtiEngine* aPtiEngine ); |
|
394 |
||
395 |
/** |
|
396 |
* Symbian second-phase constructor |
|
397 |
* |
|
398 |
* @since S60 v5.0 |
|
399 |
* @return None |
|
400 |
*/ |
|
401 |
void ConstructL(); |
|
402 |
||
403 |
/** |
|
404 |
* Notify subscriber |
|
405 |
* |
|
406 |
* @since S60 v5.0 |
|
407 |
* @param aPropertyName |
|
408 |
* @param aValue |
|
409 |
* @return None |
|
410 |
*/ |
|
411 |
void NotifySubscriber( MItutPropertySubscriber::TItutProperty aPropertyName, |
|
412 |
const TDesC& aValue); |
|
413 |
||
414 |
/** |
|
415 |
* Get config resource file name |
|
416 |
* |
|
417 |
* @since S60 v5.0 |
|
418 |
* @param aLang Language id |
|
419 |
* @return None |
|
420 |
*/ |
|
421 |
TInt GetConfigResFileName(TInt aLang); |
|
422 |
||
423 |
/** |
|
424 |
* Find language in an array |
|
425 |
* |
|
426 |
* @since S60 v5.0 |
|
427 |
* @param aArray |
|
428 |
* @param aEndIdx |
|
429 |
* @param aLang |
|
430 |
* @return index in the array |
|
431 |
*/ |
|
432 |
TInt FindLang(const TInt* aArray, TInt aEndIdx, TInt aLang); |
|
433 |
||
434 |
/** |
|
435 |
* get resource file string |
|
436 |
* |
|
437 |
* @since S60 v5.0 |
|
438 |
* @param aIndex |
|
439 |
* @return resource file |
|
440 |
*/ |
|
441 |
static const TDesC& ResFileExtByScriptIdx(const TScriptExtIndex aIndex); |
|
442 |
||
443 |
/** |
|
444 |
* Get chinese keypad resource id |
|
445 |
* |
|
446 |
* @since S60 v5.0 |
|
447 |
* @return resource id |
|
448 |
*/ |
|
449 |
TInt ChineseKeypadResourceId(); |
|
450 |
||
451 |
/** |
|
452 |
* Get chinese keypad resource id |
|
453 |
* |
|
454 |
* @since S60 v5.0 |
|
455 |
* @return resource id |
|
456 |
*/ |
|
457 |
TInt HindiKeypadResourceId(); |
|
458 |
public: |
|
459 |
TInt iIcfTextLeftMargin; |
|
460 |
TInt iIcfTextRightMargin; |
|
461 |
TInt iIcfTextTopMargin; |
|
462 |
TInt iIcfTextBottomMargin; |
|
463 |
TInt iIcfTextLineSpaceMargin; |
|
464 |
TInt iIcfTextHeight; |
|
465 |
||
466 |
private: // data member |
|
467 |
RPointerArray<MItutPropertySubscriber> iSubscriberList; |
|
468 |
CPtiEngine* iPtiEngine; |
|
469 |
TInt iLanguage; |
|
470 |
TInt iInputMode; |
|
471 |
TInt iCase; |
|
472 |
||
473 |
TSize iScreenSize; |
|
474 |
||
475 |
// offset of layout, compare to screen |
|
476 |
TPoint iLayoutOffset; |
|
477 |
TRect iLayoutRect; |
|
478 |
TRect iLayoutRectSpell; |
|
479 |
TRect iBackgroundRect; |
|
480 |
||
481 |
TRect iBackspaceRect; |
|
482 |
TRect iBackspaceInnerRect; |
|
483 |
TRect iBackspaceCnRect; |
|
484 |
TRect iBackspaceInnerCnRect; |
|
485 |
TRect iArrowLeftRect; |
|
486 |
TRect iArrowLeftInnerRect; |
|
487 |
TRect iArrowLeftCnRect; |
|
488 |
TRect iArrowLeftInnerCnRect; |
|
489 |
TRect iArrowRightRect; |
|
490 |
TRect iArrowRightInnerRect; |
|
491 |
TRect iArrowRightCnRect; |
|
492 |
TRect iArrowRightInnerCnRect; |
|
493 |
TRect iArrowUpRect; |
|
494 |
TRect iArrowDownRect; |
|
495 |
TRect iArrowUpInnerRect; |
|
496 |
TRect iArrowDownInnerRect; |
|
497 |
||
498 |
TRect iKeypadRect; |
|
499 |
TRect iKeypadRectCn; |
|
500 |
TRect iKeypadRectQuery; |
|
501 |
RArray<TRect> iKeypadCellRects; |
|
502 |
// RArray<TRect> iKeypadCellRectsCn; |
|
503 |
||
504 |
// properties of candidate list |
|
505 |
/* |
|
506 |
TInt iCandsUnitWidth; |
|
507 |
TInt iCandsUnitHeight; |
|
508 |
TInt iCandsHorizontalMargin; |
|
509 |
TInt iCandsVerticalMargin; |
|
510 |
TInt iCandsNaviWidth; |
|
511 |
TInt iCandsSpinBtnHeight; |
|
512 |
TPoint iCandsSpellLTPos; |
|
513 |
TPoint iCandsLTPos; |
|
514 |
TPoint iCandsPuncLTPos; |
|
515 |
CFont* iCandsFont; |
|
516 |
TInt iCandsTextMargin; |
|
517 |
TRgb iCandsTextColor; |
|
518 |
*/ |
|
519 |
||
520 |
TAknTextLineLayout iVkBigNumTextForPrtWest; |
|
521 |
TAknTextLineLayout iVkAlphaText1; |
|
522 |
TAknTextLineLayout iVkAlphaText2; |
|
523 |
TAknTextLineLayout iVkAlphaText3; |
|
524 |
TAknTextLineLayout iVkNumText; |
|
525 |
TAknTextLineLayout iVkTextPlusForNumbericOnly; |
|
526 |
||
527 |
// resource id for generic itut resource file |
|
528 |
TInt iCommonResId; |
|
529 |
TInt iConfigResId; |
|
530 |
||
531 |
TInt iAvkonResId; |
|
532 |
||
533 |
// not own |
|
534 |
MSplitItutLayoutContext* iLayoutContext; |
|
535 |
||
536 |
// chinese related candidates |
|
537 |
// RPointerArray<HBufC> iCandidates; |
|
538 |
// RPointerArray<HBufC> iPuncCandidates; |
|
539 |
||
540 |
TRect iOptionsRect; |
|
541 |
TRect iCloseRect; |
|
542 |
TRect iCloseInnerRect; |
|
543 |
TRect iOptionInnerRect; |
|
544 |
TRect iOptionsRectCn; |
|
545 |
TRect iCloseRectCn; |
|
546 |
TRect iCloseInnerRectCn; |
|
547 |
TRect iOptionInnerRectCn; |
|
548 |
||
549 |
// preview bubble |
|
550 |
TRect iPreviewWndRect; |
|
551 |
TRect iPreviewWndInnerRect; |
|
552 |
CFont* iBubbleFont; |
|
553 |
TAknTextLineLayout iPreviewWndText; |
|
554 |
||
555 |
TBuf<KMaxFileLength> iResourceFilename; |
|
556 |
TBool iLangCaseSensitive; |
|
557 |
TInt iCurrentScriptIdx; |
|
558 |
||
559 |
TAknTextLineLayout iBtnTextFormat; |
|
560 |
TAknTextLineLayout iBtnTextFormat1; |
|
561 |
||
562 |
||
563 |
TBool iNeedUpdate; |
|
564 |
TBool iLatinOnly; |
|
565 |
||
566 |
TBool iIsLangDirectionSwitch; |
|
567 |
||
568 |
TInt iNumericKeymap; |
|
569 |
HBufC* iNumericKeymapData; |
|
570 |
TBool iExistPlusChar; |
|
571 |
TBool iPlusCharFlagChanged; |
|
572 |
TBool iNumberOnly; |
|
573 |
// For spell mode |
|
574 |
TBool iSpellMode; |
|
575 |
TRect iSpellICFRect; |
|
576 |
TRect iSpellEditIndicator; |
|
577 |
TRect iOkRect; |
|
578 |
TRect iCancelRect; |
|
579 |
CFont* iIcfFont; |
|
580 |
TInt iIcfTextAlignment; |
|
581 |
||
582 |
// Spell Back space rect |
|
583 |
TRect iSpellBackSpcace; |
|
584 |
TRect iSpellBackSpcaceInner; |
|
585 |
||
586 |
// Left&Right arrow |
|
587 |
TRect iSpellArrowLeftRect; |
|
588 |
TRect iSpellArrowLeftRectInner; |
|
589 |
TRect iSpellArrowRightRect; |
|
590 |
TRect iSpellArrowRightRectInner; |
|
591 |
||
592 |
//TRect iIndiPaneRectWithTextForPrtWest; |
|
50
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
593 |
TRect iSpellIndiPaneRectWithoutTextForPrtWest; |
44 | 594 |
//TRect iIndiIconRectWithTextForPrtWest; |
50
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
595 |
TRect iSpellIconRectWithoutTextForPrtWest; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
596 |
TAknTextLineLayout iSpellTextForPrtWest; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
597 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
598 |
TRect iSplitIndiPaneRect; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
599 |
TRect iSplitIndiIconRect; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
600 |
TAknTextLineLayout iSplitIndiText; |
44 | 601 |
|
602 |
TAknTextLineLayout iSpellBtnTextFormat; |
|
50
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
603 |
TFepIndicatorInfo iSpellIndicatorData; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
604 |
TFepIndicatorInfo iSplitIndicatorData; |
44 | 605 |
}; |
606 |
||
607 |
// --------------------------------------------------------------------------- |
|
608 |
// CSplitItutDataMgr::PtiEngine |
|
609 |
// --------------------------------------------------------------------------- |
|
610 |
// |
|
611 |
inline CPtiEngine* CSplitItutDataMgr::PtiEngine() |
|
612 |
{ |
|
613 |
return iPtiEngine; |
|
614 |
} |
|
615 |
||
616 |
// --------------------------------------------------------------------------- |
|
617 |
// CSplitItutDataMgr::InputMode |
|
618 |
// --------------------------------------------------------------------------- |
|
619 |
// |
|
620 |
inline TInt CSplitItutDataMgr::InputMode() |
|
621 |
{ |
|
622 |
return iInputMode; |
|
623 |
} |
|
624 |
||
625 |
// --------------------------------------------------------------------------- |
|
626 |
// CSplitItutDataMgr::InputLanguage |
|
627 |
// --------------------------------------------------------------------------- |
|
628 |
// |
|
629 |
inline TInt CSplitItutDataMgr::InputLanguage() |
|
630 |
{ |
|
631 |
return iLanguage; |
|
632 |
} |
|
633 |
||
634 |
// --------------------------------------------------------------------------- |
|
635 |
// CSplitItutDataMgr::TextCase |
|
636 |
// --------------------------------------------------------------------------- |
|
637 |
// |
|
638 |
inline TInt CSplitItutDataMgr::TextCase() |
|
639 |
{ |
|
640 |
return iCase; |
|
641 |
} |
|
642 |
||
643 |
// --------------------------------------------------------------------------- |
|
644 |
// CSplitItutDataMgr::SetLatinOnly |
|
645 |
// --------------------------------------------------------------------------- |
|
646 |
// |
|
647 |
inline void CSplitItutDataMgr::SetLatinOnly( TBool aLatinOnly ) |
|
648 |
{ |
|
649 |
iLatinOnly = aLatinOnly; |
|
650 |
} |
|
651 |
||
652 |
// --------------------------------------------------------------------------- |
|
653 |
// CSplitItutDataMgr::IsSpellMode |
|
654 |
// --------------------------------------------------------------------------- |
|
655 |
// |
|
656 |
inline TBool CSplitItutDataMgr::IsSpellMode() |
|
657 |
{ |
|
658 |
return iSpellMode; |
|
659 |
} |
|
660 |
||
661 |
// --------------------------------------------------------------------------- |
|
662 |
// CSplitItutDataMgr::SetSpellMode |
|
663 |
// --------------------------------------------------------------------------- |
|
664 |
// |
|
665 |
inline void CSplitItutDataMgr::SetSpellMode(TBool aSpellMode) |
|
666 |
{ |
|
667 |
iSpellMode = aSpellMode; |
|
668 |
} |
|
669 |
||
670 |
// --------------------------------------------------------------------------- |
|
50
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
671 |
// CSplitItutDataMgr::SetSpellIndicatorData |
44 | 672 |
// --------------------------------------------------------------------------- |
673 |
// |
|
50
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
674 |
inline void CSplitItutDataMgr::SetSpellIndicatorData(TFepIndicatorInfo &aIndicatorData) |
44 | 675 |
{ |
50
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
676 |
iSpellIndicatorData.iIndicatorImgID = aIndicatorData.iIndicatorImgID; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
677 |
iSpellIndicatorData.iIndicatorMaskID = aIndicatorData.iIndicatorMaskID; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
678 |
iSpellIndicatorData.iIndicatorTextImgID = aIndicatorData.iIndicatorTextImgID; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
679 |
iSpellIndicatorData.iIndicatorTextMaskID = aIndicatorData.iIndicatorTextMaskID; |
44 | 680 |
} |
681 |
||
682 |
// --------------------------------------------------------------------------- |
|
50
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
683 |
// CSplitItutDataMgr::SplitIndicatorData |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
684 |
// --------------------------------------------------------------------------- |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
685 |
// |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
686 |
inline TFepIndicatorInfo CSplitItutDataMgr::SplitIndicatorData() |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
687 |
{ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
688 |
return iSplitIndicatorData; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
689 |
} |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
690 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
691 |
// --------------------------------------------------------------------------- |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
692 |
// CSplitItutDataMgr::SetSplitIndicatorData |
44 | 693 |
// --------------------------------------------------------------------------- |
694 |
// |
|
50
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
695 |
inline void CSplitItutDataMgr::SetSplitIndicatorData(TFepIndicatorInfo &aIndicatorData) |
44 | 696 |
{ |
50
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
697 |
iSplitIndicatorData.iIndicatorImgID = aIndicatorData.iIndicatorImgID; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
698 |
iSplitIndicatorData.iIndicatorMaskID = aIndicatorData.iIndicatorMaskID; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
699 |
iSplitIndicatorData.iIndicatorTextImgID = aIndicatorData.iIndicatorTextImgID; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
700 |
iSplitIndicatorData.iIndicatorTextMaskID = aIndicatorData.iIndicatorTextMaskID; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
701 |
} |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
702 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
703 |
// --------------------------------------------------------------------------- |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
704 |
// CSplitItutDataMgr::SpellIndicatorData |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
705 |
// --------------------------------------------------------------------------- |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
706 |
// |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
707 |
inline TFepIndicatorInfo CSplitItutDataMgr::SpellIndicatorData() |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
708 |
{ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
709 |
return iSpellIndicatorData; |
44 | 710 |
} |
711 |
||
712 |
// --------------------------------------------------------------------------- |
|
713 |
// CSplitItutDataMgr::IsValidLanguage |
|
714 |
// --------------------------------------------------------------------------- |
|
715 |
// |
|
716 |
inline TBool CSplitItutDataMgr::IsValidLanguage(TInt aLanguage) |
|
717 |
{ |
|
718 |
return (aLanguage != ELangTest && aLanguage != ELangNone); |
|
719 |
} |
|
720 |
||
721 |
// --------------------------------------------------------------------------- |
|
722 |
// CSplitItutDataMgr::SetLangDirectionSwitch |
|
723 |
// --------------------------------------------------------------------------- |
|
724 |
// |
|
725 |
inline void CSplitItutDataMgr::SetLangDirectionSwitch( TBool aIsChange ) |
|
726 |
{ |
|
727 |
iIsLangDirectionSwitch = aIsChange; |
|
728 |
} |
|
729 |
||
730 |
// --------------------------------------------------------------------------- |
|
731 |
// CSplitItutDataMgr::IsCharFlagChanged |
|
732 |
// --------------------------------------------------------------------------- |
|
733 |
// |
|
734 |
inline TBool CSplitItutDataMgr::IsCharFlagChanged() |
|
735 |
{ |
|
736 |
if( iExistPlusChar != IsExistPlusChar() ) |
|
737 |
{ |
|
738 |
iExistPlusChar = IsExistPlusChar(); |
|
739 |
iPlusCharFlagChanged = ETrue; |
|
740 |
} |
|
741 |
else |
|
742 |
{ |
|
743 |
iPlusCharFlagChanged = EFalse; |
|
744 |
} |
|
745 |
return iPlusCharFlagChanged; |
|
746 |
} |
|
747 |
||
748 |
// --------------------------------------------------------------------------- |
|
749 |
// CSplitItutDataMgr::SetNumericOnly |
|
750 |
// --------------------------------------------------------------------------- |
|
751 |
// |
|
752 |
inline void CSplitItutDataMgr::SetNumericOnly( TBool aIsNumberOnly ) |
|
753 |
{ |
|
754 |
iNumberOnly = aIsNumberOnly; |
|
755 |
} |
|
756 |
||
757 |
// --------------------------------------------------------------------------- |
|
758 |
// CSplitItutDataMgr::IsNumericOnly |
|
759 |
// --------------------------------------------------------------------------- |
|
760 |
// |
|
761 |
inline TBool CSplitItutDataMgr::IsNumericOnly() const |
|
762 |
{ |
|
763 |
return iNumberOnly; |
|
764 |
} |
|
765 |
||
766 |
#endif // C_SPLITITUTDATAMGR_H |