epoc32/include/app/msgeditor.hrh
branchSymbian2
changeset 2 2fe1408b6811
parent 1 666f914201fb
child 4 837f303aceeb
     1.1 --- a/epoc32/include/app/msgeditor.hrh	Tue Nov 24 13:55:44 2009 +0000
     1.2 +++ b/epoc32/include/app/msgeditor.hrh	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -1,1 +1,179 @@
     1.4 -msgeditor.hrh
     1.5 +/*
     1.6 +* Copyright (c) 2002-2006 Nokia Corporation and/or its subsidiary(-ies).
     1.7 +* All rights reserved.
     1.8 +* This component and the accompanying materials are made available
     1.9 +* under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
    1.10 +* which accompanies this distribution, and is available
    1.11 +* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.12 +*
    1.13 +* Initial Contributors:
    1.14 +* Nokia Corporation - initial contribution.
    1.15 +*
    1.16 +* Contributors:
    1.17 +*
    1.18 +* Description:  MsgEditor  declaration
    1.19 +*
    1.20 +*/
    1.21 +
    1.22 +
    1.23 +
    1.24 +#ifndef INC_MSGEDITOR_HRH
    1.25 +#define INC_MSGEDITOR_HRH
    1.26 +
    1.27 +enum TMsgFormComponent
    1.28 +    {
    1.29 +    EMsgHeader = 0,
    1.30 +    EMsgBody
    1.31 +    };
    1.32 +
    1.33 +enum TMsgControlType
    1.34 +    {
    1.35 +    EMsgExpandableControl = 1,
    1.36 +    EMsgAddressControl,
    1.37 +    EMsgAttachmentControl,
    1.38 +    EMsgBodyControl,
    1.39 +    EMsgImageControl,
    1.40 +    EMsgVideoControl,
    1.41 +    EMsgAudioControl,
    1.42 +    EMsgSvgControl,
    1.43 +    EMsgXhtmlBodyControl,
    1.44 +    EMsgFirstFreeCustomControlType
    1.45 +    };
    1.46 +
    1.47 +enum TMsgControlId
    1.48 +    {
    1.49 +    EMsgComponentIdNull = 0,
    1.50 +    EMsgComponentIdTo = 1,
    1.51 +    EMsgComponentIdFrom,
    1.52 +    EMsgComponentIdCc,
    1.53 +    EMsgComponentIdBcc,
    1.54 +    EMsgComponentIdSubject, 
    1.55 +    EMsgComponentIdBody,
    1.56 +    EMsgComponentIdDateTime,
    1.57 +    EMsgComponentIdAttachment,    
    1.58 +    EMsgComponentIdImage,
    1.59 +    EMsgComponentIdVideo,
    1.60 +    EMsgComponentIdAudio,
    1.61 +    EMsgComponentIdSvg,
    1.62 +    EMsgComponentIdFirstFreeEditorSpecificId
    1.63 +    };
    1.64 +
    1.65 +enum TMsgFocusDirection
    1.66 +    {
    1.67 +    EMsgFocusUp = -1,
    1.68 +    EMsgFocusDown = 1
    1.69 +    };
    1.70 +
    1.71 +enum TMsgControlIndex
    1.72 +    {
    1.73 +    EMsgAppendControl = -1,
    1.74 +    EMsgFirstControl = 0
    1.75 +    };
    1.76 +
    1.77 +enum TMsgClipboardFunc
    1.78 +    {
    1.79 +    EMsgNoClipboard = 0,
    1.80 +    EMsgCopy,
    1.81 +    EMsgCut,
    1.82 +    EMsgPaste,
    1.83 +    EMsgPasteSpecial
    1.84 +    };
    1.85 +
    1.86 +enum TMsgEditFunc
    1.87 +    {
    1.88 +    EMsgUndo = 0,
    1.89 +    EMsgSelectAll
    1.90 +    };
    1.91 +
    1.92 +enum TMsgCursorLocation
    1.93 +    {
    1.94 +    EMsgTop = 0,
    1.95 +    EMsgBottom
    1.96 +    };
    1.97 +
    1.98 +enum TMsgStateFlags
    1.99 +    {
   1.100 +    EMsgStateNormal                            = 0x0000,
   1.101 +    EMsgStateInitializing                      = 0x0001,
   1.102 +    EMsgStateInitialized                       = 0x0002,
   1.103 +    EMsgStateRefreshing                        = 0x0004,
   1.104 +    EMsgEnsureCorrectFormPositionRequestIssued = 0x0008
   1.105 +    };
   1.106 +
   1.107 +enum TMsgControlModeFlags
   1.108 +    {
   1.109 +    EMsgControlModeNone                = 0x000000,
   1.110 +    EMsgControlModeReadOnly            = 0x000001,    // Indicates read only state
   1.111 +    EMsgControlModePlainTextMode       = 0x000002,    // Indicates plain text mode
   1.112 +    EMsgControlModeSizeFixedToOneLine  = 0x000004,    // Forces control to one line heigh
   1.113 +    EMsgControlModeUseSystemFont       = 0x000008,    // Forces control to use system font
   1.114 +    EMsgControlModeSizeChanging        = 0x000010,    // Indicates control's size change
   1.115 +    EMsgControlModeBodyMaxHeight       = 0x000020,    // Forces body control to max height
   1.116 +    EMsgControlModeModified            = 0x000040,    // Indicates if control has been modified
   1.117 +    EMsgControlModeInitialized         = 0x000080,    // Indicates if control has been initialized
   1.118 +    EMsgControlModeShiftPressed        = 0x000100,    // Indicated if shift key is pressed
   1.119 +    EMsgControlModeForceFocusStop      = 0x000200,    // Indicated if focus must stop on this
   1.120 +                                                      // control (in read-only mode)
   1.121 +    EMsgControlModeDoNotDrawFrameBgContext  = 0x000400,   // Do not draw frame around the edwin
   1.122 +                                                        // valid only in ExpandableControls
   1.123 +    EMsgControlModeForceSizeUpdate     = 0x000800,    // Indicated if size must be updated always                                                    
   1.124 +    EMsgControlModeFirstReservedFlag   = 0x001000,    // Reserved for standard controls
   1.125 +    EMsgControlModeFirstFreeFlag       = 0x100000
   1.126 +    };
   1.127 +
   1.128 +enum TMsgViewEvent
   1.129 +    {
   1.130 +    EMsgViewEventPrepareFocusTransitionUp,
   1.131 +    EMsgViewEventPrepareFocusTransitionDown,
   1.132 +    EMsgViewEventPrepareForViewing,
   1.133 +    EMsgViewEventPrepareForZooming,
   1.134 +    EMsgViewEventFormHeightChanged,
   1.135 +    EMsgViewEventFormScrolled,
   1.136 +    EMsgViewEventSetCursorFirstPos,
   1.137 +    EMsgViewEventSetCursorLastPos,
   1.138 +    EMsgViewEventFocusMoveStarting,
   1.139 +    EMsgViewEventFocusMoveFinished,
   1.140 +    EMsgViewEventViewFocusLost,
   1.141 +    EMsgViewEventViewFocusGain
   1.142 +    };
   1.143 +
   1.144 +enum TMsgIndicatorFlags
   1.145 +    {
   1.146 +    // TODO: check avkon.hrh if they add more indicators there.
   1.147 +    EMsgIndicatorT9              = 0x0001,
   1.148 +    EMsgIndicatorUpperCase       = 0x0002,
   1.149 +    EMsgIndicatorLowerCase       = 0x0004,
   1.150 +    EMsgIndicatorTextCase        = 0x0008,
   1.151 +    EMsgIndicatorNumberCase      = 0x0010,
   1.152 +    EMsgIndicatorQuery           = 0x0020,
   1.153 +    EMsgIndicatorPinyin          = 0x0040,
   1.154 +    EMsgIndicatorZhuyin          = 0x0080,
   1.155 +    EMsgIndicatorStroke          = 0x0100,
   1.156 +    EMsgIndicatorAudioAttached   = 0x0200,
   1.157 +    EMsgIndicatorImageAttached   = 0x0400,
   1.158 +    EMsgIndicatorObjects         = 0x0800,
   1.159 +    EMsgIndicatorAttachment      = 0x1000,
   1.160 +    EMsgIndicatorMessageLength   = 0x2000
   1.161 +    };
   1.162 +
   1.163 +/**
   1.164 +* Enumeration for scroll directions.
   1.165 +*/
   1.166 +enum TMsgScrollDirection
   1.167 +    {
   1.168 +    EMsgScrollUp,
   1.169 +    EMsgScrollDown
   1.170 +    };
   1.171 +
   1.172 +enum TMsgCommonCommands
   1.173 +    {
   1.174 +    EMsgDispSizeAutomatic = 1,
   1.175 +    EMsgDispSizeLarge,
   1.176 +    EMsgDispSizeNormal,
   1.177 +    EMsgDispSizeSmall,
   1.178 +    EMsgFirstFreeComponentSpecificCommand = 2000
   1.179 +    };
   1.180 +
   1.181 +#endif
   1.182 +
   1.183 +// End of File