![Symbian Developer Library](../../../../a_stock/images/mainheading.gif)
![]() |
![]() |
|
class MCoeFepAwareTextEditor_Extension1;
An interface class which may be derived from by text editors to enable FEPs to store state information inside the editor. To be overridden by text-editors
The MCoeFepAwareTextEditor_Extension1::CState
class, defined within the scope of MCoeFepAwareTextEditor_Extension1 represents the state information. This is information
specific to the control which is only of interest to the FEP.
A class which implements this interface must implement the pure virtual functions MCoeFepAwareTextEditor_Extension1::State(TUid)
and MCoeFepAwareTextEditor_Extension1::SetStateTransferingOwnershipL(CState *,TUid)
, to get and set the state. The class should also implement the MCoeFepAwareTextEditor
interface. It must override the private virtual MCoeFepAwareTextEditor::Extension1()
to return a pointer to itself (the default implementation returns NULL). The private virtual MCoeFepAwareTextEditor::Extension1()
function is called by the public, non-virtual MCoeFepAwareTextEditor::Extension1()
function.
For example, if a FEP wants to set some state information in a text editor which is about to lose focus, the FEP should first
call the editor's Extension1() function. If this returns non-NULL, the FEP should call the editor's implementation of MCoeFepAwareTextEditor_Extension1::SetStateTransferingOwnershipL(CState *,TUid)
, passing in an object of a class derived from MCoeFepAwareTextEditor_Extension1::CState
, which holds the state information. It should also pass in a UID which uniquely identifies the FEP. Later, when focus returns
to the editor, the FEP can call MCoeFepAwareTextEditor_Extension1::State(TUid)
to retrieve the state information it previously set. Note that MCoeFepAwareTextEditor_Extension1::CState
has several reserved functions, to enable it to be extended in future, while retaining backwards compatibility.
Defined in MCoeFepAwareTextEditor_Extension1
:
CState
State information for a text editor control. This is information specific to the...GetFepLayDocExtension(TBool &)
Retrieves the current MCoeFepLayDocExtension object from the text editor MCoeFepAwareTextEditor_Extension1_Reserved_4()
SetCursorType(TBool &,const TTextCursor &)
Changes the cursor displayed to indicate different modes of operation. For examp...SetStateTransferingOwnershipL(CState *,TUid)
Sets state information in the text editor.StartFepInlineEditL(TBool &,const TCursorSelection &,const TDesC &,TInt,TBool,const MFormCustomDraw *,MFepInlineTextFormatRetriever
&,MFepPointerEventHandlerDuringInlineEdit &)
Updates the inline text.State(TUid)
Gets the state information previously set using MCoeFepAwareTextEditor_Extension...virtual void SetStateTransferingOwnershipL(CState *aState, TUid aTypeSafetyUid)=0;
Sets state information in the text editor.
This function must only transfer ownership of the state object after it has successfully done everything that can leave.
|
virtual CState* State(TUid aTypeSafetyUid)=0;
Gets the state information previously set using MCoeFepAwareTextEditor_Extension1::SetStateTransferingOwnershipL(CState *,TUid)
.
This function does not transfer ownership. The function should first check that aTypeSafetyUid matches the UID value previously
specified by MCoeFepAwareTextEditor_Extension1::SetStateTransferingOwnershipL(CState *,TUid)
. If it doesn't match, the function should return NULL.
|
|
StartFepInlineEditL(TBool &,const TCursorSelection &,const TDesC &,TInt,TBool,const MFormCustomDraw *,MFepInlineTextFormatRetriever
&,MFepPointerEventHandlerDuringInlineEdit &)
IMPORT_C virtual void StartFepInlineEditL(TBool &aSetToTrue, const TCursorSelection &aCursorSelection, const TDesC &aInitialInlineText,
TInt aPositionOfInsertionPointInInlineText, TBool aCursorVisibility, const MFormCustomDraw *aCustomDraw, MFepInlineTextFormatRetriever
&aInlineTextFormatRetriever, MFepPointerEventHandlerDuringInlineEdit &aPointerEventHandlerDuringInlineEdit);
Updates the inline text.
Called when a character is added to or deleted from the inline text.
The descriptor aNewInlineText contains the entire new inline text string, not just the new text to be combined with the old inline text.
|
IMPORT_C virtual void SetCursorType(TBool &aSetToTrue, const TTextCursor &aTextCursor);
Changes the cursor displayed to indicate different modes of operation. For example how text is enterered
|
IMPORT_C virtual MCoeFepLayDocExtension* GetFepLayDocExtension(TBool &aSetToTrue);
Retrieves the current MCoeFepLayDocExtension
object from the text editor
|
|
class CState : public CBase;
State information for a text editor control. This is information specific to the control which is only of interest to the FEP which sets it.
CBase
-
Base class for all classes to be instantiated on the heap.
MCoeFepAwareTextEditor_Extension1::CState
- State information for a text editor control. This is information specific to the...
Defined in MCoeFepAwareTextEditor_Extension1::CState
:
BaseConstructL()
Empty second phase base class constructor.CState()
Empty default constructor. CState_Reserved_1()
CState_Reserved_2()
CState_Reserved_3()
CState_Reserved_4()
~CState()
Empty virtual destructor.Inherited from CBase
:
Delete(CBase *)
Deletes the specified object.Extension_(TUint,TAny *&,TAny *)
Extension function operator new(TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TAny *)
Initialises the object to binary zeroes.operator new(TUint,TLeave)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TLeave,TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TUint)
Allocates the object from the heap and then initialises its contents to binary z...CState()
protected: IMPORT_C CState();
Empty default constructor.
~CState()
IMPORT_C virtual ~CState();
Empty virtual destructor.
This is present because the class may be extended in the future to own resources.
BaseConstructL()
protected: IMPORT_C void BaseConstructL();
Empty second phase base class constructor.
This function should be called from derived classes at the beginning of their ConstructL() even though it is currently empty.
This is because this class may be extended in future to own resources, which will be allocated in MCoeFepAwareTextEditor_Extension1::CState::BaseConstructL()
.
CState_Reserved_1()
private: IMPORT_C virtual void CState_Reserved_1();
CState_Reserved_2()
private: IMPORT_C virtual void CState_Reserved_2();
CState_Reserved_3()
private: IMPORT_C virtual void CState_Reserved_3();
CState_Reserved_4()
private: IMPORT_C virtual void CState_Reserved_4();