|
1 /* |
|
2 * Copyright (c) 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: Provides the CAknFepUiSpellInputPane definition. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 #ifndef AKNFEP_SPELLINPUTPANE_H |
|
30 #define AKNFEP_SPELLINPUTPANE_H |
|
31 |
|
32 #include <coecntrl.h> // for CCoeControl |
|
33 |
|
34 // FORWARD DECLARATIONS |
|
35 class CEikEdwin; |
|
36 class MEikEdwinObserver; |
|
37 |
|
38 /** |
|
39 * CDicInputPane input pane class. |
|
40 */ |
|
41 class CAknFepUiSpellInputPane : public CCoeControl |
|
42 { |
|
43 public: // Constructors and destructor |
|
44 |
|
45 /** |
|
46 * Two-phased constructor. |
|
47 * @param aParent Parent control for container. |
|
48 * @param aRect Frame rectangle for container. |
|
49 * @return A Pointer to new input pane. |
|
50 */ |
|
51 static CAknFepUiSpellInputPane* NewL( CCoeControl* aParent, |
|
52 const TInt aEditorFlag, |
|
53 const TInt aEditorCase, |
|
54 const TInt aEditorSCTResID, |
|
55 const TBool aIsSplitEditor ); |
|
56 |
|
57 /** |
|
58 * Destructor. |
|
59 */ |
|
60 virtual ~CAknFepUiSpellInputPane(); |
|
61 |
|
62 public: // New functions |
|
63 |
|
64 /** |
|
65 * Return input win. |
|
66 * @return A pointer to the input editor object. |
|
67 */ |
|
68 CEikEdwin* InputWin() const; |
|
69 |
|
70 /** |
|
71 * Set input win observer |
|
72 * @param aObserver input win observer |
|
73 */ |
|
74 void SetInputWinObserver( MEikEdwinObserver* aObserver ); |
|
75 |
|
76 /** |
|
77 * Set the content of input win |
|
78 * @param aDes the text to be set |
|
79 */ |
|
80 void SetInputWinTextL( const TDesC* aDes ); |
|
81 |
|
82 /** |
|
83 * Selects the entire document of input win |
|
84 */ |
|
85 void SelectAllL(); |
|
86 |
|
87 /** |
|
88 * SizeChanged resize the controls |
|
89 **/ |
|
90 void SizeChanged(); |
|
91 |
|
92 public: // Functions from base classes |
|
93 |
|
94 /** |
|
95 * From CoeControl, return the container's input capabilities. |
|
96 * @return The input capabilities of the container |
|
97 */ |
|
98 TCoeInputCapabilities InputCapabilities() const; |
|
99 |
|
100 /** |
|
101 * From CoeControl, Handles key events. |
|
102 * @param aKeyEvent The key event. |
|
103 * @param aType The type of key event: EEventKey, |
|
104 * EEventKeyUp or EEventKeyDown. |
|
105 * @return The value to indicates whether or not |
|
106 * the key event was used by this control |
|
107 */ |
|
108 TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType ); |
|
109 |
|
110 private: |
|
111 |
|
112 /** |
|
113 * C++ default constructor. |
|
114 */ |
|
115 CAknFepUiSpellInputPane(); |
|
116 |
|
117 /** |
|
118 * EPOC default constructor. |
|
119 * @param aParent Parent control for container. |
|
120 * @param aRect Frame rectangle for container. |
|
121 */ |
|
122 void ConstructL( CCoeControl* aParent, const TInt aEditorFlag, |
|
123 const TInt aEditorCase, const TInt aEditorSCTResID, const TBool aIsSplitEditor ); |
|
124 |
|
125 private: // Functions from base classes |
|
126 |
|
127 /** |
|
128 * From CoeControl, CountComponentControls. |
|
129 */ |
|
130 TInt CountComponentControls() const; |
|
131 |
|
132 /** |
|
133 * From CoeControl, ComponentControl. |
|
134 */ |
|
135 CCoeControl* ComponentControl( TInt aIndex ) const; |
|
136 |
|
137 /** |
|
138 * From CoeControl, Draw. |
|
139 */ |
|
140 void Draw( const TRect& aRect ) const; |
|
141 |
|
142 /** |
|
143 * From CoeControl, FocusChanged. |
|
144 */ |
|
145 void FocusChanged( TDrawNow aDrawNow ); |
|
146 |
|
147 private: // data |
|
148 |
|
149 CEikEdwin* iInputWin; |
|
150 }; |
|
151 |
|
152 #endif // AKNFEP_SPELLINPUTPANE_H |
|
153 |
|
154 // End of File |