class CMsgBodyControlEditor : public CMsgExpandableControlEditor |
Defines an editor for the body control.
Public Member Functions | |
---|---|
CMsgBodyControlEditor(const CCoeControl *, TUint32 &, MMsgBaseControlObserver *) | |
~CMsgBodyControlEditor() | |
void | ConstructL() |
TBool | CursorInLastLine() |
void | HandleFindItemEventL(const CItemFinder::CFindItemExt &, MAknItemFinderObserver::TEventFlag, TUint) |
void | HandleParsingComplete() |
void | HandlePointerEventL(const TPointerEvent &) |
void | HandleResourceChange(TInt) |
void | InsertCharacterL(const TChar &) |
void | InsertTextL(const TDesC &) |
TBool | IsFocusChangePossibleL(TMsgFocusDirection) |
void | LayoutEdwin() |
TKeyResponse | OfferKeyEventL(const TKeyEvent &, TEventCode) |
void | PrepareFocusTransition() |
void | PrepareForReadOnlyL(TBool) |
void | ResolveLayouts() |
void | SetAndGetSizeL(TSize &) |
void | SetTextSkinColorIdL() |
void | SetupAutomaticFindAfterFocusChangeL(TBool) |
Protected Member Functions | |
---|---|
void | SetHighlightL(TInt, TMsgFocusDirection, TBool) |
Private Member Functions | |
---|---|
CMsgBodyControlEditor() | |
void | ActivateL() |
void | DoHandleParsingCompleteL() |
Private Attributes | |
---|---|
CMsgEditorCustomDraw * | iCustomDraw |
TBool | iFocusChangedBeforeParseFinish |
TBool | iInitTop |
TInt | iPreviousItemLength |
TInt | iPreviousItemStart |
TBool | iTextParsed |
CMsgBodyControlEditor | ( | const CCoeControl * | aParent, |
TUint32 & | aFlags, | ||
MMsgBaseControlObserver * | aBaseControlObserver | ||
) |
Constructor.
const CCoeControl * aParent | |
TUint32 & aFlags | |
MMsgBaseControlObserver * aBaseControlObserver |
void | ActivateL | ( | ) | [private, virtual] |
From CCoeControl.
Activates the editor so that it is ready for use.
For instance, the text view is created, the editor is set to observe its rich text object, the editor's parser manager is set up, which handles the changes that occur when the cursor is moved over tagged text (for instance a URL), and all embedded objects are set to be displayed as icons, of the default size.
void | DoHandleParsingCompleteL | ( | ) | [private] |
Performs parsing complete handling.
void | HandleFindItemEventL | ( | const CItemFinder::CFindItemExt & | aItem, |
MAknItemFinderObserver::TEventFlag | aEvent, | |||
TUint | aFlags = 0 | |||
) |
const CItemFinder::CFindItemExt & aItem | |
MAknItemFinderObserver::TEventFlag aEvent | |
TUint aFlags = 0 |
void | HandlePointerEventL | ( | const TPointerEvent & | aPointerEvent | ) | [virtual] |
From CCoeControl. See coecntrl.h
const TPointerEvent & aPointerEvent |
void | HandleResourceChange | ( | TInt | aType | ) | [virtual] |
For handling dynamic layout switch.
TInt aType |
void | InsertCharacterL | ( | const TChar & | aCharacter | ) |
Inserts a character to the editor.
const TChar & aCharacter |
void | InsertTextL | ( | const TDesC & | aText | ) |
Inserts text to the editor.
const TDesC & aText |
TBool | IsFocusChangePossibleL | ( | TMsgFocusDirection | aDirection | ) |
TMsgFocusDirection aDirection |
TKeyResponse | OfferKeyEventL | ( | const TKeyEvent & | aKeyEvent, |
TEventCode | aType | |||
) | [virtual] |
Handles key events.
const TKeyEvent & aKeyEvent | |
TEventCode aType |
void | PrepareForReadOnlyL | ( | TBool | aReadOnly | ) | [virtual] |
Preparing for readonly/ viewers
TBool aReadOnly |
void | SetAndGetSizeL | ( | TSize & | aSize | ) | [virtual] |
Calculates and sets the size of the control and returns new size as reference aSize.
TSize & aSize |
void | SetHighlightL | ( | TInt | aCursorPos, |
TMsgFocusDirection | aDirection, | |||
TBool | aInit = EFalse | |||
) | [protected] |
TInt aCursorPos | |
TMsgFocusDirection aDirection | |
TBool aInit = EFalse |
void | SetTextSkinColorIdL | ( | ) | [virtual] |
Sets the currently applicable text skin color ID. Overwrites expandable editor behaviour and sets only single text color independent of the control state.
void | SetupAutomaticFindAfterFocusChangeL | ( | TBool | aBeginning | ) |
Should be called when focus is changed to body.
TBool aBeginning |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.