|
1 /* |
|
2 * Copyright (c) 2006-2006 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 command data structure |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 #ifndef _PENINPUTPARAM_H |
|
33 #define _PENINPUTPARAM_H |
|
34 |
|
35 #include <frmtlay.h> |
|
36 #include <badesca.h> |
|
37 |
|
38 enum TPenICFCmd |
|
39 { |
|
40 EPeninputICFInitial, |
|
41 EPeninputICFDelete, |
|
42 EPeninputICFReplace, |
|
43 EPeninputICFSetCurSel |
|
44 }; |
|
45 |
|
46 enum TFepInputContextFieldDataFlag |
|
47 { |
|
48 EFepICFDataInValid, |
|
49 EFepICFDataInlineNoMatch, |
|
50 EFepICFDataDirectionLTR, |
|
51 EFepICFDataDirectionRTL, |
|
52 EFepICFDataDirectionMFNE |
|
53 }; |
|
54 enum TPeninputAppInfo |
|
55 { |
|
56 EAppTitle, |
|
57 EAppEditorPrompt, |
|
58 EAppIndicatorMsg, |
|
59 /* Teleca change begin, 19.05.2009 ssal */ |
|
60 EAppByteWarningMsg, |
|
61 /* Teleca change end, 19.05.2009 ssal */ |
|
62 /* Teleca change begin, 09.09.2009 ssal */ |
|
63 EAppMessageTypeChangeMsg |
|
64 /* Teleca change begin, 9.09.2009 ssal */ |
|
65 }; |
|
66 |
|
67 //structure for input context field data |
|
68 struct TFepInputContextFieldData |
|
69 { |
|
70 TPenICFCmd iCmd; |
|
71 TCursorSelection iCurSel; //current cursor selection |
|
72 TPtrC iText; // The text sent to input context field |
|
73 TInt iStartPos; |
|
74 TInt iLength; |
|
75 TInt iMidPos; |
|
76 TBool iCursorVisibility; // Cursor visibility flag, indicates whether cursor need be shown in input context field. |
|
77 TBool iCursorSelVisible; // The flag of the cursor if can be moved |
|
78 TRect iRect; // Stands for current cursor area in screen coordinate |
|
79 TFepInputContextFieldDataFlag iFlag; |
|
80 TBool iLeadingEdge; |
|
81 |
|
82 /** |
|
83 * The unique handle for current text content. Each editor has different handle. |
|
84 */ |
|
85 TInt iContentHandle; |
|
86 |
|
87 /** |
|
88 * Reservered field, for future extension |
|
89 */ |
|
90 TInt iReservered; |
|
91 |
|
92 TFepInputContextFieldData(TInt aHandle = -1) |
|
93 :iMidPos(-1), iFlag(EFepICFDataInValid), iContentHandle(aHandle),iReservered(0) |
|
94 { |
|
95 } |
|
96 |
|
97 }; |
|
98 |
|
99 struct TFepInputCandidateList |
|
100 { |
|
101 TPtrC iCandidate[3]; |
|
102 }; |
|
103 struct TFepInputAllCandidates |
|
104 { |
|
105 RArray<TPtrC> iCandidates; |
|
106 }; |
|
107 struct TFepIndicatorInfo |
|
108 { |
|
109 TInt iIndicatorImgID; |
|
110 TInt iIndicatorMaskID; |
|
111 TInt iIndicatorTextImgID; |
|
112 TInt iIndicatorTextMaskID; |
|
113 }; |
|
114 |
|
115 struct TFepPromptText |
|
116 { |
|
117 TInt iLines; |
|
118 TPtrC iText; |
|
119 TBool iCleanContent; |
|
120 }; |
|
121 |
|
122 /** |
|
123 * ITI tooltip text data |
|
124 */ |
|
125 struct TFepITITooltipText |
|
126 { |
|
127 TInt iDataSize; |
|
128 TPtrC iText; |
|
129 }; |
|
130 |
|
131 /** |
|
132 * ITI candidate list data |
|
133 */ |
|
134 struct TFepITICandidateList |
|
135 { |
|
136 CDesCArray* iItemArray; |
|
137 TInt iActiveIndex; |
|
138 }; |
|
139 |
|
140 class CPtiEngine; |
|
141 class CCoeControl; |
|
142 struct TPeninputLayoutData |
|
143 { |
|
144 CPtiEngine* iPtiEngine; |
|
145 CCoeControl* iPenUiWnd; |
|
146 }; |
|
147 struct TFepSymbolOfHardwareOne |
|
148 { |
|
149 TInt iSymbol1; |
|
150 TInt iSymbol2; |
|
151 TInt iSymbol3; |
|
152 }; |
|
153 #endif |