Viewing and user interfaces

Text content provides the content model for text objects. Viewing them is the responsibility of another component, text views.

In order to maintain a clear separation of concerns between the various types of text object, and the layout requirements of text views, two classes are provided:

  • MLayDoc provides information about the character and paragraph formatting applied to runs of identically formatted characters

  • MFormatText provides an interface to set formats and to maintain format layers in an optimal way

These interfaces are implemented by CGlobalText and CRichText .

Text content and views are fully integrated with printing. The header and footer for a document is specified in terms of rich text, with fields available to give the page number. Text views supports printing to either a view or to a preview. Print settings may be stored in the same store as the text content.

See also

Text views .