fep/aknfep/peninputplugins/peninputimeplugingeneric/src/pluginfepmanagerhwr.cpp
changeset 36 a7632c26d895
parent 35 0f326f2e628e
child 42 b3eaa440ab06
equal deleted inserted replaced
35:0f326f2e628e 36:a7632c26d895
     1 /*
       
     2 * Copyright (c) 2002-2005 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:            HWR layout UI class implementation file.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 
       
    26 
       
    27 
       
    28 
       
    29 // System includes
       
    30 #include <aknfeppeninputenums.h>
       
    31 #include <aknedsts.h>               // CAknEdwinState
       
    32 
       
    33 // User includes
       
    34 #include "pluginfepmanagerhwr.h"
       
    35 #include "peninputimeplugingeneric.h"
       
    36 
       
    37 
       
    38 // ======== MEMBER FUNCTIONS ========
       
    39 // -----------------------------------------------------------------------------
       
    40 // CPluginFepManagerHwr::NewL
       
    41 // Factory function
       
    42 // (other items were commented in a header).
       
    43 // -----------------------------------------------------------------------------
       
    44 //
       
    45 CPluginFepManagerHwr* CPluginFepManagerHwr::NewL( 
       
    46     CPenInputImePluginGeneric& aOwner, RPeninputServer* aPenInputServer )
       
    47     {
       
    48     CPluginFepManagerHwr* self = new ( ELeave ) CPluginFepManagerHwr( aOwner,
       
    49                                      aPenInputServer );
       
    50     CleanupStack::PushL( self );
       
    51     self->BaseConstructL(); 
       
    52     CleanupStack::Pop( self );
       
    53 
       
    54     return self;
       
    55     }
       
    56 
       
    57 // -----------------------------------------------------------------------------
       
    58 // CPluginFepManagerHwr::SetNumberModeKeyMappingL
       
    59 // Set layout UI current number mode key mapping.
       
    60 // (other items were commented in a header).
       
    61 // -----------------------------------------------------------------------------
       
    62 //
       
    63 void CPluginFepManagerHwr::SetNumberModeKeyMappingL( 
       
    64     TAknEditorNumericKeymap aAknEditorNumericKeymap )
       
    65     {
       
    66     iNumberKeyMapping = aAknEditorNumericKeymap;
       
    67     }
       
    68 
       
    69 // -----------------------------------------------------------------------------
       
    70 // CPluginFepManagerHwr::HandleCommandL
       
    71 // Handle command come from FEP.
       
    72 // (other items were commented in a header).
       
    73 // -----------------------------------------------------------------------------
       
    74 //
       
    75 void CPluginFepManagerHwr::HandleCommandL( TInt aCommandId, TInt aParam )
       
    76     {
       
    77     if( aCommandId == ECmdPenInputSetWindowPos )
       
    78         {
       
    79         return;
       
    80         }
       
    81     CPluginFepManagerBase::HandleCommandL( aCommandId, aParam );
       
    82     }
       
    83 
       
    84 // -----------------------------------------------------------------------------
       
    85 // CPluginFepManagerHwr::CPluginFepManagerHwr
       
    86 // C++ default constructor.
       
    87 // (other items were commented in a header).
       
    88 // -----------------------------------------------------------------------------
       
    89 //
       
    90 CPluginFepManagerHwr::CPluginFepManagerHwr( CPenInputImePluginGeneric& aOwner,
       
    91                                            RPeninputServer* aPenInputServer )
       
    92     :CPluginFepManagerBase( aOwner, aPenInputServer )
       
    93     {
       
    94     }
       
    95 
       
    96 // -----------------------------------------------------------------------------
       
    97 // CPluginFepManagerHwr::SetLayoutRange
       
    98 // Set layout primary range.
       
    99 // (other items were commented in a header).
       
   100 // -----------------------------------------------------------------------------
       
   101 //
       
   102 void CPluginFepManagerHwr::SetLayoutRange( const CAknEdwinState* aEditorState )
       
   103     {
       
   104     CPluginFepManagerBase::SetLayoutRange( aEditorState );
       
   105     
       
   106     //set number key mapping
       
   107     #if 0
       
   108     if ( iPermittedRange == ERangeNumber)        
       
   109         {
       
   110         SendCommandToServer( ECmdPenInputEditorNumericKeyMap, 
       
   111                              iNumberKeyMapping );    
       
   112         }
       
   113     else
       
   114         {
       
   115         //for alphanumeric editor, always use EAknEditorAlphanumericNumberModeKeymap
       
   116         SendCommandToServer( ECmdPenInputEditorNumericKeyMap, 
       
   117                              EAknEditorAlphanumericNumberModeKeymap );    
       
   118         }
       
   119     #endif
       
   120     SendCommandToServer( ECmdPenInputEditorNumericKeyMap, 
       
   121                              iNumberKeyMapping );           
       
   122     }
       
   123 
       
   124  // End Of File