CAknEdwinState Class Reference

#include <mw/aknedsts.h>

class CAknEdwinState : public MCoeFepAwareTextEditor_Extension1::CState

Inherits from

  • CAknEdwinState

    Nested Classes and Structures

    Public Member Functions
    CAknEdwinState(MEikCcpuEditor *)
    CAknEdwinState()
    virtual ~CAknEdwinState()
    IMPORT_C SEditorCbaState &CbaState()
    IMPORT_C MEikCcpuEditor *CcpuState()
    IMPORT_C TIntCurrentCase()
    IMPORT_C TCursorSelectionCurrentInlineEditSpan()
    IMPORT_C TIntCurrentInputMode()
    IMPORT_C TIntDefaultCase()
    IMPORT_C TIntDefaultInputMode()
    IMPORT_C TIntDefaultLanguage()
    IMPORT_C TIntFlags()
    IMPORT_C CAknEdwinFormAccessor *FormAccessor()
    IMPORT_C TLanguageLocalLanguage()
    IMPORT_C CEikMenuBar *MenuBar()
    IMPORT_C TIntMiddleSoftkeyCommandId()
    IMPORT_C TAknEditorNumericKeymapNumericKeymap()
    IMPORT_C MObjectProvider *ObjectProvider()
    IMPORT_C TIntPermittedCases()
    IMPORT_C TIntPermittedInputModes()
    IMPORT_C voidReportAknEdStateEventL(MAknEdStateObserver::EAknEdwinStateEvent)
    IMPORT_C voidSetCba()
    IMPORT_C voidSetCcpuState(MEikCcpuEditor *)
    IMPORT_C voidSetCurrentCase(TInt)
    IMPORT_C voidSetCurrentInputMode(TInt)
    IMPORT_C voidSetDefaultCase(TInt)
    IMPORT_C voidSetDefaultInputMode(TInt)
    IMPORT_C voidSetDefaultLanguage(TInt)
    IMPORT_C voidSetFlags(TInt)
    IMPORT_C voidSetFormAccessor(CAknEdwinFormAccessor *)
    IMPORT_C voidSetInlineEditSpan(TCursorSelection)
    IMPORT_C voidSetLocalLanguage(TLanguage)
    IMPORT_C voidSetMenu()
    IMPORT_C voidSetMiddleSoftkeyCommandId(TInt)
    IMPORT_C voidSetNumericKeymap(TAknEditorNumericKeymap)
    IMPORT_C voidSetObjectProvider(MObjectProvider *)
    IMPORT_C voidSetObserver(MAknEdStateObserver *)
    IMPORT_C voidSetPermittedCases(TInt)
    IMPORT_C voidSetPermittedInputModes(TInt)
    IMPORT_C voidSetSpecialCharacterTableResourceId(TInt)
    IMPORT_C TIntSpecialCharacterTableResourceId()
    Inherited Functions
    CBase::CBase()
    CBase::Delete(CBase *)
    CBase::Extension_(TUint,TAny *&,TAny *)
    CBase::operator new(TUint)
    CBase::operator new(TUint,TAny *)
    CBase::operator new(TUint,TLeave)
    CBase::operator new(TUint,TLeave,TUint)
    CBase::operator new(TUint,TUint)
    CBase::~CBase()
    MCoeFepAwareTextEditor_Extension1::CState::BaseConstructL()
    MCoeFepAwareTextEditor_Extension1::CState::CState()
    MCoeFepAwareTextEditor_Extension1::CState::~CState()

    Detailed Description

    Stores the (FEP) states of editor controls.
    Since
    Series 60 0.9

    Constructor & Destructor Documentation

    CAknEdwinState ( MEikCcpuEditor * )

    CAknEdwinState(MEikCcpuEditor *aCcpuState)

    C++ constructor.

    ParameterDescription
    aCcpuStatePointer to a control that implements MEikCcpuEditor interface.

    CAknEdwinState ( )

    IMPORT_CCAknEdwinState()

    C++ default constructor.

    ~CAknEdwinState ( )

    ~CAknEdwinState()[virtual]

    Destructor

    Member Function Documentation

    CbaState ( )

    IMPORT_C SEditorCbaState &CbaState()

    Get control's CBA state.

    Returns: Reference to SEditorCbaState struct.

    CcpuState ( )

    IMPORT_C MEikCcpuEditor *CcpuState()const

    Get an interface that provides ccpu (cut, copy, paste and undo) functionalities.

    Returns: A pointer to a ccpu interface for this control.

    CurrentCase ( )

    IMPORT_C TIntCurrentCase()const

    Get current character case for the editor.

    Returns: Current character case.

    CurrentInlineEditSpan ( )

    IMPORT_C TCursorSelectionCurrentInlineEditSpan()const

    Get the cursor or cursor selection within a document.

    Returns: The cursor or cursor selection within a document.

    CurrentInputMode ( )

    IMPORT_C TIntCurrentInputMode()const

    Get current input mode for the editor.

    Returns: Current input mode used in the editor.

    DefaultCase ( )

    IMPORT_C TIntDefaultCase()const

    Get default case for the editor. The case is used when the editor is focused first time.

    Returns: Default character case.

    DefaultInputMode ( )

    IMPORT_C TIntDefaultInputMode()const

    Get default input mode for the editor. The input mode is used when the editor is focused first time.

    Returns: Initial input mode to be used in the editor.

    DefaultLanguage ( )

    IMPORT_C TIntDefaultLanguage()const

    T9 language codes are not anymore supported, use LocalLanguage() instead.

    Returns: 0

    Flags ( )

    IMPORT_C TIntFlags()const

    Returns control's flags.

    Returns: Flags.

    FormAccessor ( )

    IMPORT_C CAknEdwinFormAccessor *FormAccessor()const
    Accessor for control's form.
    Since
    Series 60 2.0

    Returns: A pointer to to the form accessor of this control.

    LocalLanguage ( )

    IMPORT_C TLanguageLocalLanguage()const

    Get the control's input language.

    Returns: Language identity.

    MenuBar ( )

    IMPORT_C CEikMenuBar *MenuBar()const

    Get the control's menu bar.

    Returns: A pointer to the control's menu bar.

    MiddleSoftkeyCommandId ( )

    IMPORT_C TIntMiddleSoftkeyCommandId()const
    Return middle sofkey command id.
    Since
    S60 V3.2

    Returns: Current middle softkey command id.

    NumericKeymap ( )

    IMPORT_C TAknEditorNumericKeymapNumericKeymap()const

    Get number mode key mapping for '*' and '#' keys. The key mapping is used in editors when numeric input mode is used. Key mapping characters for '*' key are shown on special character table if also text input modes are allowed in the editor but the current input mode is numeric mode.

    Returns: Key mapping used in an editor with number input mode.

    ObjectProvider ( )

    IMPORT_C MObjectProvider *ObjectProvider()const

    Get control's object provider.

    Returns: A pointer to control's object provider.

    PermittedCases ( )

    IMPORT_C TIntPermittedCases()const

    Get permitted cases for the editor.

    Returns: Case modes that are permitted in the editor.

    PermittedInputModes ( )

    IMPORT_C TIntPermittedInputModes()const

    Get permitted input modes for the editor.

    Returns: Input modes that are allowed in the editor.

    ReportAknEdStateEventL ( MAknEdStateObserver::EAknEdwinStateEvent )

    IMPORT_C voidReportAknEdStateEventL(MAknEdStateObserver::EAknEdwinStateEventaEventType)

    From MAknEdStateObserver. Sends an state event to control's observer.

    ParameterDescription
    aEventTypeEvent type.

    SetCba ( )

    IMPORT_C voidSetCba()

    Gets the control's button array from object provider and sets the softkey command id's to 0.

    SetCcpuState ( MEikCcpuEditor * )

    IMPORT_C voidSetCcpuState(MEikCcpuEditor *aCcpuEditor)

    Set a control that implements ccpu (cut, copy, paste and undo) interface.

    ParameterDescription
    aCcpuEditorPointer to a control that implements MEikCcpuEditor interface.

    SetCurrentCase ( TInt )

    IMPORT_C voidSetCurrentCase(TIntaCase)

    Updates editor case. FEP is automatically notified of the case change in editor state and FEP takes new case to use immediately. Available case flags from uikon.hrh are EAknEditorUpperCase, EAknEditorLowerCase and EAknEditorTextCase. This method should not be used to set initial case for the editor. Use SetDefaultCase() method instead for setting the initial case.

    ParameterDescription
    aCaseNew case for the editor.

    SetCurrentInputMode ( TInt )

    IMPORT_C voidSetCurrentInputMode(TIntaInputMode)

    Updates editor input mode. FEP is automatically notified of the new input mode in editor state and FEP takes new input mode to use immediatelly. Current inline editing is reset. This method should not be used for setting initial input mode for the editor. Use SetDefaultInputMode() method instead for setting initial input mode.

    ParameterDescription
    aInputModeNew input mode for the editor.

    SetDefaultCase ( TInt )

    IMPORT_C voidSetDefaultCase(TIntaCase)

    Set default case for the editor. The case is used when the editor is focused first time. Available case flags from uikon.hrh are EAknEditorUpperCase, EAknEditorLowerCase and . EAknEditorTextCase is used if the initial case is not set from EDWIN resource DEFAULT_CASE or with this API.

    ParameterDescription
    aCaseInitial case to be used in the editor.

    SetDefaultInputMode ( TInt )

    IMPORT_C voidSetDefaultInputMode(TIntaInputMode)

    Set default input mode for the editor. The input mode is used when the editor is focused first time. EAknEditorTextInputMode is used if the initial input mode is not set from EDWIN resource DEFAULT_INPUT_MODE or with this API.

    ParameterDescription
    aInputModeInitial input mode to be used in the editor.

    SetDefaultLanguage ( TInt )

    IMPORT_C voidSetDefaultLanguage(TIntaLanguage)

    T9 language codes are not anymore supported. Use SetLocalLanguage() instead.

    SetFlags ( TInt )

    IMPORT_C voidSetFlags(TIntaFlags)

    Set initial editor flags for the editor.

    ParameterDescription
    aFlagsAvkon editor flags for the editor.

    SetFormAccessor ( CAknEdwinFormAccessor * )

    IMPORT_C voidSetFormAccessor(CAknEdwinFormAccessor *aFormAccessor)
    Set form accessor for this control.
    Since
    Series 60 2.0
    ParameterDescription
    aFormAccessorPointer to a form accessor.

    SetInlineEditSpan ( TCursorSelection )

    IMPORT_C voidSetInlineEditSpan(TCursorSelectionaCurrentInlineEditSpan)

    Set the cursor or cursor selection within a document.

    ParameterDescription
    aCurrentInlineEditSpanNew cursor or cursor selection within a document.

    SetLocalLanguage ( TLanguage )

    IMPORT_C voidSetLocalLanguage(TLanguageaLanguage)

    Set new local input language for the editor. Global input language changes have not effect for the input language but the user can still change the input language from the edit menu.

    ParameterDescription
    aLanguageEditor local input language.

    SetMenu ( )

    IMPORT_C voidSetMenu()

    Sets the menu bar from the object provider.

    SetMiddleSoftkeyCommandId ( TInt )

    IMPORT_C voidSetMiddleSoftkeyCommandId(TIntaCommandId)
    Set middle sofkey command id.
    Since
    S60 V3.2

    SetNumericKeymap ( TAknEditorNumericKeymap )

    IMPORT_C voidSetNumericKeymap(TAknEditorNumericKeymapaKeymap)

    Set number mode key mapping for '*' and '#' keys. The key mapping is used in editors when numeric input mode is used. Key mapping characters for '*' key are shown on special character table if also the text input modes are allowed in the editor but the current input mode is numeric mode. EAknEditorStandardNumberModeKeymap is used in editors that allow only numeric input if the mapping is not set from EDWIN resource NUMERIC_KEYMAP or with this API. EAknEditorAlphanumericNumberModeKeymap is used as default if the editor allows also text input mode.

    ParameterDescription
    aKeymapKey mapping used in an editor with number input mode.

    SetObjectProvider ( MObjectProvider * )

    IMPORT_C voidSetObjectProvider(MObjectProvider *aObjectProvider)

    Set the object provider for the control.

    ParameterDescription
    aObjectProviderA pointer to a class that implements an object provider.

    SetObserver ( MAknEdStateObserver * )

    IMPORT_C voidSetObserver(MAknEdStateObserver *aObserver)

    Sets an observer for this control.

    ParameterDescription
    aObserverPointer to an observer.

    SetPermittedCases ( TInt )

    IMPORT_C voidSetPermittedCases(TIntaCases)

    Set permitted cases for the editor. Possible flags from uikon.hrh are EAknEditorAllCaseModes, EAknEditorUpperCase,EAknEditorLowerCase and EAknEditorTextCase. EAknEditorAllCaseModes is used if the value is not set from EDWIN resource ALLOWED_CASE_MODES or with this API.

    ParameterDescription
    aCasesCase modes that are available in the editor.

    SetPermittedInputModes ( TInt )

    IMPORT_C voidSetPermittedInputModes(TIntaInputModes)

    Set permitted input modes for the editor. All input modes are allowed ( EAknEditorAllInputModes ) if the value is not set from EDWIN resource ALLOWED_INPUT_MODES or with this API.

    ParameterDescription
    aInputModesInput modes that are allowed in the editor.

    SetSpecialCharacterTableResourceId ( TInt )

    IMPORT_C voidSetSpecialCharacterTableResourceId(TIntaResourceId)

    Set editor specific special character table.

    ParameterDescription
    aResourceIdSpecial character table dialog resource ID.

    SpecialCharacterTableResourceId ( )

    IMPORT_C TIntSpecialCharacterTableResourceId()const

    Get editor specific special character table resource ID.

    Returns: Special character table dialog resource ID.