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