|
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 |
|
56 /** |
|
57 * Destructor. |
|
58 */ |
|
59 virtual ~CAknFepUiSpellInputPane(); |
|
60 |
|
61 public: // New functions |
|
62 |
|
63 /** |
|
64 * Return input win. |
|
65 * @return A pointer to the input editor object. |
|
66 */ |
|
67 CEikEdwin* InputWin() const; |
|
68 |
|
69 /** |
|
70 * Set input win observer |
|
71 * @param aObserver input win observer |
|
72 */ |
|
73 void SetInputWinObserver( MEikEdwinObserver* aObserver ); |
|
74 |
|
75 /** |
|
76 * Set the content of input win |
|
77 * @param aDes the text to be set |
|
78 */ |
|
79 void SetInputWinTextL( const TDesC* aDes ); |
|
80 |
|
81 /** |
|
82 * Selects the entire document of input win |
|
83 */ |
|
84 void SelectAllL(); |
|
85 |
|
86 /** |
|
87 * SizeChanged resize the controls |
|
88 **/ |
|
89 void SizeChanged(); |
|
90 |
|
91 public: // Functions from base classes |
|
92 |
|
93 /** |
|
94 * From CoeControl, return the container's input capabilities. |
|
95 * @return The input capabilities of the container |
|
96 */ |
|
97 TCoeInputCapabilities InputCapabilities() const; |
|
98 |
|
99 /** |
|
100 * From CoeControl, Handles key events. |
|
101 * @param aKeyEvent The key event. |
|
102 * @param aType The type of key event: EEventKey, |
|
103 * EEventKeyUp or EEventKeyDown. |
|
104 * @return The value to indicates whether or not |
|
105 * the key event was used by this control |
|
106 */ |
|
107 TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType ); |
|
108 |
|
109 private: |
|
110 |
|
111 /** |
|
112 * C++ default constructor. |
|
113 */ |
|
114 CAknFepUiSpellInputPane(); |
|
115 |
|
116 /** |
|
117 * EPOC default constructor. |
|
118 * @param aParent Parent control for container. |
|
119 * @param aRect Frame rectangle for container. |
|
120 */ |
|
121 void ConstructL( CCoeControl* aParent, const TInt aEditorFlag, |
|
122 const TInt aEditorCase, const TInt aEditorSCTResID ); |
|
123 |
|
124 private: // Functions from base classes |
|
125 |
|
126 /** |
|
127 * From CoeControl, CountComponentControls. |
|
128 */ |
|
129 TInt CountComponentControls() const; |
|
130 |
|
131 /** |
|
132 * From CoeControl, ComponentControl. |
|
133 */ |
|
134 CCoeControl* ComponentControl( TInt aIndex ) const; |
|
135 |
|
136 /** |
|
137 * From CoeControl, Draw. |
|
138 */ |
|
139 void Draw( const TRect& aRect ) const; |
|
140 |
|
141 /** |
|
142 * From CoeControl, FocusChanged. |
|
143 */ |
|
144 void FocusChanged( TDrawNow aDrawNow ); |
|
145 |
|
146 private: // data |
|
147 |
|
148 CEikEdwin* iInputWin; |
|
149 }; |
|
150 |
|
151 #endif // AKNFEP_SPELLINPUTPANE_H |
|
152 |
|
153 // End of File |