#include <textdocumentfilter.h>
◆ ~TextDocumentFilter()
edbee::TextDocumentFilter::~TextDocumentFilter |
( |
| ) |
|
|
virtual |
The default virtual constructor.
◆ filterChange()
This method is called for any other change Just before this change is executed the changes are passed to this method.
You can do what you want with this text change. Just remember you are the owner and if you do nothing. Nothing happens
WARNING: When you do NOT use the changes object you should delete it!!!
When done you can call doc->giveTextChangeWithoutFilter( changes ) for applying the changes
- Parameters
-
doc | a reference to the document |
changes | the multi-text-change that's excuted |
coalesceId | the coalesceId |
- Returns
- this method should returnt the effictive change applied
◆ filterReplaceRangeSet() [1/2]
makes it possible to modify the range-set that's passed to the document
A filter for single string replacements.
- Parameters
-
doc | the textdocument |
rangeSet | the rangeSet that's replaced |
str | the string that's going to placed at the given ranges |
◆ filterReplaceRangeSet() [2/2]
void edbee::TextDocumentFilter::filterReplaceRangeSet |
( |
TextDocument * |
doc, |
|
|
TextRangeSet & |
rangeSet, |
|
|
QStringList & |
str |
|
) |
| |
|
virtual |
makes it possible to modify the range-set string that's passed to the document
A filter for stringlist replacements {}.
- Parameters
-
doc | the textdocument |
rangeSet | the rangeSet that's replaced |
str | the stringsets that's going to placed at the given ranges |
The documentation for this class was generated from the following files: