Nokia N97 SDK
Example Applications Guide

Rich Text Editor Example

1. About this Example
2. Architecture
3. Design and Implementation


1. About this Example

Rich Text Editor example demonstrates the usage of Rich Text Editor. Most of the features are handled automatically when the dialog framework creates the editor. However, some steps, such as inserting an image, setting the text input type, or showing the scroller require the use of methods or classes.

1.1 APIs demonstrated

1.2 Prerequisites

Symbian C++ basics

1.3 Running this example

Start the application. An editor opens. Select any part of the text: press and hold the Edit key while moving the scroller key to left or right. The selected text is highlighted. You can select various formatting options from the Options menu (character format, color, alignment and font).

2. Architecture

RichTextEditor example follows traditional Symbian OS Control-based architecture.

3. Design and Implementation

CEikRichTextEditor is the main class used in this example, which is an edit window that supports rich text, including embedded objects represented either by icons or glass doors. CRTEContainer contains CEikRichTextEditor. The basic features are handled by CEikRichTextEditor API.

Another important class CMyPicture, which is used to insert the picture in the editor window.This class contains the CFbsBitmap class, which is reference to bitmap data.

3.1 Capabilities

The program capabilities are defined in the RichTextEditor_S60_3rd_Ed.mmp file: CAPABILITY NONE

3.2 Features

The main features of Rich text editor are as follows


© Nokia 2009

Back to top