author | Simon Howkins <simonh@symbian.org> |
Mon, 15 Nov 2010 14:00:51 +0000 | |
branch | RCL_3 |
changeset 59 | 7febbd162ded |
parent 56 | 8152b1f1763a |
permissions | -rw-r--r-- |
44 | 1 |
/* |
2 |
* Copyright (c) 2003 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 |
* |
|
16 |
*/ |
|
17 |
||
18 |
||
19 |
||
20 |
||
21 |
||
22 |
||
23 |
||
24 |
||
25 |
||
26 |
||
27 |
||
28 |
||
29 |
#ifndef __AKN_FEP_PLUGIN_MANAGER__ |
|
30 |
#define __AKN_FEP_PLUGIN_MANAGER__ |
|
31 |
||
32 |
// INCLUDES |
|
33 |
#include <gulicon.h> |
|
34 |
#include <barsread.h> |
|
35 |
#include <aknfeppensupportinterface.h> |
|
36 |
#include <peninputclient.h> |
|
37 |
#include <aknextendedinputcapabilities.h> |
|
38 |
#include <eikedwob.h> // for MEikEdwinObserver |
|
39 |
||
40 |
#include "AknFepGlobalEnums.h" |
|
41 |
#include <aknfeppeninputenums.h> |
|
42 |
#include "AknFepPluginMenuManager.h" |
|
43 |
#include "AknFepSharedDataInterface.h" |
|
44 |
#include "AknFepManager.h" |
|
45 |
#include "AknFepCaseManager.h" |
|
46 |
#include <peninputsrveventhandler.h> |
|
47 |
||
48 |
// FORWARD DECLARATIONS |
|
49 |
//class MPeninputServerEventHandler; |
|
50 |
class MAknFepManagerInterface; |
|
51 |
class CAknFepUiSpellContainer; |
|
52 |
class CPenInputGSInterface; |
|
53 |
class CConnectAo; |
|
54 |
||
55 |
// CLASS DECLARATION |
|
56 |
||
57 |
||
58 |
/** |
|
59 |
* Plugin command type |
|
60 |
*/ |
|
61 |
enum TPluginCmd |
|
62 |
{ |
|
63 |
EPluginCloseMode, |
|
64 |
EPluginSyncFepAwareText, |
|
65 |
EPluginSetDataQueryShown, |
|
66 |
EPluginActivate, |
|
67 |
EPluginMenuCmd, |
|
68 |
EPluginFocusChanged, |
|
69 |
EPluginResourceChanged, |
|
70 |
EPluginFaseSwap, |
|
71 |
EPluginKeyEvent, |
|
72 |
EPluginUpdateIndicator, |
|
73 |
EPluginActivateInGlobalNote, |
|
74 |
EGainForeground, |
|
75 |
ELostForeground, |
|
76 |
EPluginEditorActivate, |
|
77 |
EPluginForegroundChanged, |
|
78 |
EPluginFocusItemDestroy, |
|
79 |
EPluginLanguageChanged, |
|
80 |
EPluginPreview, |
|
81 |
EPluginPromptChanged, |
|
82 |
EPluginShowCandidate, |
|
83 |
EPluginShowTooltip, |
|
84 |
EPluginHideTooltip, |
|
85 |
EPluginSwitchToPortrait, |
|
86 |
EPluginSwitchToLandscape, |
|
87 |
EPluginSwitchMode, |
|
88 |
EPluginUpdatePenInputITIStatus, |
|
89 |
EPluginEnableFetchDimState, |
|
90 |
EPluginArabicNumModeChanged, |
|
91 |
EPluginEnablePriorityChangeOnOriChange |
|
92 |
}; |
|
93 |
||
94 |
/** |
|
95 |
* Plugin synchronization type |
|
96 |
*/ |
|
97 |
enum TPluginSync |
|
98 |
{ |
|
99 |
EPluginSyncCurSel, |
|
100 |
EPluginSyncUpdatedText, |
|
101 |
EPluginSyncAll |
|
102 |
}; |
|
103 |
||
104 |
#ifdef RD_SCALABLE_UI_V2 |
|
105 |
||
106 |
/** |
|
107 |
* CAknFepPluginManager class. |
|
108 |
* |
|
109 |
* @lib AknFep.lib |
|
110 |
* @since 2.8 |
|
111 |
*/ |
|
112 |
class CAknFepPluginManager : |
|
113 |
public CBase, |
|
114 |
public MAknFepPenSupportInterface, |
|
115 |
public MPeninputServerEventHandler, |
|
56
8152b1f1763a
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
50
diff
changeset
|
116 |
public MEikEdwinObserver |
44 | 117 |
{ |
118 |
public: |
|
119 |
||
120 |
/** |
|
121 |
* Simulate event mode |
|
122 |
* @remark: Used in SubmitUiPluginTextL() |
|
123 |
*/ |
|
124 |
enum TSimulateEventMode |
|
125 |
{ |
|
126 |
EIgnor, |
|
127 |
ERawEvent, |
|
128 |
EKeyEvent |
|
129 |
}; |
|
130 |
||
131 |
/** |
|
132 |
* NewL first phase construction |
|
133 |
* |
|
134 |
* @param aFepMan fep manager |
|
135 |
* |
|
136 |
*/ |
|
137 |
static CAknFepPluginManager* NewL( CAknFepManager& aFepMan, |
|
138 |
CAknFepSharedDataInterface& aSharedData, |
|
139 |
CAknFepLanguageManager& aLangMan, |
|
140 |
CAknFepCaseManager& aCaseMan ); |
|
141 |
||
142 |
/** |
|
143 |
* Destructor |
|
144 |
*/ |
|
145 |
virtual ~CAknFepPluginManager(); |
|
146 |
||
147 |
private: |
|
148 |
||
149 |
/** |
|
150 |
* private constructor |
|
151 |
*/ |
|
152 |
CAknFepPluginManager( CAknFepManager& aFepMan, |
|
153 |
CAknFepSharedDataInterface& aSharedData, |
|
154 |
CAknFepLanguageManager& aLangMan, |
|
155 |
CAknFepCaseManager& aCaseMan ); |
|
156 |
||
157 |
/** |
|
158 |
* Construct |
|
159 |
* |
|
160 |
* @param aFepMan fep manager |
|
161 |
* |
|
162 |
*/ |
|
163 |
void ConstructL(); |
|
164 |
||
165 |
public : |
|
166 |
||
167 |
enum TSpellCBA |
|
168 |
{ |
|
169 |
ESpellCBANone, |
|
170 |
ESpellCBACancelEmpty, |
|
171 |
ESpellCBAOkCancel, |
|
172 |
}; |
|
173 |
||
174 |
public: |
|
175 |
||
176 |
// From MAknFepPenSupportInterface |
|
177 |
||
178 |
/** |
|
179 |
* From MAknFepPenSupportInterface |
|
180 |
* Activate pen input method |
|
181 |
* |
|
182 |
* @since 3.2 |
|
183 |
* @Return None |
|
184 |
*/ |
|
185 |
void ActivatePenInputL(); |
|
186 |
||
187 |
/** |
|
188 |
* From MAknFepPenSupportInterface |
|
189 |
* Deactivate pen input method |
|
190 |
* |
|
191 |
* @since 3.2 |
|
192 |
* @Return None |
|
193 |
*/ |
|
194 |
void DeactivatePenInputL(); |
|
195 |
||
196 |
// From MPeninputServerEventHandler |
|
197 |
||
198 |
/** |
|
199 |
* From MPeninputServerEventHandler |
|
200 |
* Handle pen input server events. |
|
201 |
* |
|
202 |
* @since 3.2 |
|
203 |
* @param aEventId Event to handle. |
|
204 |
* @return ETrue If server event handled |
|
205 |
*/ |
|
206 |
TBool HandleServerEventL(TInt aEventId); |
|
207 |
||
208 |
/** |
|
209 |
* Handle events from FEP |
|
210 |
* suggested mode. |
|
211 |
* |
|
212 |
* @since 3.2 |
|
213 |
* @param aEventType, event type from FEP |
|
214 |
* @param aEventData, event data from FEP |
|
215 |
* @return ETrue successful, EFalse otherwise |
|
216 |
*/ |
|
217 |
void HandleEventsFromFepL( TInt aEventType, TInt aEventData ); |
|
218 |
||
219 |
/** |
|
220 |
* Change current input method to plugin input method with |
|
221 |
* suggested mode. |
|
222 |
* |
|
223 |
* @since 3.2 |
|
224 |
* @return ETrue successful, EFalse otherwise |
|
225 |
*/ |
|
226 |
TBool TryChangePluginInputModeByModeL(TPluginInputMode aSuggestMode, TInt aOpenMode, |
|
227 |
TInt aSuggestRange); |
|
228 |
||
229 |
/** |
|
230 |
* Close plugin input mode, reset iPluginInputMode |
|
231 |
* to EPluginInputModeNone |
|
232 |
* |
|
233 |
* @since 3.2 |
|
234 |
* @param aRestore, If ETrue, restor rembered HKB mode |
|
235 |
* @return None |
|
236 |
*/ |
|
237 |
void ClosePluginInputModeL(TBool aRestore); |
|
238 |
||
239 |
/** |
|
240 |
* Close plugin input UI, only close UI |
|
241 |
* |
|
242 |
* @param aResetState If ETrue, reset UI state |
|
243 |
* to initial. |
|
244 |
* @return None. |
|
245 |
*/ |
|
246 |
void ClosePluginInputUiL(TBool aResetState); |
|
247 |
||
248 |
/** |
|
249 |
* Handle resource change. |
|
250 |
* |
|
251 |
* @param aType The resource type |
|
252 |
* @return None. |
|
253 |
*/ |
|
254 |
void OnResourceChangedL(TInt aType); |
|
255 |
||
256 |
/** |
|
257 |
* Synchronize plugin UI text with editor |
|
258 |
* |
|
259 |
* @since 3.2 |
|
260 |
* @return None |
|
261 |
*/ |
|
262 |
void SyncFepAwareText( TPluginSync aSyncType = EPluginSyncCurSel, TBool aSendNow = ETrue ); |
|
263 |
||
264 |
/** |
|
265 |
* Processes commands from the edit menu |
|
266 |
* |
|
267 |
* @since 3.2 |
|
268 |
* @param aCommandId The menu command id |
|
269 |
* @return None. |
|
270 |
*/ |
|
271 |
void ProcessMenuCommandL(TInt aCommandId); |
|
272 |
||
273 |
/** |
|
274 |
* Handle key events |
|
275 |
* |
|
276 |
* @since 3.2 |
|
277 |
* @param aCommandId The key id |
|
278 |
* @return None. |
|
279 |
*/ |
|
280 |
void HandleKeyEventL(TInt aKeyId); |
|
281 |
||
282 |
/** |
|
283 |
* initialize the edit menu depending on fep and editor state |
|
284 |
* |
|
285 |
* @since 3.2 |
|
286 |
* @param aMenuPane The pointer to menu pane |
|
287 |
* @return None. |
|
288 |
*/ |
|
289 |
void InitMenuPaneL( CAknEdwinState* aEditorState, |
|
290 |
CAknFepUiInterfaceMenuPane* aMenuPane, TInt aResourceId ); |
|
291 |
||
292 |
/** |
|
293 |
* Handles notifications that the UI has changed focus |
|
294 |
* |
|
295 |
* @since 3.2 |
|
296 |
* @param aFepFullyConstructed The flag of fep fully constructed |
|
297 |
* @return None. |
|
298 |
*/ |
|
299 |
void OnFocusChangedL( TBool aGainForeground ); |
|
300 |
||
301 |
||
302 |
/** |
|
303 |
* Set ICF data |
|
304 |
* |
|
305 |
* @since 3.2 |
|
306 |
* @param aTextChanged If editor text changed |
|
307 |
* @param aIcfData ICF data |
|
308 |
* @return None |
|
309 |
*/ |
|
310 |
void SendIcfDataL( TPluginSync aSyncType = EPluginSyncCurSel ); |
|
311 |
/** |
|
312 |
* Set editor cursor selection according plugin UI |
|
313 |
* cursor state |
|
314 |
* |
|
315 |
* @since 3.2 |
|
316 |
* @param aCurSel Cursor position. |
|
317 |
* @param aSyncCursor ETrue if plug in UI need update cursor, EFalse otherwise |
|
318 |
* @return None |
|
319 |
*/ |
|
320 |
void SetCursorSelectionL(const TCursorSelection& aCurSel, TBool aSyncCursor); |
|
321 |
||
56
8152b1f1763a
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
50
diff
changeset
|
322 |
void VietSyncToneMarkerL(const TDesC& aEditorContent, const TCursorSelection& aCursorPos); |
8152b1f1763a
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
50
diff
changeset
|
323 |
|
44 | 324 |
HBufC* GetNumberKeymapResource(TInt aCaseMode); |
325 |
||
326 |
HBufC* DoGetNumberKeymapResourceL(TInt aCaseMode); |
|
327 |
||
328 |
MAknFepManagerInterface* CurrentFepInputUI(); |
|
329 |
||
330 |
void SetFingerMatchSelectionState(TBool aMatchStateOn); |
|
331 |
TBool IsVisible(); |
|
332 |
||
333 |
// send all predictive candidates at once |
|
334 |
void ShowAllCandidates(); |
|
335 |
||
336 |
void ResetCandidateList(); |
|
337 |
||
338 |
void UpdateFSQIndicator(); |
|
339 |
void UpdateITUTIndicator(); |
|
340 |
||
341 |
void SetITUTSpellingStateL(TBool aState); |
|
342 |
||
343 |
void DisplaySpellEditor(const TInt aEditorFlag, const TDesC& aInitText, |
|
344 |
TCursorSelection aCurSel); |
|
345 |
void DisplaySpellEditorL(const TInt aEditorFlag, const TDesC& aInitText, |
|
346 |
TCursorSelection aCurSel); |
|
347 |
||
348 |
void HideSpellEditor(); |
|
349 |
||
350 |
HBufC* SpellTextInput(); |
|
351 |
void SetTCursorSelection(); |
|
352 |
||
353 |
void HandleEdwinEventL(CEikEdwin* , TEdwinEvent aEventType); |
|
354 |
||
355 |
TInt GetSoftKeyResID(); |
|
356 |
||
357 |
void HasNoFreeSpace(); |
|
358 |
||
359 |
TBool EnterMatchSelectionState(); |
|
360 |
||
361 |
TPluginInputMode PluginInputMode(); |
|
362 |
||
363 |
void UpdateCaseMode(); |
|
364 |
||
365 |
TBool IsGlobleNotes(); |
|
366 |
TBool IsDimed(); |
|
367 |
/** |
|
368 |
* Save the cursor visibility. This function is called from fep side, |
|
369 |
* because of sync cursor visibility |
|
370 |
* |
|
371 |
* @since v5.0 |
|
372 |
*/ |
|
373 |
void SetCursorVisibility(TBool aVisibility, TBool aReportPlugin = EFalse); |
|
374 |
/** |
|
375 |
* Get the correct indicator for VKB; |
|
376 |
* |
|
377 |
* @return The correct indicator state for VKB. |
|
378 |
*/ |
|
379 |
TAknEditingState VKBIndicatorState( TAknEditingState aOldState ); |
|
380 |
void ClosePeninputSetting(); |
|
381 |
||
382 |
/** |
|
383 |
* Show tooltip on FSQ to show the best guess word shown inline, |
|
384 |
* when it is necessary |
|
385 |
* |
|
386 |
* @param aText The tooltip text to be displayed |
|
387 |
* @return None |
|
388 |
*/ |
|
389 |
void ShowTooltipOnFSQL( TInt aSecondaryIdx ); |
|
390 |
||
391 |
/** |
|
392 |
* Hide tooltip on FSQ if necessary |
|
393 |
* |
|
394 |
* @return None |
|
395 |
*/ |
|
396 |
void HideTooltipOnFSQL(); |
|
397 |
||
398 |
/** |
|
399 |
* Open a candidate list to show contents in aItemArray |
|
400 |
* |
|
401 |
* @param aCandidateList ITI candidate data |
|
402 |
* @return None |
|
403 |
*/ |
|
404 |
void ShowCandidateListL( TFepITICandidateList aCandidateList ); |
|
405 |
||
406 |
/** |
|
407 |
* Hide candidate list |
|
408 |
* |
|
409 |
*/ |
|
410 |
void HideCandidateListL(); |
|
411 |
||
412 |
/** |
|
413 |
* Commit candidate word on FSQ |
|
414 |
* |
|
415 |
* @param aIndex the index in candidate lists; |
|
416 |
* @return None |
|
417 |
*/ |
|
418 |
void CommitCandidateWordOnFSQL( TInt aIndex ); |
|
419 |
||
420 |
/** |
|
421 |
* Check if ITI features is enabled when FSQ is opened. |
|
422 |
*/ |
|
423 |
TBool EnableITIOnFSQ(); |
|
424 |
||
425 |
/** |
|
426 |
* Check if ITI can be supported by FSQ. |
|
427 |
*/ |
|
428 |
TBool IsSupportITIOnFSQ(); |
|
429 |
||
430 |
/** |
|
431 |
* Restore some configuration after closing FSQ. |
|
432 |
* |
|
433 |
*/ |
|
434 |
void ResetItiStateL(); |
|
435 |
||
436 |
/* |
|
437 |
#ifdef RD_TACTILE_FEEDBACK |
|
438 |
TBool VKBIsOpened(); |
|
439 |
#endif // RD_TACTILE_FEEDBACK |
|
440 |
*/ |
|
441 |
||
442 |
void HandleiDimGainForeground(TBool aGain); |
|
443 |
||
444 |
void OnServerReady(TInt aErr); |
|
445 |
||
446 |
/** |
|
447 |
* Remove last focused window,which launches touch input, from open list. |
|
448 |
* |
|
449 |
* @since v5.0 |
|
450 |
*/ |
|
451 |
void RemoveLastFocusedWinFromOpenList(); |
|
452 |
||
453 |
/** |
|
454 |
* Set the editor pointer to NULL |
|
455 |
* |
|
456 |
* @since v5.0 |
|
457 |
* @param none |
|
458 |
* @return void |
|
459 |
*/ |
|
460 |
void ClearDestroyedEditorPointer(); |
|
461 |
||
462 |
/** |
|
463 |
* Get the editor state |
|
464 |
* |
|
465 |
* @since v5.0 |
|
466 |
* @param none |
|
467 |
* @return the pointer of editor state |
|
468 |
*/ |
|
469 |
CAknEdwinState* EdwinState(); |
|
470 |
||
471 |
public: // inline |
|
472 |
||
473 |
/** |
|
474 |
* Get current plugin input UI |
|
475 |
* |
|
476 |
* @since 3.2 |
|
477 |
* @return The pointer to MAknFepManagerInterface |
|
478 |
*/ |
|
479 |
inline MAknFepManagerInterface* CurrentPluginInputFepUI(); |
|
480 |
||
481 |
/** |
|
482 |
* Get current plugin input mode |
|
483 |
* |
|
484 |
* @since 3.2 |
|
485 |
* @return current plugin input mode |
|
486 |
*/ |
|
487 |
||
488 |
inline TBool PluginNativeRange(); |
|
489 |
||
490 |
inline void SetPluginNativeRange( TBool aPluginNativeRange ); |
|
491 |
||
492 |
inline TBool SyncWithPluginRange(); |
|
493 |
||
494 |
inline RPointerArray<HBufC>& MatchCandidateList(); |
|
495 |
||
496 |
inline TBool IsMatchState(); |
|
497 |
||
498 |
inline TBool IsSpellVisible(); |
|
499 |
||
500 |
inline void SetCursorSelection(TCursorSelection& aCursorSel); |
|
501 |
||
502 |
inline TCursorSelection CursorSelection(); |
|
503 |
||
504 |
inline void SetCaseUpdatesSupressed(TBool aCaseUpdatesSupressed); |
|
505 |
inline TBool CaseUpdatesSupressed(); |
|
506 |
||
507 |
inline void SetBeforeSpell(TBool aBeforeSpell); |
|
508 |
inline TBool BeforeSpell(); |
|
509 |
inline HBufC* GetSpellText(); |
|
510 |
inline void SpellText(HBufC* aSpellText); |
|
511 |
inline TBool IsNonLatinLanguage(TLanguage aLang); |
|
512 |
inline TInt PreviousPermitMode(); |
|
513 |
/** |
|
514 |
* In T9 predictive text input, if user press "Spell" button, a edit word query dialog is opened. |
|
515 |
* This Flag is set for this case to indicate whether edit wod query dialog is opened. |
|
516 |
* @param aIsEditWordQueryDlg ETrue means dialog is open, |
|
517 |
EFalse means dialog is not open. |
|
518 |
* @since v5.0 |
|
519 |
*/ |
|
520 |
inline void SetInEditWordQueryFlag(TBool aIsEditWordQueryDlg ); |
|
521 |
void LaunchPenInputLanguageSelectionL( TBool aLaunchedByTouchWin = EFalse ); |
|
522 |
void LaunchPenInputRecognitionWithDictionarySelectionL(); |
|
523 |
void LaunchPenInputWritingSpeedSelectionL(); |
|
524 |
void LaunchPenInputGuidingLineSelectionL(); |
|
525 |
inline TBool IsInGlobleNoteEditor(); |
|
526 |
void SetMenuState(TBool aUpdateEditor = ETrue); |
|
527 |
void ResetMenuState(TBool aUnDim = ETrue); |
|
528 |
||
529 |
/** |
|
530 |
* When ITI setting opened, set this flag to ETrue |
|
531 |
* |
|
532 |
* @param aOpen ETrue means dialog is open, |
|
533 |
* EFalse means dialog is not open. |
|
534 |
* @return None |
|
535 |
*/ |
|
536 |
inline void ITISettingDialogOpen( TBool aOpen ); |
|
537 |
||
538 |
/** |
|
539 |
* Check if tooltip box on FSQ is opened. |
|
540 |
* |
|
541 |
* @return if ETrue: Tooltip box on FSQ is enabled. |
|
542 |
*/ |
|
543 |
inline TBool IsTooltipOpenOnFSQ(); |
|
544 |
||
545 |
/** |
|
546 |
* Get whether inMenu has been opened. |
|
547 |
* InMenu is that any pop-up dialog, e.g. menu, SCT, is launched by fep. |
|
548 |
* |
|
549 |
* @since 5.0 |
|
550 |
* @return whether inMenu has been opened |
|
551 |
*/ |
|
552 |
inline TBool IsInMenuOpen(); |
|
553 |
||
554 |
/** |
|
555 |
* Get current plugin input mode even if current window is close. |
|
556 |
* The function is defferent from PluginInputMode(), PluginInputMode() |
|
557 |
* return EPluginInputModeNone if current input window is closed |
|
558 |
* |
|
559 |
* @since 5.0 |
|
560 |
* @return current plugin input mode |
|
561 |
*/ |
|
562 |
inline TPluginInputMode CurrentPluginInputMode(); |
|
563 |
||
564 |
inline void SetLaunchSCTInSpell( TBool aLaunchSCTInSpell ); |
|
565 |
private: |
|
566 |
||
567 |
/** |
|
568 |
* Initialize plugin UI, set permitted ranges, primary |
|
569 |
* range, case mode and etc. |
|
570 |
* |
|
571 |
* @since 3.2 |
|
572 |
* @Return None |
|
573 |
*/ |
|
574 |
void InitializePluginInputL(TInt aOpenMode, TInt aSuggestRange, TBool aCleanContent); |
|
575 |
||
576 |
/** |
|
577 |
* Launch plugin menu |
|
578 |
* |
|
579 |
* @since 3.2 |
|
580 |
* @param aResource Menu resource id. |
|
581 |
* @return None |
|
582 |
*/ |
|
583 |
void LaunchPenInputMenuL(TInt aResourceId, TBool aRemeber = ETrue); |
|
584 |
||
585 |
/** |
|
586 |
* Show pen input language setting of general setting view |
|
587 |
* |
|
588 |
* @since 3.2 |
|
589 |
* @return None |
|
590 |
*/ |
|
591 |
||
592 |
/** |
|
593 |
* Show pen input setting of general setting view |
|
594 |
* @since 3.2 |
|
595 |
* @param aData Key data |
|
596 |
* @return None |
|
597 |
*/ |
|
598 |
void LaunchPenInputSettingL(); |
|
599 |
||
600 |
/** |
|
601 |
* Parse editor text passed to plugin ICF |
|
602 |
* Only return current paragraph of current cursor position. |
|
603 |
* |
|
604 |
* @since 3.2 |
|
605 |
* @param aBuffer Editor text |
|
606 |
* @param aCurrent Current cursor position. |
|
607 |
* @param aFrom Returned paragraph start pos. |
|
608 |
* @param aTo Returned paragraph end pos. |
|
609 |
* @return None |
|
610 |
*/ |
|
611 |
void ParseInputContextContent(TDes& aBuffer, TInt aCurrent, |
|
612 |
TInt& aFrom, TInt& aTo); |
|
613 |
||
614 |
||
615 |
/** |
|
616 |
* Submit text input from plugin UI to editor |
|
617 |
* |
|
618 |
* @since 3.2 |
|
619 |
* @param aData Key data |
|
620 |
* @param aForcedMode Forced simluate event mode. |
|
621 |
* @return None |
|
622 |
*/ |
|
623 |
void SubmitUiPluginTextL(const TDesC& aData, |
|
624 |
TSimulateEventMode aForcedMode = EIgnor); |
|
625 |
||
626 |
/** |
|
627 |
* Handle key event sent from pen input server |
|
628 |
* |
|
629 |
* @since 3.2 |
|
630 |
* @param aData Key data |
|
631 |
* @return None |
|
632 |
*/ |
|
633 |
void OnPenInputServerKeyEventL(const TDesC& aData); |
|
634 |
||
635 |
/** |
|
636 |
* Sync indicator with plugin range |
|
637 |
* |
|
638 |
* @since 3.2 |
|
639 |
* @Return None |
|
640 |
*/ |
|
641 |
void SyncIndicatorWithPluginRangeL(); |
|
642 |
||
643 |
/** |
|
644 |
* Get current suggest mode |
|
645 |
* |
|
646 |
* @since 3.2 |
|
647 |
* @param aSuggestMode The mode suggested |
|
648 |
* @Return None |
|
649 |
*/ |
|
650 |
TBool GetCurSuggestMode( TPluginInputMode& aSuggestMode ); |
|
651 |
||
652 |
/** |
|
653 |
* Connect server |
|
654 |
* |
|
655 |
* @since 3.2 |
|
656 |
* @Return ETrue If connection sucess |
|
657 |
*/ |
|
658 |
TBool ConnectServer(); |
|
659 |
||
660 |
/** |
|
661 |
* Notify layout |
|
662 |
* |
|
663 |
* @since 3.2 |
|
664 |
* @param aOpenMode The current input mode |
|
665 |
* @param aSuggestRange The suggest range |
|
666 |
* @Return None |
|
667 |
*/ |
|
668 |
void NotifyLayoutL(TInt aOpenMode, TInt aSuggestRange, TBool aCleanContent); |
|
669 |
||
670 |
/** |
|
671 |
* verify if mode switch button enable |
|
672 |
* |
|
673 |
* @since 3.2 |
|
674 |
* @Return ETrue if mode switch button enable |
|
675 |
*/ |
|
676 |
TBool IsEnableModeSwitchBtn(); |
|
677 |
||
678 |
/** |
|
679 |
* verify if setting buttons enable |
|
680 |
* |
|
681 |
* @since 3.2 |
|
682 |
* @Return ETrue if setting buttons enable |
|
683 |
*/ |
|
684 |
TBool IsEnableSettingBtn(); |
|
685 |
||
686 |
/** |
|
687 |
* Notify layout the editor's keymapping |
|
688 |
* |
|
689 |
* @since 3.2 |
|
690 |
* @Return None |
|
691 |
*/ |
|
692 |
void NotifyLayoutKeymappingL(); |
|
693 |
||
694 |
/** |
|
695 |
* Test data query show status |
|
696 |
* @since 3.2 |
|
697 |
* |
|
698 |
* @return ETrue if data query is showing now, EFalse otherwise |
|
699 |
*/ |
|
700 |
TBool IsDisplayDataQuery(); |
|
701 |
||
702 |
/** |
|
703 |
* Show pen input setting of general setting view |
|
704 |
* |
|
705 |
* @since 3.2 |
|
706 |
* @param aForce ETrue means adjusting data query no matter current showing status, |
|
707 |
EFalse means adjusting data query window only first time |
|
708 |
* @return None |
|
709 |
*/ |
|
710 |
void RepositionDataQuery(TBool aForce); |
|
711 |
||
712 |
/** |
|
713 |
* Timer procedure for adjust data query position |
|
714 |
* |
|
715 |
* @param aPtr The pointer of CAknFepManager itself |
|
716 |
* @since 3.2 |
|
717 |
* @return 0.(meaningless) |
|
718 |
*/ |
|
719 |
static TInt AdjustDataQueryCallBackL(TAny *aPtr); |
|
720 |
||
721 |
||
722 |
static void FepObserverHandleCompletionOfTransactionL(MCoeFepObserver& aFepObserver); |
|
723 |
||
724 |
void CreateFingerItutChineseUiL(); |
|
725 |
||
726 |
/** |
|
727 |
* Launch Hwr Training UI |
|
728 |
* |
|
729 |
* @since 3.2 |
|
730 |
* @return None |
|
731 |
*/ |
|
732 |
void LaunchHwrTrainUiL(); |
|
733 |
||
734 |
TBool GetIndicatorImgID(const TInt IndicatorUID,TInt &aImage, TInt &aMask); |
|
735 |
TBool GetIndicatorImgIDL(const TInt IndicatorUID,TInt &aImage, TInt &aMask); |
|
736 |
||
737 |
void SetPromptText( TBool aCleanContent = ETrue ); |
|
738 |
||
739 |
void SetIcfAlignment(); |
|
740 |
||
741 |
void ConvertDigitToDigittype(TDigitType& digittype,TDes& aConvertedNumeral); |
|
742 |
||
743 |
void GetAllPredictiveCandidate(); |
|
744 |
void GetAllPredictiveCandidateL(); |
|
745 |
||
746 |
void AddCurrentWinToOpenListL(); |
|
747 |
||
748 |
void AddWinToOpenListL( RDrawableWindow* aWin); |
|
749 |
||
750 |
void RemoveCurrentWinFromOpenList(); |
|
751 |
||
752 |
TBool IsCurrentWindInOpenList(); |
|
753 |
||
754 |
TBool ExistInlineText(); |
|
755 |
||
756 |
TBool SetSyncCurSelIcfDataL( TFepInputContextFieldData& aIcfData ); |
|
757 |
||
758 |
TBool SetSyncIcfDataL( TFepInputContextFieldData& aIcfData, |
|
759 |
const TDesC& aLastEditorContent, |
|
760 |
const TDesC& aCurrentEditorContent ); |
|
761 |
||
762 |
TBool TextInlined( const TDesC& aLastEditorContent, const TDesC& aCurrentEditorContent); |
|
763 |
||
764 |
TBool TextInserted( const TDesC& aLastEditorContent, const TDesC& aCurrentEditorContent); |
|
765 |
||
766 |
TBool TextDeleted( const TDesC& aLastEditorContent, const TDesC& aCurrentEditorContent); |
|
767 |
||
768 |
TBool TextMultiTapped( const TDesC& aLastEditorContent, const TDesC& aCurrentEditorContent); |
|
769 |
||
770 |
void AdjustDataCase( TDes& aData ); |
|
771 |
||
772 |
TBool IsDimArrowKeys(); |
|
773 |
||
774 |
void LaunchHelpL(); |
|
775 |
void DimAllModeAndCase(CAknFepUiInterfaceMenuPane* aMenuPane); |
|
776 |
||
777 |
TInt RepeatStringFromLeft(const TDesC& aSubmitData, TDes& aEditorData); |
|
778 |
||
779 |
void InformMfneUiStatusL( TBool aOpened ); |
|
780 |
||
781 |
/** |
|
782 |
* Update editor state according to current ui state |
|
783 |
* |
|
784 |
* @since Symbian^3 |
|
785 |
* @param aOpened specifies current ui is opened or closed |
|
786 |
*/ |
|
787 |
void SetEdwinFlagsByUiStatus( TBool aOpened ); |
|
788 |
||
789 |
/** |
|
790 |
* Update state flags of specified editor |
|
791 |
* |
|
792 |
* @since Symbian^3 |
|
793 |
* @param aEdwin specifies the editor to be updated |
|
794 |
* @param aFlags editor state flags |
|
795 |
* @param aSet ETrue to add flags, or EFalse to remove flags. |
|
796 |
*/ |
|
797 |
void SetAknEdwinFlags( MCoeFepAwareTextEditor* aEdwin, TInt aFlags, TBool aSet ); |
|
798 |
||
799 |
void UpdatePredicState(); |
|
800 |
||
801 |
TBool NotifyInGlobalNoteEditorL(); |
|
802 |
||
803 |
TBool IsChineseIndicator( TAknEditingState aOldState ); |
|
804 |
||
805 |
TBool IsEditorCursorDisabled(); |
|
806 |
||
807 |
/** |
|
808 |
* Check if the cusror in editor is visible. |
|
809 |
* |
|
810 |
* @return ETrue: the cursos in editor is visible. |
|
811 |
* EFalse: the cursos in editor is invisible. |
|
812 |
*/ |
|
813 |
TBool IsEditorCursorVisible(); |
|
814 |
||
815 |
||
816 |
/** |
|
817 |
* Check if curor selection in editor is visible. |
|
818 |
* |
|
819 |
* @return ETrue: the cursos in editor is visible. |
|
820 |
* EFalse: the cursos in editor is invisible. |
|
821 |
*/ |
|
822 |
TBool IsEditorCursorSelVisible(); |
|
823 |
||
824 |
/** |
|
825 |
* Get scan code from hw keymapping. |
|
826 |
* |
|
827 |
* @param aKeyCode unicode of each virutal key text. |
|
828 |
*/ |
|
829 |
TInt GetScanCodeFromHwKeymapping( TUint aKeyCode ); |
|
830 |
||
831 |
/** |
|
832 |
* Check if those keys are IIT-supported keys |
|
833 |
* |
|
834 |
* @param aKeyEvent The keys to be checked. |
|
835 |
*/ |
|
836 |
TBool IsITISupportedKey( const TKeyEvent& aKeyEvent ); |
|
837 |
||
838 |
TPtiTextCase CaseForMappedCharacter(TChar aCharacter); |
|
839 |
||
840 |
TBool IsNeedToChangeTextCase( const TPtiTextCase& aTextCase ); |
|
841 |
||
842 |
/** |
|
843 |
* Do some configuration to make FSQ support ITI features |
|
844 |
* |
|
845 |
*/ |
|
846 |
void SetItiStateL(); |
|
847 |
||
848 |
/** |
|
849 |
* Config keyboard layout for ITI |
|
850 |
* |
|
851 |
*/ |
|
852 |
void SetItiKeyboardLayoutL(); |
|
853 |
||
854 |
/** |
|
855 |
* Restore keyboard layout after closing FSQ. |
|
856 |
*/ |
|
857 |
void ResetItiKeyboardLayoutL(); |
|
858 |
||
859 |
/** |
|
860 |
* Restore predict state. |
|
861 |
*/ |
|
862 |
void RestorePredictStateL(); |
|
863 |
||
864 |
/** |
|
865 |
* Check if the keycode belongs to dead keys. |
|
866 |
* |
|
867 |
* @param aKeyCode: key code to be checked |
|
868 |
* @return ETrue: belongs to ETrue |
|
869 |
* EFalse: doesn't belong to EFalse; |
|
870 |
*/ |
|
871 |
TBool IsDeadKeyCode( TUint aKeyCode ); |
|
872 |
||
873 |
/** |
|
874 |
* Notify app touch window state. |
|
875 |
* |
|
876 |
* @param aParam |
|
877 |
* @return None |
|
878 |
*/ |
|
879 |
void NotifyAppUiImeTouchWndStateL( const TBool aTouchState ); |
|
880 |
||
881 |
/** |
|
882 |
* Check if current editor support partial screen IMEs |
|
883 |
* |
|
884 |
* @return ETrue if support |
|
885 |
*/ |
|
886 |
TBool IsEditorSupportSplitIme(); |
|
887 |
||
888 |
void SetICFTextForSpellL(); |
|
889 |
||
890 |
void SendMatchListCmd(const RArray<TPtrC>& aList); |
|
891 |
/** |
|
892 |
* Initialize the Menu item in Option Menu for Arabic Finger HWR |
|
893 |
* |
|
894 |
* @CAknFepUiInterfaceMenuPane* aMenuPane The menu pane used to add more menu items |
|
895 |
*/ |
|
896 |
void InitMenuItemForArabicFingerHwrL(CAknFepUiInterfaceMenuPane* aMenuPane); |
|
897 |
||
898 |
/** |
|
899 |
* andling the menu cmd for changing the input mode |
|
900 |
* |
|
901 |
* @param aInputMode: the inputmode should be activate |
|
902 |
* @return None |
|
903 |
*/ |
|
904 |
void ProcessChangingInputModeCmdL(TInt aInputMode); |
|
905 |
||
906 |
private: // Data |
|
907 |
||
908 |
/** |
|
909 |
* The reference of fep manager |
|
910 |
*/ |
|
911 |
CAknFepManager& iFepMan; |
|
912 |
||
913 |
/** |
|
914 |
* The reference of language manager |
|
915 |
*/ |
|
916 |
CAknFepLanguageManager& iLangMan; |
|
917 |
||
918 |
/** |
|
919 |
* The reference of case manager |
|
920 |
*/ |
|
921 |
CAknFepCaseManager& iCaseMan; |
|
922 |
||
923 |
/** |
|
924 |
* The reference of shared data manager |
|
925 |
*/ |
|
926 |
CAknFepSharedDataInterface& iSharedData; |
|
927 |
||
928 |
||
929 |
/** |
|
930 |
* Current plugin UI interface |
|
931 |
*/ |
|
932 |
MAknFepManagerInterface* iCurrentPluginInputFepUI; |
|
933 |
||
934 |
/** |
|
935 |
* Current plugin input mode |
|
936 |
*/ |
|
937 |
TPluginInputMode iPluginInputMode; |
|
938 |
||
939 |
/** |
|
940 |
* Current plugin primary range |
|
941 |
*/ |
|
942 |
TInt iPluginPrimaryRange; |
|
943 |
||
944 |
/** |
|
945 |
* Update editor cursor timer |
|
946 |
*/ |
|
947 |
CPeriodic* iAdjustDataQueryTimer; |
|
948 |
||
949 |
/** |
|
950 |
* HKB predictive state before starting plugin IME |
|
951 |
*/ |
|
952 |
TBool iT9UsedBeforePluginInput; |
|
953 |
||
954 |
/** |
|
955 |
* Indicating connection state to pen input server |
|
956 |
*/ |
|
957 |
TBool iAutoCompBeforePluginInput; |
|
958 |
/** |
|
959 |
* Indicating connection state to pen input server |
|
960 |
*/ |
|
961 |
TBool iPenInputSvrConnected; |
|
962 |
||
963 |
/** |
|
964 |
* flags of layout UI submit status |
|
965 |
*/ |
|
966 |
TInt iLastSubmitCount; |
|
967 |
||
968 |
/** |
|
969 |
* Data query showing status |
|
970 |
*/ |
|
971 |
TBool iDataQueryAlreadyShow; |
|
972 |
||
973 |
/** |
|
974 |
* Plugin menu manager object |
|
975 |
*/ |
|
976 |
CAknFepPluginMenuManager* iPenInputMenu; |
|
977 |
||
978 |
/** |
|
979 |
* Pen input server handle |
|
980 |
*/ |
|
981 |
RPeninputServer iPenInputServer; |
|
982 |
||
983 |
/** |
|
984 |
* flags of language has been changed by setting |
|
985 |
*/ |
|
986 |
TInt iCurLanguage; |
|
987 |
||
988 |
/** |
|
989 |
* flags of fast swap by menu |
|
990 |
*/ |
|
991 |
TBool iFastSwapByMenu; |
|
992 |
||
993 |
MAknFepManagerInterface* iFingerItutChineseUI; |
|
994 |
||
995 |
TCursorSelection iCurSelPre; |
|
996 |
||
997 |
TCursorSelection iCurSelCur; |
|
998 |
||
999 |
TPluginSync iSyncType; |
|
1000 |
||
1001 |
HBufC* iIcfDataBuf; |
|
1002 |
||
1003 |
RPointerArray<HBufC> iCandidateList; |
|
1004 |
TInt iCandidateIndex; |
|
1005 |
||
1006 |
TFepInputAllCandidates iSendAllList; |
|
1007 |
||
1008 |
TBool iMatchState; |
|
1009 |
||
1010 |
TInt iIndicatorImgID; |
|
1011 |
CAknFepUiSpellContainer* iSpell; |
|
1012 |
||
1013 |
TBool iSpellOn; |
|
1014 |
||
1015 |
TCursorSelection iCursorSel; |
|
1016 |
||
1017 |
TInt iIndicatorTextID; |
|
1018 |
||
1019 |
TBool iCaseUpdatesSupressed; |
|
1020 |
||
1021 |
TBool iBeforeSpell; |
|
1022 |
||
1023 |
HBufC* iSpellText; |
|
1024 |
||
1025 |
TSpellCBA iSpellCba; |
|
1026 |
TBool iPenUiDimmed; |
|
1027 |
TBool iIsForeground; |
|
1028 |
||
1029 |
TInt iPreDocumentLengthForFep; |
|
1030 |
TInt iOpenPenUiFlag; |
|
1031 |
||
1032 |
TBool iPluginNativeRange; |
|
1033 |
||
1034 |
TBool iSyncWithPluginRange; |
|
1035 |
||
1036 |
RArray<TInt> iOpenWindowList; |
|
1037 |
TInt iLastFocusedWin; |
|
1038 |
||
1039 |
HBufC* iLastEditorContentBuf; |
|
1040 |
||
1041 |
TBool iModeChanged; |
|
1042 |
||
1043 |
TInt iPreviousCoseMode; |
|
1044 |
||
1045 |
TBool iLaunchMenu; |
|
1046 |
TBool iInMenu; // need to check whether it can be replaced by iLaunchMenu |
|
1047 |
TUint iCurMFNECap; |
|
1048 |
MCoeFepAwareTextEditor* iCurEditor; |
|
1049 |
MCoeFepAwareTextEditor* iOldFepAwareEditor; |
|
1050 |
||
1051 |
RDrawableWindow * iLastDataQueryWin; |
|
1052 |
||
1053 |
TInt iDefaultOrientation; |
|
1054 |
RBuf iEventData; |
|
1055 |
TBool iDisableSyncText; |
|
1056 |
TBool iPendingSyncReq; |
|
1057 |
TBool iHasSWEventCap; |
|
1058 |
TInt iCurPermitModes; |
|
1059 |
TBool isLanuchSCT; |
|
1060 |
TBool iInGlobleNoteEditor; |
|
1061 |
TBool iOrientationChanged; |
|
1062 |
TBool iInlineStateOn; |
|
1063 |
TInt iCharStartPostion; |
|
1064 |
/** |
|
1065 |
* Cursor Visibility |
|
1066 |
*/ |
|
1067 |
TInt iEditorPriority; |
|
1068 |
TBool iDimGainForeground; |
|
1069 |
TBool iEnableIndicatorBtn; |
|
1070 |
TBool iEnableSettingBtn; |
|
1071 |
TBool iEnableArrowBtn; |
|
1072 |
TBool iCursorVisibility; |
|
1073 |
TBool iForegroundChange; |
|
1074 |
TBool iResourceChange; |
|
1075 |
||
1076 |
TBool iLaunchHelp; |
|
1077 |
TInt iCurPermittedModes; |
|
1078 |
MCoeFepAwareTextEditor* iMfne; |
|
1079 |
||
1080 |
/** |
|
1081 |
* current focused editor |
|
1082 |
* not own |
|
1083 |
*/ |
|
1084 |
MCoeFepAwareTextEditor* iEdwin; |
|
1085 |
||
1086 |
TBool iMfneChanged; |
|
1087 |
TBool iIsInEditWordQueryDlg; |
|
1088 |
||
1089 |
TBool iPreferredUiMode; |
|
1090 |
||
1091 |
CRepository* iAvkonRepository; |
|
1092 |
||
1093 |
TBool iClosePluginInputMode; |
|
1094 |
||
1095 |
TBool iOrientationChangedfromUI; |
|
1096 |
||
1097 |
CPenInputGSInterface* iGsInterface; |
|
1098 |
RBuf iPreCaption; |
|
1099 |
TBool iIsPassWord; |
|
1100 |
||
1101 |
/** |
|
1102 |
* Store the last keyboard layout. |
|
1103 |
*/ |
|
1104 |
TInt iLastKeyboardLayout; |
|
1105 |
||
1106 |
||
1107 |
/** |
|
1108 |
* Indicate if predictive setting dialog opened. |
|
1109 |
*/ |
|
1110 |
TBool iITISettingDialogOpen; |
|
1111 |
||
1112 |
/** |
|
1113 |
* Indicate if current input mode is qwerty mode. |
|
1114 |
*/ |
|
1115 |
TBool iIsITIConfigured; |
|
1116 |
||
1117 |
/** |
|
1118 |
* Indicate if tooltip on FSQ is opened |
|
1119 |
*/ |
|
1120 |
TBool iTooltipOpenOnFSQ; |
|
1121 |
||
1122 |
TInt iAlignment; |
|
1123 |
||
1124 |
CConnectAo* iConnectAo; |
|
1125 |
||
1126 |
/** |
|
1127 |
* Indicate if need fetch the dim state from peninputserver |
|
1128 |
*/ |
|
1129 |
TBool iNeedFetchDimState; |
|
1130 |
||
1131 |
/** |
|
1132 |
* save the current dim state |
|
1133 |
*/ |
|
1134 |
TBool iCurrentDimState; |
|
1135 |
||
1136 |
TBool iLaunchSCTInSpell; |
|
1137 |
||
1138 |
TBool iFocuschangedForSpellEditor; |
|
1139 |
||
1140 |
/** |
|
1141 |
* Indicate whether portrait FSQ feature is enabled |
|
1142 |
*/ |
|
1143 |
TBool iPortraitFSQEnabled; |
|
1144 |
}; |
|
1145 |
||
1146 |
class CConnectAo : public CActive |
|
1147 |
{ |
|
1148 |
public: |
|
1149 |
||
1150 |
CConnectAo(CAknFepPluginManager* aClient); |
|
1151 |
||
1152 |
/** |
|
1153 |
* From CActive |
|
1154 |
* will be called when stroke timer ends |
|
1155 |
* |
|
1156 |
* @since S60 v4.0 |
|
1157 |
*/ |
|
1158 |
void RunL(); |
|
1159 |
||
1160 |
/** |
|
1161 |
* From CActive |
|
1162 |
* will be called if RunL leaves |
|
1163 |
* |
|
1164 |
* @since S60 v4.0 |
|
1165 |
*/ |
|
1166 |
TInt RunError(TInt aError); |
|
1167 |
||
1168 |
/** |
|
1169 |
* From CActive |
|
1170 |
* will be called when stroke timer has been cancelled |
|
1171 |
* |
|
1172 |
* @since S60 v4.0 |
|
1173 |
*/ |
|
1174 |
void DoCancel(); |
|
1175 |
void RequestConnect(); |
|
1176 |
TRequestStatus& RequestStatus(); |
|
1177 |
||
1178 |
CAknFepPluginManager* iClient; |
|
1179 |
}; |
|
1180 |
||
1181 |
||
1182 |
// --------------------------------------------------------------------------- |
|
1183 |
// CAknFepPluginManager::CurrentPluginInputFepUI |
|
1184 |
// (other items were commented in a header) |
|
1185 |
// --------------------------------------------------------------------------- |
|
1186 |
// |
|
1187 |
inline MAknFepManagerInterface* CAknFepPluginManager::CurrentPluginInputFepUI() |
|
1188 |
{ |
|
1189 |
return iCurrentPluginInputFepUI; |
|
1190 |
} |
|
1191 |
||
1192 |
inline TBool CAknFepPluginManager::PluginNativeRange() |
|
1193 |
{ |
|
1194 |
return iPluginNativeRange; |
|
1195 |
} |
|
1196 |
||
1197 |
inline TBool CAknFepPluginManager::SyncWithPluginRange() |
|
1198 |
{ |
|
1199 |
return iSyncWithPluginRange; |
|
1200 |
} |
|
1201 |
||
1202 |
inline void CAknFepPluginManager::SetPluginNativeRange( TBool aPluginNativeRange ) |
|
1203 |
{ |
|
1204 |
iPluginNativeRange = aPluginNativeRange; |
|
1205 |
} |
|
1206 |
||
1207 |
inline RPointerArray<HBufC>& CAknFepPluginManager::MatchCandidateList() |
|
1208 |
{ |
|
1209 |
return iCandidateList; |
|
1210 |
} |
|
1211 |
||
1212 |
inline TBool CAknFepPluginManager::IsMatchState() |
|
1213 |
{ |
|
1214 |
return iMatchState; |
|
1215 |
} |
|
1216 |
||
1217 |
inline TBool CAknFepPluginManager::IsSpellVisible() |
|
1218 |
{ |
|
1219 |
return iSpellOn; |
|
1220 |
} |
|
1221 |
||
1222 |
inline void CAknFepPluginManager::SetCursorSelection(TCursorSelection& aCursorSel) |
|
1223 |
{ |
|
1224 |
iCursorSel = aCursorSel; |
|
1225 |
} |
|
1226 |
||
1227 |
inline TCursorSelection CAknFepPluginManager::CursorSelection() |
|
1228 |
{ |
|
1229 |
return iCursorSel; |
|
1230 |
} |
|
1231 |
||
1232 |
inline void CAknFepPluginManager::SetCaseUpdatesSupressed(TBool aCaseUpdatesSupressed) |
|
1233 |
{ |
|
1234 |
iCaseUpdatesSupressed = aCaseUpdatesSupressed; |
|
1235 |
} |
|
1236 |
||
1237 |
inline TBool CAknFepPluginManager::CaseUpdatesSupressed() |
|
1238 |
{ |
|
1239 |
return iCaseUpdatesSupressed; |
|
1240 |
} |
|
1241 |
||
1242 |
inline void CAknFepPluginManager::SetBeforeSpell(TBool aBeforeSpell) |
|
1243 |
{ |
|
1244 |
iBeforeSpell = aBeforeSpell; |
|
1245 |
} |
|
1246 |
||
1247 |
inline TBool CAknFepPluginManager::BeforeSpell() |
|
1248 |
{ |
|
1249 |
return iBeforeSpell; |
|
1250 |
} |
|
1251 |
||
1252 |
inline HBufC* CAknFepPluginManager::GetSpellText() |
|
1253 |
{ |
|
1254 |
return iSpellText; |
|
1255 |
} |
|
1256 |
||
1257 |
inline void CAknFepPluginManager::SpellText(HBufC* aSpellText) |
|
1258 |
{ |
|
1259 |
if (aSpellText) |
|
1260 |
{ |
|
1261 |
delete iSpellText; |
|
1262 |
iSpellText = aSpellText->Alloc(); |
|
1263 |
} |
|
1264 |
else |
|
1265 |
{ |
|
1266 |
delete iSpellText; |
|
1267 |
iSpellText = NULL; |
|
1268 |
} |
|
1269 |
} |
|
1270 |
||
1271 |
inline TBool CAknFepPluginManager::IsNonLatinLanguage(TLanguage aLang) |
|
1272 |
{ |
|
1273 |
return (aLang == ELangRussian) || (aLang == ELangBulgarian ) || |
|
1274 |
(aLang == ELangUkrainian) || (aLang == ELangUrdu ) || |
|
1275 |
(aLang == ELangVietnamese) || (aLang == ELangThai ) || |
|
1276 |
(aLang == ELangArabic) || (aLang == ELangFarsi ) || |
|
1277 |
(aLang == ELangHebrew) ; |
|
1278 |
} |
|
1279 |
||
1280 |
inline TInt CAknFepPluginManager::PreviousPermitMode() |
|
1281 |
{ |
|
1282 |
return iCurPermitModes; |
|
1283 |
} |
|
1284 |
inline void CAknFepPluginManager::SetInEditWordQueryFlag(TBool aIsEditWordQueryDlg ) |
|
1285 |
{ |
|
1286 |
iIsInEditWordQueryDlg = aIsEditWordQueryDlg; |
|
1287 |
} |
|
1288 |
||
1289 |
inline TBool CAknFepPluginManager::IsInGlobleNoteEditor() |
|
1290 |
{ |
|
1291 |
return iInGlobleNoteEditor; |
|
1292 |
} |
|
1293 |
||
1294 |
inline void CAknFepPluginManager::ITISettingDialogOpen( TBool aOpen ) |
|
1295 |
{ |
|
1296 |
iITISettingDialogOpen = aOpen; |
|
1297 |
} |
|
1298 |
||
1299 |
inline TBool CAknFepPluginManager::IsTooltipOpenOnFSQ() |
|
1300 |
{ |
|
1301 |
return iTooltipOpenOnFSQ; |
|
1302 |
} |
|
1303 |
||
1304 |
inline TBool CAknFepPluginManager::IsInMenuOpen() |
|
1305 |
{ |
|
1306 |
return iInMenu; |
|
1307 |
} |
|
1308 |
||
1309 |
inline TPluginInputMode CAknFepPluginManager::CurrentPluginInputMode() |
|
1310 |
{ |
|
1311 |
return iPluginInputMode; |
|
1312 |
} |
|
1313 |
||
1314 |
inline void CAknFepPluginManager::SetLaunchSCTInSpell( TBool aLaunchSCTInSpell ) |
|
1315 |
{ |
|
1316 |
iLaunchSCTInSpell = aLaunchSCTInSpell; |
|
1317 |
} |
|
1318 |
||
1319 |
#endif //RD_SCALABLE_UI_V2 |
|
1320 |
||
1321 |
#endif // __AKN_FEP_PLUGIN_MANAGER__ |
|
1322 |
||
1323 |
// End of file |