Taxonomy Categories:
Member Functions:
Interface Category:
API.
Inherits From:
TTextTypingStore
Inherited By:
None.
Purpose:
TSimpleTextTypingStore is derived from TTextTypingStore. It modifies text directly, and uses associated TSimpleTextView and TTypingCommand objects to implement its member functions.
Instantiation:
Allocate on the heap or the stack.
Deriving Classes:
This class is designed to be used directly.
Concurrency:
Not multithread safe.
Resource Use:
No special requirements.
Other Considerations:
None.
- TSimpleTextTypingStore (TSimpleTextView * theView)
- TSimpleTextTypingStore (const TSimpleTextTypingStore & other)
Interface Category:
API.
Purpose:
- Constructs a simple text typing store object that uses the specified simple text view to implement its member functions.
- Copy constructor.
Calling Context:
- Called by a text editor to construct a simple text typing store object that uses the specified simple text view to implement its member functions.
- Called to copy an object.
Parameters:
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
TSimpleTextTypingStore & operator =(const TSimpleTextTypingStore & other)
Interface Category:
API.
Purpose:
Assignment operator.
Calling Context:
Called when an object is assigned to another compatible object.
Parameters:
Return Value:
A non-const reference to the left-hand side object.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
~ TSimpleTextTypingStore ()
Interface Category:
API.
Purpose:
Destructor.
Calling Context:
Called to destroy an object.
Parameters:
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual void TypeEnd ()
Interface Category:
API.
Purpose:
Terminates the typing transaction.
Calling Context:
Called by the typing configuration's TypeEnd function.
Parameters:
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
Overrides inherited TTypingStore function.
virtual void DoTyping (const TText & newText, const TTextRange & newRange)
Interface Category:
API.
Purpose:
Replaces the specified range of text with the specified text.
Calling Context:
Called by TypeText to do the actual text replacement.
Parameters:
- const TText & newText -The text to insert.
- const TTextRange & newRange -The range of text to be replaced.
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
This protected function overrides the inherited TTextTypingStore function.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.