|
1 /* |
|
2 * Copyright (c) 2002 - 2007 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: Test EIKEDWIN.h |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "testsdkeditorsedwin.h" |
|
20 |
|
21 // ============================ MEMBER FUNCTIONS =============================== |
|
22 |
|
23 // ----------------------------------------------------------------------------- |
|
24 // CTestSDKEditorsEdwin::ActivateGc |
|
25 // ----------------------------------------------------------------------------- |
|
26 void CTestSDKEditorsEdwin::ActivateGc() |
|
27 { |
|
28 CEikEdwin::ActivateGc(); |
|
29 } |
|
30 |
|
31 // ----------------------------------------------------------------------------- |
|
32 // CTestSDKEditorsEdwin::DeactivateGc |
|
33 // ----------------------------------------------------------------------------- |
|
34 void CTestSDKEditorsEdwin::DeactivateGc() |
|
35 { |
|
36 CEikEdwin::DeactivateGc(); |
|
37 } |
|
38 |
|
39 // ----------------------------------------------------------------------------- |
|
40 // CTestSDKEditorsEdwin::EditObserver |
|
41 // ----------------------------------------------------------------------------- |
|
42 void CTestSDKEditorsEdwin::EditObserver( TInt aStartEdit,TInt aEditLength ) |
|
43 { |
|
44 CEikEdwin::EditObserver( aStartEdit, aEditLength ); |
|
45 } |
|
46 |
|
47 // ----------------------------------------------------------------------------- |
|
48 // CTestSDKEditorsEdwin::TrappedDraw |
|
49 // ----------------------------------------------------------------------------- |
|
50 void CTestSDKEditorsEdwin::TrappedDraw(const TRect& aRect) const |
|
51 { |
|
52 CEikEdwin::TrappedDraw( aRect ); |
|
53 } |
|
54 |
|
55 // ----------------------------------------------------------------------------- |
|
56 // CTestSDKEditorsEdwin::BaseConstructL |
|
57 // ----------------------------------------------------------------------------- |
|
58 void CTestSDKEditorsEdwin::BaseConstructL() |
|
59 { |
|
60 CEikEdwin::BaseConstructL(); |
|
61 } |
|
62 |
|
63 // ----------------------------------------------------------------------------- |
|
64 // CTestSDKEditorsEdwin::DrawContents |
|
65 // ----------------------------------------------------------------------------- |
|
66 void CTestSDKEditorsEdwin::DrawContents() |
|
67 { |
|
68 CEikEdwin::DrawContents(); |
|
69 } |
|
70 |
|
71 // ----------------------------------------------------------------------------- |
|
72 // CTestSDKEditorsEdwin::FormatTextL |
|
73 // ----------------------------------------------------------------------------- |
|
74 void CTestSDKEditorsEdwin::FormatTextL() |
|
75 { |
|
76 CEikEdwin::FormatTextL(); |
|
77 } |
|
78 |
|
79 // ----------------------------------------------------------------------------- |
|
80 // CTestSDKEditorsEdwin::DeleteHighlightL |
|
81 // ----------------------------------------------------------------------------- |
|
82 TInt CTestSDKEditorsEdwin::DeleteHighlightL( TBool& aChanged, |
|
83 TBool aIsBackSpace, |
|
84 TBool aPromptConfirmation ) |
|
85 { |
|
86 return CEikEdwin::DeleteHighlightL( aChanged, aIsBackSpace, aPromptConfirmation ); |
|
87 } |
|
88 |
|
89 // ----------------------------------------------------------------------------- |
|
90 // CTestSDKEditorsEdwin::OkToDeleteSelectionL |
|
91 // ----------------------------------------------------------------------------- |
|
92 TBool CTestSDKEditorsEdwin::OkToDeleteSelectionL() |
|
93 { |
|
94 return CEikEdwin::OkToDeleteSelectionL(); |
|
95 } |
|
96 |
|
97 // ----------------------------------------------------------------------------- |
|
98 // CTestSDKEditorsEdwin::DeleteL |
|
99 // ----------------------------------------------------------------------------- |
|
100 void CTestSDKEditorsEdwin::DeleteL( TBool& aChanged, const TCursorSelection& aSelection, |
|
101 TBool aIsBackSpace, |
|
102 TBool aAllowUndo ) |
|
103 { |
|
104 CEikEdwin::DeleteL( aChanged, aSelection, aIsBackSpace, aAllowUndo ); |
|
105 } |
|
106 |
|
107 // ----------------------------------------------------------------------------- |
|
108 // CTestSDKEditorsEdwin::TrappedSizeChanged |
|
109 // ----------------------------------------------------------------------------- |
|
110 void CTestSDKEditorsEdwin::TrappedSizeChanged() |
|
111 { |
|
112 CEikEdwin::TrappedSizeChanged(); |
|
113 } |
|
114 |
|
115 // ----------------------------------------------------------------------------- |
|
116 // CTestSDKEditorsEdwin::HandleSizeChangedL |
|
117 // ----------------------------------------------------------------------------- |
|
118 void CTestSDKEditorsEdwin::HandleSizeChangedL() |
|
119 { |
|
120 CEikEdwin::HandleSizeChangedL(); |
|
121 } |
|
122 |
|
123 // ----------------------------------------------------------------------------- |
|
124 // CTestSDKEditorsEdwin::CancelSelectionL |
|
125 // ----------------------------------------------------------------------------- |
|
126 void CTestSDKEditorsEdwin::CancelSelectionL( TEnd aEndOfSelectionToLeaveCursor ) |
|
127 { |
|
128 CEikEdwin::CancelSelectionL( aEndOfSelectionToLeaveCursor ); |
|
129 } |
|
130 |
|
131 // ----------------------------------------------------------------------------- |
|
132 // CTestSDKEditorsEdwin::MoveCursorToChunkStartL |
|
133 // ----------------------------------------------------------------------------- |
|
134 void CTestSDKEditorsEdwin::MoveCursorToChunkStartL( TBool aSelect, |
|
135 TChunkSize aChunkSize, |
|
136 TEnd aEndScanningTowards ) |
|
137 { |
|
138 CEikEdwin::MoveCursorToChunkStartL( aSelect, aChunkSize, aEndScanningTowards ); |
|
139 } |
|
140 |
|
141 // ----------------------------------------------------------------------------- |
|
142 // CTestSDKEditorsEdwin::CancelInsertCharFormat |
|
143 // ----------------------------------------------------------------------------- |
|
144 void CTestSDKEditorsEdwin::CancelInsertCharFormat() |
|
145 { |
|
146 CEikEdwin::CancelInsertCharFormat(); |
|
147 } |
|
148 |
|
149 // ----------------------------------------------------------------------------- |
|
150 // CTestSDKEditorsEdwin::PlaceDataOnClipboardL |
|
151 // ----------------------------------------------------------------------------- |
|
152 void CTestSDKEditorsEdwin::PlaceDataOnClipboardL() |
|
153 { |
|
154 CEikEdwin::PlaceDataOnClipboardL(); |
|
155 } |
|
156 |
|
157 // ----------------------------------------------------------------------------- |
|
158 // CTestSDKEditorsEdwin::ReportEdwinEventL |
|
159 // ----------------------------------------------------------------------------- |
|
160 void CTestSDKEditorsEdwin::ReportEdwinEventL( MEikEdwinObserver::TEdwinEvent aEventType ) |
|
161 { |
|
162 CEikEdwin::ReportEdwinEventL( aEventType ); |
|
163 } |
|
164 |
|
165 // ----------------------------------------------------------------------------- |
|
166 // CTestSDKEditorsEdwin::SetLineCursorDetailsL |
|
167 // ----------------------------------------------------------------------------- |
|
168 void CTestSDKEditorsEdwin::SetLineCursorDetailsL() |
|
169 { |
|
170 CEikEdwin::SetLineCursorDetailsL(); |
|
171 } |
|
172 |
|
173 // ----------------------------------------------------------------------------- |
|
174 // CTestSDKEditorsEdwin::CopyDocumentContentL |
|
175 // ----------------------------------------------------------------------------- |
|
176 void CTestSDKEditorsEdwin::CopyDocumentContentL( CGlobalText& aInText, CGlobalText& aOutText ) |
|
177 { |
|
178 CEikEdwin::CopyDocumentContentL( aInText, aOutText ); |
|
179 } |
|
180 |
|
181 // ----------------------------------------------------------------------------- |
|
182 // CTestSDKEditorsEdwin::DisplayFindTextNotFound |
|
183 // ----------------------------------------------------------------------------- |
|
184 void CTestSDKEditorsEdwin::DisplayFindTextNotFound( TDes& aFindText ) |
|
185 { |
|
186 CEikEdwin::DisplayFindTextNotFound( aFindText ); |
|
187 } |
|
188 |
|
189 // ----------------------------------------------------------------------------- |
|
190 // CTestSDKEditorsEdwin::HandleTextPastedL |
|
191 // ----------------------------------------------------------------------------- |
|
192 void CTestSDKEditorsEdwin::HandleTextPastedL(TInt aStartPos,TInt& aLength) |
|
193 { |
|
194 CEikEdwin::HandleTextPastedL( aStartPos, aLength ); |
|
195 } |
|
196 |
|
197 // ----------------------------------------------------------------------------- |
|
198 // CTestSDKEditorsEdwin::CreateCustomDrawL |
|
199 // ----------------------------------------------------------------------------- |
|
200 CLafEdwinCustomDrawBase* CTestSDKEditorsEdwin::CreateCustomDrawL() |
|
201 { |
|
202 return CEikEdwin::CreateCustomDrawL(); |
|
203 } |
|
204 |
|
205 // ----------------------------------------------------------------------------- |
|
206 // CTestSDKEditorsEdwin::ReadAknResourceL |
|
207 // ----------------------------------------------------------------------------- |
|
208 void CTestSDKEditorsEdwin::ReadAknResourceL(TResourceReader& aReader) |
|
209 { |
|
210 CEikEdwin::ReadAknResourceL( aReader ); |
|
211 } |
|
212 |
|
213 // ----------------------------------------------------------------------------- |
|
214 // CTestSDKEditorsEdwin::CreateLayoutL |
|
215 // ----------------------------------------------------------------------------- |
|
216 void CTestSDKEditorsEdwin::CreateLayoutL(MLayDoc* aLayDoc) |
|
217 { |
|
218 CEikEdwin::CreateLayoutL( aLayDoc ); |
|
219 } |
|
220 |
|
221 // ----------------------------------------------------------------------------- |
|
222 // CTestSDKEditorsEdwin::CreateTextAndLayoutL |
|
223 // ----------------------------------------------------------------------------- |
|
224 void CTestSDKEditorsEdwin::CreateTextAndLayoutL( CParaFormatLayer* aParaFormatLayer, |
|
225 CCharFormatLayer* aCharFormatLayer ) |
|
226 { |
|
227 CEikEdwin::CreateTextAndLayoutL( aParaFormatLayer, aCharFormatLayer ); |
|
228 } |
|
229 |
|
230 // ----------------------------------------------------------------------------- |
|
231 // CTestSDKEditorsEdwin::CreateTextAndLayoutL |
|
232 // ----------------------------------------------------------------------------- |
|
233 void CTestSDKEditorsEdwin::CheckEdwinExtensionL() |
|
234 { |
|
235 CEikEdwin::CheckEdwinExtensionL(); |
|
236 } |
|
237 |
|
238 // ----------------------------------------------------------------------------- |
|
239 // CTestSDKEditorsEdwin::CreateTextAndLayoutL |
|
240 // ----------------------------------------------------------------------------- |
|
241 TTypeUid::Ptr CTestSDKEditorsEdwin::MopSupplyObject(TTypeUid aId) |
|
242 { |
|
243 return CEikEdwin::MopSupplyObject( aId ); |
|
244 } |