Symbian Developer Library

SYMBIAN OS V6.1 EXAMPLE CODE

[Index] [Previous] [Next]



txtshell: Text Content and Views example code

Found in: epoc32ex\AppFramework\Text


Description

txtshell is an application that provides a shell for the text example code to run in. It provides four concrete text example controls, CGlobalControl, CRichControl, CStyleControl and CViewControl, all derived from the abstract base class CGraphicExampleControl. Each of these controls implements an UpdateModelL() function that is called each time the current step in the example is advanced. Each step modifies the content, formatting, or display of the text in a different way. For details, see the appropriate control example.

Each of these controls illustrates a different set of operations which can be performed on a text object or a text view.


Global text control (CGlobalControl)

Illustrates the following:


Rich text control (CRichControl)

Illustrates the following:


Rich text control with style list (CStyleControl)

Illustrates the following:


Advanced text view (CViewControl)

The example illustrates the following text view and layout operations:

[Top]


Usage

Press F1 to get the menu which lists the examples. Select the appropriate example, and then press space to advance through a set of steps that illustrate features of that example.

[Top]


Class summary

All of the examples use the following classes:

Additionally, each control illustrates particular classes.

CGlobalControl illustrates CGlobalText (global text) and CPlainText (plain text without formatting).

CRichControl illustrates CRichText (rich text).

CStyleControl illustrates CParagraphStyle (paragraph style information), and CStyleList (list of paragraph styles).

CViewControl illustrates TCursorPosition (cursor position), TCursorSelection (cursor and anchor position for selection) and TViewYPosQualifier (vertical view control).