This is an abstract class for ranged changes This are changes (text changes and line changes) that sp...
Definition abstractrangedchange.h:16
A basic change.
Definition change.h:18
virtual void mergeStoredData(AbstractRangedChange *change)
This method merges the old data with the new data @apram change the data to merge with.
Definition textchange.cpp:51
void replaceText(TextDocument *document)
replaces the text and stores the 'old' content
Definition textchange.cpp:182
virtual int docLength() const
This is the length in the document.
Definition textchange.cpp:124
const QString docText(TextDocument *doc) const
This method returns the text currently in the document.
Definition textchange.cpp:167
int offset() const
Return the offset.
Definition textchange.cpp:109
virtual bool giveAndMerge(TextDocument *document, Change *textChange)
This method gives the given change to this textchange. The changes will be merged if possible....
Definition textchange.cpp:88
void setDocLength(int len)
Set the length of the change.
Definition textchange.cpp:139
void setOffset(int offset)
set the new offset
Definition textchange.cpp:117
virtual void execute(TextDocument *document)
executes the given textchange
Definition textchange.cpp:35
QString storedText() const
The text currently stored in this textchange.
Definition textchange.cpp:145
TextChange(int offset, int length, const QString &text)
Constructs a single textchange.
Definition textchange.cpp:19
virtual int storedLength() const
The content length is the length that's currently stored in memory.
Definition textchange.cpp:131
virtual QString toString()
converts the change to a string
Definition textchange.cpp:100
void setStoredText(const QString &text)
Sets the text of this change.
Definition textchange.cpp:153
QString testString()
This method returns a string used for testing.
Definition textchange.cpp:174
void appendStoredText(const QString &text)
Appends the text to this change.
Definition textchange.cpp:160
virtual void revert(TextDocument *document)
Reverts the single textchange.
Definition textchange.cpp:43
This is the base and abstract class of a text document A TextDocument is the model part of the editor...
Definition textdocument.h:42
#define EDBEE_EXPORT
Definition exports.h:15
QT Acessibility has an issue with reporting blank lines between elements lines. defining 'WINDOWS_EMP...
Definition commentcommand.cpp:20