#include <ubasicdocument.hpp>
Inheritance diagram for ufo::UBasicDocument:
Public Member Functions | |
virtual UCaret * | createCaret () |
virtual const char * | getText () const |
virtual unsigned int | getLength () const |
virtual void | clear () |
virtual void | append (const char *chars, unsigned int nChars) |
virtual void | replaceSelection (const char *chars, unsigned int nChars) |
virtual void | insertString (unsigned int offset, const char *chars, unsigned int nChars) |
virtual void | remove (unsigned int offset, unsigned int length) |
virtual void | replace (unsigned int offset, unsigned int length, const char *chars, unsigned int nChars) |
virtual UCaret * | getCaret () const |
Protected Member Functions | |
virtual void | updateCaret (unsigned int offset, unsigned int rmLength, unsigned int insLength) |
|
Appends the given character array at the end. Implements ufo::UDocument.
|
|
Clears the entire content of the document. Implements ufo::UDocument.
|
|
A caret is a text position within a document. It can also be used for text highlighting.
Implements ufo::UDocument.
|
|
Returns the total length of the text. Implements ufo::UDocument.
|
|
Returns a const char pointer to the character array. Please note that this character array does not have to be NULL-terminated. Implements ufo::UDocument.
|
|
A low level insert of the character at the given position without manipulating the caret. Implements ufo::UDocument.
|
|
Removes all characters from startA to (exclusively) endA. Implements ufo::UDocument.
|
|
Replaces the given text portion with the given new text without modifying the caret position. Implements ufo::UDocument.
|
|
Inserts the given character array at the current caret position replacing any currently active selection. This moves the caret to the new position behind the inserted text. Implements ufo::UDocument.
|