|
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 CAknFepUiSpellContainer definition. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 #ifndef AKNFEP_SPELLCONTAINER_H |
|
30 #define AKNFEP_SPELLCONTAINER_H |
|
31 |
|
32 // INCLUDES |
|
33 #include <coecntrl.h> // for CCoeControl |
|
34 #include <eiklbo.h> // for MEikListBoxObserver |
|
35 #include <badesca.h> // for CDesCArray |
|
36 |
|
37 |
|
38 // FORWARD DECLARATIONS |
|
39 class CAknFepUiSpellInputPane; |
|
40 |
|
41 // CLASS DECLARATION |
|
42 |
|
43 /** |
|
44 * CAknFepUiSpellContainer container control class. |
|
45 */ |
|
46 class CAknFepUiSpellContainer : public CCoeControl |
|
47 { |
|
48 public: // Constructors and destructor |
|
49 |
|
50 /** |
|
51 * Two-phased constructor. |
|
52 * @param aRect Frame rectangle for container. |
|
53 * @param aModel Data model of the application. |
|
54 * @return A Pointer to new dictionary container. |
|
55 */ |
|
56 static CAknFepUiSpellContainer* NewL(const TInt aEditorFlag, const TInt aEditorCase, |
|
57 const TInt aEditorSCTResID); |
|
58 |
|
59 /** |
|
60 * Destructor. |
|
61 */ |
|
62 virtual ~CAknFepUiSpellContainer(); |
|
63 |
|
64 CAknFepUiSpellInputPane* InputPane(); |
|
65 |
|
66 void SetInputWinObserver( MEikEdwinObserver* aObserver ); |
|
67 |
|
68 private: |
|
69 |
|
70 /** |
|
71 * C++ default constructor. |
|
72 */ |
|
73 CAknFepUiSpellContainer(); |
|
74 |
|
75 /** |
|
76 * EPOC default constructor. |
|
77 * @param aRect Frame rectangle for container. |
|
78 * @param aModel Data model of the application. |
|
79 */ |
|
80 void ConstructL(const TInt aEditorFlag, const TInt aEditorCase, const TInt aEditorSCTResID); |
|
81 |
|
82 private: // Functions from base classes |
|
83 |
|
84 /** |
|
85 * From CoeControl, CountComponentControls. |
|
86 */ |
|
87 TInt CountComponentControls() const; |
|
88 |
|
89 /** |
|
90 * From CCoeControl, ComponentControl. |
|
91 */ |
|
92 CCoeControl* ComponentControl( TInt aIndex ) const; |
|
93 |
|
94 /** |
|
95 * From CCoeControl, Draw. |
|
96 */ |
|
97 void Draw( const TRect& aRect ) const; |
|
98 |
|
99 /** |
|
100 * From CCoeControl, return the container's input capabilities. |
|
101 */ |
|
102 TCoeInputCapabilities InputCapabilities() const; |
|
103 |
|
104 /** |
|
105 * From CCoeControl, handle key events. |
|
106 */ |
|
107 TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType ); |
|
108 |
|
109 |
|
110 void SetContainerRect(); |
|
111 |
|
112 HBufC* InputText(); |
|
113 |
|
114 |
|
115 protected: |
|
116 |
|
117 void SizeChanged(); |
|
118 |
|
119 void FocusChanged(TDrawNow aDrawNow); |
|
120 |
|
121 private: // data |
|
122 |
|
123 CAknFepUiSpellInputPane* iInputPane; |
|
124 |
|
125 }; |
|
126 |
|
127 #endif // AKNFEP_SPELLCONTAINER_H |
|
128 |
|
129 // End of File |