fep/aknfep/inc/AknFepUiManagerWestern.h
changeset 40 2cb9bae34d17
parent 31 f1bdd6b078d1
child 49 37f5d84451bd
equal deleted inserted replaced
31:f1bdd6b078d1 40:2cb9bae34d17
     1 /*
       
     2 * Copyright (c) 2003 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:           
       
    15 *       Provides the CAknFepUIManagerWestern definition.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 
       
    26 
       
    27 
       
    28 
       
    29 
       
    30 #ifndef __AKN_FEP_UI_MANAGER_WESTERN_H__
       
    31 #define __AKN_FEP_UI_MANAGER_WESTERN_H__
       
    32 
       
    33 // INCLUDES
       
    34 #include <uikon.hrh>                        //TAknEditorNumericKeymap
       
    35 
       
    36 #include "AknFepUiManagerBase.h"
       
    37 #include "AknFepUiInputStateBase.h"
       
    38 
       
    39 // CONSTANTS
       
    40 #ifndef RD_INTELLIGENT_TEXT_INPUT
       
    41 #define KSLATEGRAY TRgb(112,138,144); // slate gray color used in AutoCompletion mode
       
    42 #else	// RD_PRED_AW_COMPLETION
       
    43 #define KSLATEGRAY TRgb(112,138,144); // slate gray color used in AutoCompletion mode
       
    44 #endif // RD_PRED_AW_COMPLETION
       
    45 
       
    46 // MACROS
       
    47 
       
    48 // DATA TYPES
       
    49 
       
    50 // FUNCTION PROTOTYPES
       
    51 
       
    52 // FORWARD DECLARATIONS
       
    53 
       
    54 // CLASS DECLARATION
       
    55 class MAknFepManagerInterface;
       
    56 class MAknFepManagerUIInterface;
       
    57 class MAknFepUIManagerStateInterface;
       
    58 class CAknFepThaiSCTSelector;
       
    59 class CAknFepVietnameseToneManager;
       
    60 
       
    61 /**
       
    62  * CAknFepUIManagerWestern class.
       
    63  * This class is mounted based on CAknFepUiManager.
       
    64  *
       
    65  *  @lib AknFep.lib
       
    66  *  @since 2.6
       
    67  */
       
    68 class CAknFepUIManagerWestern : public CAknFepUIManagerBase
       
    69     {
       
    70 private:
       
    71     /**
       
    72      * private constants
       
    73      */
       
    74     enum
       
    75         {
       
    76         EBaseLanguageNumericKeymapIndex = 0x00FF,
       
    77         EMaskShiftOffset                = 8 
       
    78         };
       
    79 
       
    80 public: // Constructors and destructor
       
    81     /**
       
    82      * 
       
    83      * 
       
    84      * @since 2.6
       
    85      */
       
    86     static CAknFepUIManagerWestern* NewL(MAknFepManagerUIInterface* aFepMan, 
       
    87                                          CAknFepCaseManager* aCaseMan, TLanguage aLanguage);
       
    88 
       
    89     /**
       
    90      * 
       
    91      * 
       
    92      * @since 2.6
       
    93      */
       
    94     virtual ~CAknFepUIManagerWestern();
       
    95 
       
    96 public: // Functions from base classes
       
    97     /**
       
    98      * From CAknFepUIManagerBase
       
    99      * 
       
   100      * @since 2.6
       
   101      */
       
   102     TBool HandleKeyL( TInt aKey, TKeyPressLength aLength, TEventCode aEventCode = EEventKey );
       
   103 
       
   104     /**
       
   105      * From CAknFepUIManagerBase
       
   106      * 
       
   107      * @since 2.6
       
   108      */
       
   109     void CloseUI();
       
   110 
       
   111     /**
       
   112      * From CAknFepUIManagerBase
       
   113      * 
       
   114      * @since 2.6
       
   115      */
       
   116     void AddTextToUserDictionaryL(const TDesC& aText);
       
   117 
       
   118     /**
       
   119      * From CAknFepUIManagerBase
       
   120      * 
       
   121      * @since 2.6
       
   122      */
       
   123     void GetFormatOfFepInlineText(TCharFormat& aFormat, TInt& aNumberOfCharactersWithSameFormat, 
       
   124                                   TInt aPositionOfCharacter) const;
       
   125 
       
   126     /**
       
   127      * From CAknFepUIManagerBase
       
   128      * 
       
   129      * @since 2.6
       
   130      */
       
   131     TInt SupportLanguage(TInt aMode) const;
       
   132 
       
   133     /**
       
   134      * Activates western predictive entry UI to inline editing state 
       
   135      * by changing input state to entry state.
       
   136      * 
       
   137      * @since 2.6
       
   138      */
       
   139     void ActivateUI();
       
   140 
       
   141     /**
       
   142      * From CAknFepUIManagerBase
       
   143      * 
       
   144      * @since 2.6
       
   145      */
       
   146     TUIState ChangeState(TUIState aState);
       
   147 
       
   148     /**
       
   149      * From CAknFepUIManagerBase
       
   150      * 
       
   151      * @since 2.6
       
   152      */
       
   153     TInt ThaiSCTResourceId(TUint aPrewChar, TInt aKey);
       
   154 
       
   155      /**
       
   156      * From CAknFepUIManagerBase
       
   157      * 
       
   158      * @since 2.6
       
   159      */
       
   160     CAknFepVietnameseToneManager* VietnameseToneManager() const; 
       
   161 
       
   162 private: // New Functions
       
   163     /**
       
   164      * 
       
   165      * 
       
   166      * @since 2.6
       
   167      */
       
   168     void ConstructL(TLanguage aLanguage);
       
   169 
       
   170     /**
       
   171      * 
       
   172      * 
       
   173      * @since 2.6
       
   174      */
       
   175     CAknFepUIManagerWestern(MAknFepManagerUIInterface* aFepMan, CAknFepCaseManager* aCaseMan);
       
   176 
       
   177     /**
       
   178      * 
       
   179      * 
       
   180      * @since 2.6
       
   181      */
       
   182     TAknFepInputStateBase* FepUIState();
       
   183 
       
   184 private: // Data
       
   185 
       
   186     TAknFepInputStateBase iFepUiState;
       
   187     CAknFepThaiSCTSelector* iAknFepThaiSCTSelector;
       
   188     CAknFepVietnameseToneManager* iVietToneMarkMgr; // own, tone mark mgr for vietnamese
       
   189     };
       
   190 
       
   191 #endif //__AKN_FEP_UI_MANAGER_WESTERN_H__
       
   192 
       
   193 // End of file