Editable text document components

The primary functionality provided by the Text Editing framework is the ability to create an editable text document component. The editable text document component is based on extensions to key classes in the Presentation framework and other lower-level Desktop frameworks, including the Basic Document and Compound Document frameworks and the View and Input systems. Editable text components you create using these classes are compatible with other document components based on the Document frameworks, and they provide basic functionality such as the saveless model and endless undo and redo.

The classes you use to create an editable text document component also derive from a set of abstract classes provided by the Text Editing framework. These classes define the protocol needed for handling text data. For example, TTextModel provides the data model for an editable text document component, and derives from both the Compound Document framework class TModel and the Text Editing framework class MTextRepresentation:

This separation gives you more flexibility when you derive your own Text Editing framework classes; you can choose whether to inherit Document framework functionality.

When you want to create editable text elements for use outside the context of the compound document, the Text Editing framework also provides a set of classes you can use to create text elements that aren't based on the Presentation and Document frameworks. These classes derive from the same abstract classes that define the protocol for text document components. For example, the class TSimpleTextStore derives from MTextRepresentation, and provides the protocol for storing and modifying text data and selecting editable text. These classes provide a way for you to create simple editable text elements that don't implement the full functionality of the Document frameworks.


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker