equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
19 #ifndef CESMREDITOR_H |
19 #ifndef CESMREDITOR_H |
20 #define CESMREDITOR_H |
20 #define CESMREDITOR_H |
21 |
21 |
22 #include <eikrted.h> |
22 #include <eikrted.h> |
23 #include <eikedwob.h> |
23 #include <eikedwob.h> |
24 #include "mesmrlistobserver.h" |
|
25 |
24 |
26 |
25 // Forward declarations |
27 class CESMRLayoutManager; |
26 class MESMRListObserver; |
|
27 class MMRFieldScrollObserver; |
28 |
28 |
29 NONSHARABLE_CLASS( CESMREditor ): public CEikRichTextEditor, |
29 NONSHARABLE_CLASS( CESMREditor ): public CEikRichTextEditor, |
30 public MEikEdwinObserver |
30 public MEikEdwinObserver |
31 { |
31 { |
32 public: |
32 public: |
58 IMPORT_C void PositionChanged(); |
58 IMPORT_C void PositionChanged(); |
59 IMPORT_C TKeyResponse OfferKeyEventL( |
59 IMPORT_C TKeyResponse OfferKeyEventL( |
60 const TKeyEvent& aKeyEvent, |
60 const TKeyEvent& aKeyEvent, |
61 TEventCode aType); |
61 TEventCode aType); |
62 IMPORT_C void FocusChanged(TDrawNow aDrawNow); |
62 IMPORT_C void FocusChanged(TDrawNow aDrawNow); |
|
63 void HandlePointerEventL( const TPointerEvent& aPointerEvent ); |
63 |
64 |
64 public: // From MEikEdwinObserver |
65 public: // From MEikEdwinObserver |
65 IMPORT_C void HandleEdwinEventL(CEikEdwin* aEdwin,TEdwinEvent aEventType); |
66 IMPORT_C void HandleEdwinEventL(CEikEdwin* aEdwin,TEdwinEvent aEventType); |
66 |
67 |
67 public: |
68 public: |
76 * Set font for editor. |
77 * Set font for editor. |
77 * |
78 * |
78 * @param aFont new font |
79 * @param aFont new font |
79 * @param aLayout |
80 * @param aLayout |
80 */ |
81 */ |
81 IMPORT_C void SetFontL( const CFont* aFont, CESMRLayoutManager* aLayout ); |
82 IMPORT_C void SetFontL( const CFont* aFont ); |
82 |
83 |
83 /** |
84 /** |
84 * Returns cursor line number. |
85 * Returns cursor line number. |
85 * |
86 * |
86 * @return cursor line number |
87 * @return cursor line number |
159 void TryToSetSelectionL(); |
160 void TryToSetSelectionL(); |
160 |
161 |
161 private: |
162 private: |
162 /// Ref: |
163 /// Ref: |
163 MESMRListObserver* iObserver; |
164 MESMRListObserver* iObserver; |
164 |
|
165 /// Own: |
165 /// Own: |
166 HBufC* iDefaultText; |
166 HBufC* iDefaultText; |
167 |
|
168 /// Own; |
167 /// Own; |
169 TInt iLimitLength; |
168 TInt iLimitLength; |
170 }; |
169 }; |
171 |
170 |
172 #endif // CESMREDITOR_H |
171 #endif // CESMREDITOR_H |