#include <udocument.hpp>
Inheritance diagram for ufo::UDocument:
Public Types | |
typedef USignal4< UDocument *, unsigned int, unsigned int, unsigned int > | DocumentSignal |
Public Member Functions | |
virtual const char * | getText () const =0 |
virtual unsigned int | getLength () const =0 |
virtual void | clear ()=0 |
virtual void | append (const char *chars, unsigned int nChars)=0 |
virtual void | replaceSelection (const char *chars, unsigned int nChars)=0 |
virtual void | insertString (unsigned int offset, const char *chars, unsigned int nChars)=0 |
virtual void | remove (unsigned int offset, unsigned int length)=0 |
virtual void | replace (unsigned int offset, unsigned int length, const char *chars, unsigned int nChars)=0 |
virtual UCaret * | getCaret () const =0 |
DocumentSignal & | sigTextReplaced () |
It is an abstract character buffer for text widgets. Usually this class is not used directly but via text widgets.
|
Appends the given character array at the end. Implemented in ufo::UBasicDocument.
|
|
Clears the entire content of the document. Implemented in ufo::UBasicDocument.
|
|
A caret is a text position within a document. It can also be used for text highlighting.
Implemented in ufo::UBasicDocument.
|
|
Returns the total length of the text. Implemented in ufo::UBasicDocument.
|
|
Returns a const char pointer to the character array. Please note that this character array does not have to be NULL-terminated. Implemented in ufo::UBasicDocument.
|
|
A low level insert of the character at the given position without manipulating the caret. Implemented in ufo::UBasicDocument.
|
|
Removes all characters from startA to (exclusively) endA. Implemented in ufo::UBasicDocument.
|
|
Replaces the given text portion with the given new text without modifying the caret position. Implemented in ufo::UBasicDocument.
|
|
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. Implemented in ufo::UBasicDocument.
|
|
document is this document, first int is text removal start, 2nd is length of the removed text, 3rd the length of the inserted text. |