72 void SetInputModeL(TInt aMode); |
72 void SetInputModeL(TInt aMode); |
73 |
73 |
74 void SetCase(TInt aCase); |
74 void SetCase(TInt aCase); |
75 |
75 |
76 TAny* RequestData(TInt aDataType); |
76 TAny* RequestData(TInt aDataType); |
|
77 TAny* RequestDataForPortraitWest(TInt aDataType); |
77 |
78 |
78 inline CPtiEngine* PtiEngine(); |
79 inline CPtiEngine* PtiEngine(); |
79 |
80 |
80 // if there is need to change keypad layout, aKeypadResId: new keypad resource id |
81 // if there is need to change keypad layout, aKeypadResId: new keypad resource id |
81 void NotifyChangeControlLayout(MItutPropertySubscriber::TItutProperty aPropertyName, |
82 void NotifyChangeControlLayout(MItutPropertySubscriber::TItutProperty aPropertyName, |
98 inline TFepIndicatorInfo IndicatorData(); |
99 inline TFepIndicatorInfo IndicatorData(); |
99 |
100 |
100 |
101 |
101 inline void SetLatinOnly( TBool aLatinOnly ); |
102 inline void SetLatinOnly( TBool aLatinOnly ); |
102 |
103 |
|
104 inline TBool IsPortraitWest(); |
|
105 |
|
106 TBool IsChineseGlobalLanguage(); |
103 void SetUpdate(TBool aNeedUpdate); |
107 void SetUpdate(TBool aNeedUpdate); |
104 TBool IsUpdate() const; |
108 TBool IsUpdate() const; |
105 // when user press navi-next button on dropdownlist, there is need to |
109 // when user press navi-next button on dropdownlist, there is need to |
106 // retrieve next page candidate |
110 // retrieve next page candidate |
107 TInt GetNextPageCandidateL(RPointerArray<HBufC>& aList); |
111 TInt GetNextPageCandidateL(RPointerArray<HBufC>& aList); |
162 TInt iIcfTextBottomMarginCn; |
166 TInt iIcfTextBottomMarginCn; |
163 TInt iIcfTextLineSpaceMarginCn; |
167 TInt iIcfTextLineSpaceMarginCn; |
164 TInt iIcfTextHeightCn; |
168 TInt iIcfTextHeightCn; |
165 |
169 |
166 TRect iShiftIconRect; |
170 TRect iShiftIconRect; |
|
171 TInt iIcfTextLeftMarginForPrtWest; |
|
172 TInt iIcfTextRightMarginForPrtWest; |
|
173 TInt iIcfTextTopMarginForPrtWest; |
|
174 TInt iIcfTextBottomMarginForPrtWest; |
|
175 TInt iIcfTextLineSpaceMarginForPrtWest; |
|
176 TInt iIcfTextHeightForPrtWest; |
|
177 TRect iShiftIconRectForPrtWest; |
|
178 TInt iSpellIcfTextHeightForPrtWest; |
167 private: |
179 private: |
168 CGenericItutDataMgr(MItutLayoutContext* aLayoutContext, CPtiEngine* aPtiEngine ); |
180 CGenericItutDataMgr(MItutLayoutContext* aLayoutContext, CPtiEngine* aPtiEngine ); |
169 |
181 |
170 void ConstructL(); |
182 void ConstructL(); |
171 |
183 |
186 |
198 |
187 TInt ChineseKeypadResourceId(); |
199 TInt ChineseKeypadResourceId(); |
188 |
200 |
189 TInt HindiKeypadResourceId(); |
201 TInt HindiKeypadResourceId(); |
190 TInt KoreanKeypadResourceId(); |
202 TInt KoreanKeypadResourceId(); |
|
203 void ReadLafInfoForPrtWest(); |
191 |
204 |
192 private: // data member |
205 private: // data member |
193 RPointerArray<MItutPropertySubscriber> iSubscriberList; |
206 RPointerArray<MItutPropertySubscriber> iSubscriberList; |
194 CPtiEngine* iPtiEngine; |
207 CPtiEngine* iPtiEngine; |
195 TInt iLanguage; |
208 TInt iLanguage; |
322 TRect iSpellEditIndicator; |
335 TRect iSpellEditIndicator; |
323 TAknTextLineLayout iBtnTextFormat; |
336 TAknTextLineLayout iBtnTextFormat; |
324 TAknTextLineLayout iBtnTextFormat1; |
337 TAknTextLineLayout iBtnTextFormat1; |
325 TFepIndicatorInfo iIndicatorData; |
338 TFepIndicatorInfo iIndicatorData; |
326 |
339 |
|
340 TRect iSpellQueryPaneRectForPrtWest; |
|
341 TRect iOKRectForPrtWest; |
|
342 TRect iCancelRectForPrtWest; |
|
343 TAknTextLineLayout iBtnOKTextForPrtWest; |
|
344 TAknTextLineLayout iBtnCancelTextForPrtWest; |
|
345 TRect iSpellICFRectForPrtWest; |
|
346 TRect iSpellICFBtnRectForPrtWest; |
|
347 TRect iSpellICFBtnInnerRectForPrtWest; |
|
348 TAknTextLineLayout iSpellText1ForPrtWest; |
|
349 TAknTextLineLayout iSpellText2ForPrtWest; |
|
350 TAknTextLineLayout iSpellText3ForPrtWest; |
|
351 TRect iSpellIndiPaneWithoutTextForPrtWest; |
|
352 TRect iSpellIndiIconWithoutTextForPrtWest; |
|
353 CFont* iSpellIcfFontForPrtWest; |
|
354 TRect iSpellArrowLeftRectForPrtWest; |
|
355 TRect iSpellArrowLeftInnerRectForPrtWest; |
|
356 TRect iSpellArrowRightRectForPrtWest; |
|
357 TRect iSpellArrowRightInnerRectForPrtWest; |
327 RPointerArray<TMenuItem> iMenuItemList; |
358 RPointerArray<TMenuItem> iMenuItemList; |
328 |
359 |
329 TBool iNeedUpdate; |
360 TBool iNeedUpdate; |
330 TBool iLatinOnly; |
361 TBool iLatinOnly; |
331 |
362 |
335 HBufC* iNumericKeymapData; |
366 HBufC* iNumericKeymapData; |
336 TBool iExistPlusChar; |
367 TBool iExistPlusChar; |
337 TBool iPlusCharFlagChanged; |
368 TBool iPlusCharFlagChanged; |
338 TBool iNumberOnly; |
369 TBool iNumberOnly; |
339 |
370 |
|
371 TRect iLayoutRectForPrtWest; |
|
372 TPoint iLayoutOffsetForPrtWest; |
|
373 RArray<TRect> iKeypadCellRectsForPrtWest; |
|
374 TRect iKeypadRectForPrtWest; |
|
375 TAknTextLineLayout iVkAlphaText1ForPrtWest; |
|
376 TAknTextLineLayout iVkAlphaText2ForPrtWest; |
|
377 TAknTextLineLayout iVkAlphaText3ForPrtWest; |
|
378 TAknTextLineLayout iVkNumTextForPrtWest; |
|
379 TRect iCloseRectForPrtWest; |
|
380 TRect iCloseInnerRectForPrtWest; |
|
381 TRect iArrowLeftRectForPrtWest; |
|
382 TRect iArrowLeftInnerRectForPrtWest; |
|
383 TRect iOptionsRectForPrtWest; |
|
384 TRect iOptionInnerRectForPrtWest; |
|
385 TRect iArrowRightRectForPrtWest; |
|
386 TRect iArrowRightInnerRectForPrtWest; |
|
387 TRect iBackspaceRectForPrtWest; |
|
388 TRect iBackspaceInnerRectForPrtWest; |
|
389 TRect iPreviewWndRectForPrtWest; |
|
390 TRect iPreviewWndInnerRectForPrtWest; |
|
391 TAknTextLineLayout iPreviewWndTextForPrtWest; |
|
392 CFont* iBubbleFontForPrtWest; |
|
393 TRect iIcfRectForPrtWest; |
|
394 CFont* iIcfFontForPrtWest; |
|
395 TInt iIcfTextAlignmentForPrtWest; |
|
396 |
|
397 TRect iIndiPaneRectWithTextForPrtWest; |
|
398 TRect iIndiPaneRectWithoutTextForPrtWest; |
|
399 TRect iIndiIconRectWithTextForPrtWest; |
|
400 TRect iIndiIconRectWithoutTextForPrtWest; |
|
401 TAknTextLineLayout iIndiTextForPrtWest; |
340 }; |
402 }; |
341 |
403 |
342 inline CPtiEngine* CGenericItutDataMgr::PtiEngine() |
404 inline CPtiEngine* CGenericItutDataMgr::PtiEngine() |
343 { |
405 { |
344 return iPtiEngine; |
406 return iPtiEngine; |
391 inline void CGenericItutDataMgr::SetLatinOnly( TBool aLatinOnly ) |
453 inline void CGenericItutDataMgr::SetLatinOnly( TBool aLatinOnly ) |
392 { |
454 { |
393 iLatinOnly = aLatinOnly; |
455 iLatinOnly = aLatinOnly; |
394 } |
456 } |
395 |
457 |
|
458 inline TBool CGenericItutDataMgr::IsPortraitWest() |
|
459 { |
|
460 return !iLandScape && !IsChinese(); |
|
461 } |
396 inline TBool CGenericItutDataMgr::IsValidLanguage(TInt aLanguage) |
462 inline TBool CGenericItutDataMgr::IsValidLanguage(TInt aLanguage) |
397 { |
463 { |
398 return (aLanguage != ELangTest && aLanguage != ELangNone); |
464 return (aLanguage != ELangTest && aLanguage != ELangNone); |
399 } |
465 } |
400 |
466 |