This is an abstract class for ranged changes This are changes (text changes and line changes) that sp...
Definition abstractrangedchange.h:16
virtual int offset() const =0
this method should return the offset of the change
int getMergedDocLength(AbstractRangedChange *change)
Calculates the merged length.
Definition abstractrangedchange.cpp:26
virtual int docLength() const =0
this method should return the length in the document
int getMergedStoredLength(AbstractRangedChange *change)
Calculates the merge data size, that's required for merging the given change.
Definition abstractrangedchange.cpp:48
virtual void setDocLength(int value)=0
this method should set the old length
void addOffset(int amount)
Adds the given amount to the offset.
Definition abstractrangedchange.cpp:18
virtual int storedLength() const =0
this method should return the length of this item in memory
void mergeStoredDataViaMemcopy(void *targetData, void *data, void *changeData, AbstractRangedChange *change, int itemSize)
This method merges the data via a memcopy. I really don't like this way of merging the data....
Definition abstractrangedchange.cpp:89
virtual void setOffset(int value)=0
this method should set the offset
bool isTouchedBy(AbstractRangedChange *secondChange)
Touched ranges are ranges that are next to eachother Touching means the end offset of one range is th...
Definition abstractrangedchange.cpp:156
virtual void mergeStoredData(AbstractRangedChange *change)=0
implement this method to merge to old data. Sample implementation
bool merge(AbstractRangedChange *change)
This method merges the change.
Definition abstractrangedchange.cpp:116
bool isOverlappedBy(AbstractRangedChange *secondChange)
This method checks if this textchange is overlapped by the second textchange overlapping is an exclus...
Definition abstractrangedchange.cpp:143
A basic change.
Definition change.h:18
#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