API published in: S60 1st Ed
Link against: avkon.lib eikctl.lib eikcoctl.lib uiklaf.lib form.lib
Required Capabilities
None
#include <eikrted.h>
Inherits CEikGlobalTextEditor.
This is an edit window that supports rich text, including embedded objects represented either by icons or glass doors.
Public Types |
|
enum | TObjectFormat { EAlwaysIconic, EGlassIfPossible } |
Identifies how an embedded object should be represented. More... |
|
enum | { EShowAllPicturesAsIconic = 0x00100000, ENoTextParsers = 0x00200000, EPasteAsPlainText = 0x00400000 } |
Edit window attribute flags specific to the rich text editor. More... |
|
Public Member Functions |
|
IMPORT_C | CEikRichTextEditor () |
C++ default constructor. |
|
IMPORT_C | CEikRichTextEditor (const TGulBorder &aBorder) |
C++ constructor. |
|
IMPORT_C | ~CEikRichTextEditor () |
Destructor. |
|
IMPORT_C void | ConstructL (const CCoeControl *aParent, TInt aNumberOfLines, TInt aTextLimit, TInt aEdwinFlags, TInt aFontControlFlags=EGulFontControlAll, TInt aFontNameFlags=EGulNoSymbolFonts) |
By default Symbian 2nd phase constructor is private. |
|
IMPORT_C CRichText * | RichText () const |
Gets a pointer to the rich text object owned by the editor. |
|
IMPORT_C void | InsertObjectL (TObjectFormat aFormat) |
Launches an insert object dialog (CEikInsertObjectDialog ), and inserts a default document of the application type selected by the user. |
|
IMPORT_C void | InsertObjectL () |
Launches an insert object dialog (CEikInsertObjectDialog ), and inserts a default document of the application type selected by the user. |
|
IMPORT_C void | InsertObjectL (const TDesC &aAppDllName, TUid aAppDllUid, TObjectFormat aFormat) |
Creates and inserts a default document of the specified application type. |
|
IMPORT_C void | InsertObjectL (TUid aPictureType, CBase *aData) |
Creates and inserts a new embedded object of the specified type. |
|
IMPORT_C void | ReEditObjectL () |
Re-edits the embedded object at the cursor position. |
|
IMPORT_C TInt | ObjectCursorPos () const |
Gets the document position and checks whether there is an embedded object at the cursor position. |
|
IMPORT_C TBool | CheckForObjectL () |
Tests whether there is an embedded object at the cursor position. |
|
IMPORT_C void | EditPictureFormatL () |
Launches a format object dialog (CEikFormatObjectDialog ) if there is an embedded object at the cursor position, and the object supports being displayed as a glass door. |
|
IMPORT_C void | PictureFormatChangedL () |
Handles a change to the format of an embedded object, by updating the view, the scroll bars and reporting the event to its
observers. |
|
IMPORT_C void | GetEmbeddedAppL (CApaDoor *&aDoor, CApaDocument *&aDoc, TInt aDocPos) |
Gets a pointer to the embedded object located at the specified position. |
|
IMPORT_C void | UpdatePictureFormatL () |
Changes all embedded objects displayed as glass doors into temporarily iconic. |
|
IMPORT_C void | UpdatePictureFormatL (TInt aStartPos, TInt aLength) |
Changes all embedded objects displayed as glass doors into temporarily iconic. |
|
IMPORT_C void | SetDefaultIconicDoorSize (const TSize &aSize) |
Changes the size of the icons used to represent embedded objects. |
|
IMPORT_C const TSize & | DefaultIconicDoorSize () const |
Gets the size of iconic doors. |
|
IMPORT_C void | UpdatePictureSizeL () |
Changes the size of all icons representing embedded objects to the default iconic door size. |
|
IMPORT_C void | UpdatePictureSizeL (TInt aStartPos, TInt aLength) |
Changes the size of all icons representing embedded objects to the default iconic door size. |
|
IMPORT_C void | SetParserObserver (MEikRichTextEditorParserObserver *aObserver) |
Sets a parser observer. |
|
IMPORT_C void | SetPhoneNumberGrouping (TBool aEnable) |
Activate/Disable phone number grouping. |
|
IMPORT_C TKeyResponse | OfferKeyEventL (const TKeyEvent &aKeyEvent, TEventCode aType) |
From CCoeControl . |
|
IMPORT_C void | HandlePointerEventL (const TPointerEvent &aPointerEvent) |
From CCoeControl . |
|
IMPORT_C void | ConstructFromResourceL (TResourceReader &aReader) |
From CCoeControl . |
|
IMPORT_C void | ActivateL () |
From CCoeControl . |
|
IMPORT_C void | CopyDocumentContentL (CGlobalText &aInText, CGlobalText &aOutText) |
From CEikEdwin . |
|
IMPORT_C void | RefreshParsersL () |
Force everything to be parsed. |
|
Protected Types |
|
enum | { ECropFromLeft = 0x00010000, ECropFromRight = 0x00020000, ECropFromTop = 0x00040000, ECropFromBottom = 0x00080000, EReEditingObject = 0x00100000 } |
Internal flags used for indicating operations. More... |
|
Protected Member Functions |
|
IMPORT_C void | WriteInternalStateL (RWriteStream &aWriteStream) const |
From CCoeControl . |
|
IMPORT_C void | EditObserver (TInt aStartEdit, TInt aEditLength) |
From MEditObserver . |
|
Protected Attributes |
|
TSize | iDefaultIconicDoorSize |
Default size of iconic door. |
|
Friends |
|
class | CEikParserManager |
|
Edit window attribute flags specific to the rich text editor.
These may be specified during construction in addition to the values contained in the
Reimplemented from CEikEdwin. |
|
Internal flags used for indicating operations. |
|
Identifies how an embedded object should be represented. One of these values is specified when the object is inserted. |
|
C++ default constructor. |
|
C++ constructor.
|
|
Destructor. |
|
From 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. Reimplemented from CEikGlobalTextEditor. |
|
Tests whether there is an embedded object at the cursor position. If there is one, it is opened for editing (or for viewing if the editor is read-only).
|
|
From Completes the construction of the rich text editor from a resource file.
The editor's paragraph and character formatting are set to default values, unless the
Reimplemented from CEikGlobalTextEditor. |
|
By default Symbian 2nd phase constructor is private. Completes construction of the rich text editor.
The editor's paragraph and character formatting are set to default values, unless the
Reimplemented from CEikGlobalTextEditor. |
|
From Copies the contents of one text object into another.
Reimplemented from CEikEdwin. |
|
Gets the size of iconic doors.
|
|
From This member is internal an not meant to be used.
Reimplemented from CEikEdwin. |
|
Launches a format object dialog (
If the object does not support being displayed as a glass door, an object information dialog ( If the embedded object's associated application cannot be found, an info message is displayed and the function leaves. The function has no effect if there is no embedded object at the cursor position. |
|
Gets a pointer to the embedded object located at the specified position. If the object is not in memory, the function loads it. If the object's associated application cannot be found, an info message is displayed and the function leaves.
|
|
From Handles pointer events inside the editor.
Has no effect if the
Reimplemented from CEikGlobalTextEditor. |
|
Creates and inserts a new embedded object of the specified type. First, an attempt is made to find an extended picture factory that supports the insertion of pictures of the specified type. If one is not found, the function leaves; if one is found, the picture is inserted at the cursor position. Displays an info message and leaves if the editor's text limit has been reached.
|
|
Creates and inserts a default document of the specified application type.
The object can be displayed either as a glass door, if supported, or as an icon, and the inserted object is opened for editing. Displays an info message and leaves if no suitable application DLL can be found, or if the editor's text limit has been reached.
|
|
Launches an insert object dialog ( The object is displayed as a glass door rather than as an icon, if supported and the inserted object is opened for editing. Displays an info message and leaves if the editor's text limit has been reached.
Default is |
|
Launches an insert object dialog ( The object can be displayed either as a glass door, if supported, or as an icon, and the inserted object is opened for editing. Displays an info message and leaves if the editor's text limit has been reached.
|
|
Gets the document position and checks whether there is an embedded object at the cursor position. If there is no embedded object at the cursor position, or if there is a selection, an info message is displayed.
|
|
From Handles key events.
Has no effect (apart from returning
Handles rich text-specific hot keys, for instance to insert an object; otherwise calls
Reimplemented from CEikGlobalTextEditor. |
|
Handles a change to the format of an embedded object, by updating the view, the scroll bars and reporting the event to its observers.
There is no need to call this function after calling |
|
Re-edits the embedded object at the cursor position. If there is no embedded object at the cursor position, or if there is a selection, an info message is displayed. If there is a valid object at the cursor position, it is opened for editing (or for viewing if the editor is read-only). |
|
Force everything to be parsed. |
|
Gets a pointer to the rich text object owned by the editor.
|
|
Changes the size of the icons used to represent embedded objects.
Any existing iconic doors can be updated to the new size by calling
|
|
Sets a parser observer.
If the
Its
|
|
Activate/Disable phone number grouping.
|
|
Changes all embedded objects displayed as glass doors into temporarily iconic. The function operates over a specified range of characters.
Has no effect if there are no embedded objects in the editor or if the Only needed when pictures are temporarily iconic.
|
|
Changes all embedded objects displayed as glass doors into temporarily iconic. The function operates throughout the editor. Only needed when pictures are temporarily iconic.
Has no effect if there are no embedded objects in the editor or if the |
|
Changes the size of all icons representing embedded objects to the default iconic door size. Also updates any objects currently displayed as glass doors, so that if displayed as icons, they will use the correct size. The function operates over a specified range of characters.
|
|
Changes the size of all icons representing embedded objects to the default iconic door size. Also updates any objects currently displayed as glass doors, so that if displayed as icons, they will use the correct size. The function operates throughout the editor. |
|
From Writes the internal state to the specified stream.
Reimplemented from CEikGlobalTextEditor. |
|
|
Default size of iconic door. |