2 * Copyright (c) 2002-2006 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
14 * Description: MsgEditor declaration
20 #ifndef INC_MSGEDITOR_HRH
21 #define INC_MSGEDITOR_HRH
23 enum TMsgFormComponent
31 EMsgExpandableControl = 1,
33 EMsgAttachmentControl,
40 EMsgFirstFreeCustomControlType
45 EMsgComponentIdNull = 0,
46 EMsgComponentIdTo = 1,
50 EMsgComponentIdSubject,
52 EMsgComponentIdDateTime,
53 EMsgComponentIdAttachment,
58 EMsgComponentIdFirstFreeEditorSpecificId
61 enum TMsgFocusDirection
69 EMsgAppendControl = -1,
73 enum TMsgClipboardFunc
88 enum TMsgCursorLocation
96 EMsgStateNormal = 0x0000,
97 EMsgStateInitializing = 0x0001,
98 EMsgStateInitialized = 0x0002,
99 EMsgStateRefreshing = 0x0004,
100 EMsgEnsureCorrectFormPositionRequestIssued = 0x0008
103 enum TMsgControlModeFlags
105 EMsgControlModeNone = 0x000000,
106 EMsgControlModeReadOnly = 0x000001, // Indicates read only state
107 EMsgControlModePlainTextMode = 0x000002, // Indicates plain text mode
108 EMsgControlModeSizeFixedToOneLine = 0x000004, // Forces control to one line heigh
109 EMsgControlModeUseSystemFont = 0x000008, // Forces control to use system font
110 EMsgControlModeSizeChanging = 0x000010, // Indicates control's size change
111 EMsgControlModeBodyMaxHeight = 0x000020, // Forces body control to max height
112 EMsgControlModeModified = 0x000040, // Indicates if control has been modified
113 EMsgControlModeInitialized = 0x000080, // Indicates if control has been initialized
114 EMsgControlModeShiftPressed = 0x000100, // Indicated if shift key is pressed
115 EMsgControlModeForceFocusStop = 0x000200, // Indicated if focus must stop on this
116 // control (in read-only mode)
117 EMsgControlModeDoNotDrawFrameBgContext = 0x000400, // Do not draw frame around the edwin
118 // valid only in ExpandableControls
119 EMsgControlModeForceSizeUpdate = 0x000800, // Indicated if size must be updated always
120 EMsgControlModeFirstReservedFlag = 0x001000, // Reserved for standard controls
121 EMsgControlModeFirstFreeFlag = 0x100000
126 EMsgViewEventPrepareFocusTransitionUp,
127 EMsgViewEventPrepareFocusTransitionDown,
128 EMsgViewEventPrepareForViewing,
129 EMsgViewEventPrepareForZooming,
130 EMsgViewEventFormHeightChanged,
131 EMsgViewEventFormScrolled,
132 EMsgViewEventSetCursorFirstPos,
133 EMsgViewEventSetCursorLastPos,
134 EMsgViewEventFocusMoveStarting,
135 EMsgViewEventFocusMoveFinished,
136 EMsgViewEventViewFocusLost,
137 EMsgViewEventViewFocusGain
140 enum TMsgIndicatorFlags
142 // TODO: check avkon.hrh if they add more indicators there.
143 EMsgIndicatorT9 = 0x0001,
144 EMsgIndicatorUpperCase = 0x0002,
145 EMsgIndicatorLowerCase = 0x0004,
146 EMsgIndicatorTextCase = 0x0008,
147 EMsgIndicatorNumberCase = 0x0010,
148 EMsgIndicatorQuery = 0x0020,
149 EMsgIndicatorPinyin = 0x0040,
150 EMsgIndicatorZhuyin = 0x0080,
151 EMsgIndicatorStroke = 0x0100,
152 EMsgIndicatorAudioAttached = 0x0200,
153 EMsgIndicatorImageAttached = 0x0400,
154 EMsgIndicatorObjects = 0x0800,
155 EMsgIndicatorAttachment = 0x1000,
156 EMsgIndicatorMessageLength = 0x2000
160 * Enumeration for scroll directions.
162 enum TMsgScrollDirection
168 enum TMsgCommonCommands
170 EMsgDispSizeAutomatic = 1,
174 EMsgFirstFreeComponentSpecificCommand = 2000