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". |
44 /** |
44 /** |
45 * Sets field to be visible in the list. |
45 * Sets field to be visible in the list. |
46 * |
46 * |
47 * @param aField - id of the field. |
47 * @param aField - id of the field. |
48 */ |
48 */ |
49 virtual void InsertControl( TESMREntryFieldId aField ) = 0; |
49 virtual void ShowControl( TESMREntryFieldId aField ) = 0; |
50 |
50 |
51 /** |
51 /** |
52 * Disables field in the list. This method does not delete field. |
52 * Disables field in the list. This method does not delete field. |
53 * |
53 * |
54 * @param aField - id of the field. |
54 * @param aField - id of the field. |
55 */ |
55 */ |
56 virtual void RemoveControl( TESMREntryFieldId aField ) = 0; |
56 virtual void HideControl( TESMREntryFieldId aField ) = 0; |
57 |
57 |
58 /** |
58 /** |
59 * Is field visible or not. |
59 * Is field visible or not. |
60 * |
60 * |
61 * @return Boolean ETrue/EFalse |
61 * @return Boolean ETrue/EFalse |
71 |
71 |
72 /** |
72 /** |
73 * Scrolls the specific field to be fully visible |
73 * Scrolls the specific field to be fully visible |
74 * |
74 * |
75 * @param aInd Index of the field that needs to be fully visible |
75 * @param aInd Index of the field that needs to be fully visible |
76 * @param aSizeChanged ETrue if the field size has been changed |
|
77 */ |
76 */ |
78 virtual void ScrollItemVisible( TInt aInd ) = 0; |
77 virtual void ScrollControlVisible( TInt aInd ) = 0; |
79 |
78 |
80 // SCROLLING_MOD: Two methods for CESMRRichTextViewer usage |
79 /** |
81 virtual void MoveListAreaDownL( TInt aAmount) = 0; |
80 * Returns the height of the whole field container area containing all visible fields |
82 virtual void MoveListAreaUpL(TInt aAmount) = 0; |
81 * |
83 |
82 * @return World height. |
|
83 */ |
84 virtual TInt ListHeight() = 0; |
84 virtual TInt ListHeight() = 0; |
85 virtual TBool IsFieldBottomVisible() = 0; |
85 |
|
86 /** |
|
87 * Returns ETrue if focused fields bottom is visible, otherwise EFalse |
|
88 * |
|
89 * @return Boolean ETrue/EFalse |
|
90 */ |
|
91 virtual TBool IsFocusedControlsBottomVisible() = 0; |
|
92 |
|
93 /** |
|
94 * Moves fields the amount of pixels given. |
|
95 * |
|
96 * @param aAmount, amount of the movement in pixels. Positive down, negative up. |
|
97 */ |
|
98 virtual void RePositionFields( TInt aAmount ) = 0; |
|
99 |
|
100 /** |
|
101 * Return viewable areas rect, which in other words is |
|
102 * listpanes rect. |
|
103 * |
|
104 * @return TRect, rect of the viewable area. |
|
105 */ |
|
106 virtual TRect ViewableAreaRect() = 0; |
86 }; |
107 }; |
87 |
108 |
88 #endif // MESMRLISTOBSERVER_H |
109 #endif // MESMRLISTOBSERVER_H |