41 } |
41 } |
42 |
42 |
43 public: // New functions |
43 public: // New functions |
44 |
44 |
45 /** |
45 /** |
46 * Sets the new text to the underlying CEikEdwin |
46 * Sets the new text to the underlying CEikEdvin |
47 * @param aText The new content |
47 * @param aText The new content |
48 */ |
48 */ |
49 virtual void SetTextL(const TDesC& aText) = 0; |
49 virtual void SetTextL(const TDesC& aText) = 0; |
50 |
50 |
51 /** |
51 /** |
52 * Returns the text contained in the underlying CEikEdwin |
52 * Returns the text contained in the underlying CEikEdvin |
53 * @return HBufC* The text |
53 * @return HBufC* The text |
54 */ |
54 */ |
55 virtual const HBufC* Text() = 0; |
55 virtual const HBufC* Text() = 0; |
|
56 |
|
57 /** |
|
58 * Handles editor events |
|
59 * |
|
60 * @since S60 5.2 |
|
61 * @param aReason, editor event |
|
62 */ |
|
63 virtual void HandleEditorEvent( TInt aReason ) = 0; |
|
64 |
|
65 private: |
56 }; |
66 }; |
57 } |
67 } |
58 |
68 |
59 /** |
69 /** |
60 * @ingroup group_xntexteditorfactory |
70 * @ingroup group_xntexteditorfactory |
61 * @lib xntexteditorfactory.lib |
71 * @lib xntexteditorfactory.lib |
62 * @since S60 |
72 * @since S60 |
63 */ |
73 */ |
64 class CXnTextEditor : public CXnComponent, public XnTextEditorInterface::MXnTextEditorInterface |
74 class CXnTextEditor : public CXnComponent, public XnTextEditorInterface::MXnTextEditorInterface |
65 { |
75 { |
|
76 public: |
|
77 |
|
78 /** |
|
79 * Editor events |
|
80 */ |
|
81 enum TEditorEvent |
|
82 { |
|
83 KActivateTextEditor, |
|
84 KDeactivateTextEditor, |
|
85 KRemoveSplitInputFromStack, |
|
86 KKeepSplitInputInStack |
|
87 }; |
66 public: |
88 public: |
67 |
89 |
68 /** |
90 /** |
69 * 2 phase construction. |
91 * 2 phase construction. |
70 */ |
92 */ |
76 virtual ~CXnTextEditor(); |
98 virtual ~CXnTextEditor(); |
77 |
99 |
78 public: // New functions |
100 public: // New functions |
79 |
101 |
80 /** |
102 /** |
81 * Sets the new content to the underlying CEikEdwin |
103 * Sets the new content to the underlying CEikEdvin |
82 * @param aText The new content |
104 * @param aText The new content |
83 */ |
105 */ |
84 void SetTextL(const TDesC& aText); |
106 void SetTextL(const TDesC& aText); |
85 |
107 |
86 /** |
108 /** |
87 * Returns the text contained in the underlying CEikEdwin |
109 * Returns the text contained in the underlying CEikEdvin |
88 * @return HBufC* The text |
110 * @return HBufC* The text |
89 */ |
111 */ |
90 const HBufC* Text(); |
112 const HBufC* Text(); |
|
113 |
|
114 /** |
|
115 * Handles editor events |
|
116 * |
|
117 * @since S60 5.2 |
|
118 * @param aReason, editor event |
|
119 */ |
|
120 void HandleEditorEvent( TInt aReason ); |
91 |
121 |
92 public: // from CCoeControl |
122 public: // from CCoeControl |
93 |
123 |
94 /** |
124 /** |
95 * Create a component interface according to the given type. |
125 * Create a component interface according to the given type. |