edbee - Qt Editor Library v0.11.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
textdocumentfilter.h
Go to the documentation of this file.
1// edbee - Copyright (c) 2012-2025 by Rick Blommers and contributors
2// SPDX-License-Identifier: MIT
3
4#pragma once
5
6#include "edbee/exports.h"
7
8class QString;
9#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
10 class QStringList;
11#endif
12
13namespace edbee {
14
15class MultiTextChange;
16class Change;
17class ChangeGroup;
18class TextDocument;
19class TextRangeSet;
20
21
23public:
24 virtual ~TextDocumentFilter();
25
26/*
28 virtual void filterBeginGroup( TextDocument* doc, TextChangeGroup* group ) = 0;
29
31 virtual void filterEndGroup( TextDocument* doc, TextChangeGroup* group, int coalesceId, bool flatten ) = 0;
32*/
33
38 virtual void filterReplaceRangeSet( TextDocument* doc, TextRangeSet& rangeSet, QString& str );
39
40
41
46 virtual void filterReplaceRangeSet( TextDocument* doc, TextRangeSet& rangeSet, QStringList& str );
47
48
63 virtual Change* filterChange( TextDocument* doc, Change* change, int coalesceId ) = 0;
64
65
66
67};
68
69} // edbee
An undoable-command-group.
Definition change.h:84
A basic change.
Definition change.h:18
Definition textdocumentfilter.h:22
virtual Change * filterChange(TextDocument *doc, Change *change, int coalesceId)=0
This method is called for any other change Just before this change is executed the changes are passed...
virtual void filterReplaceRangeSet(TextDocument *doc, TextRangeSet &rangeSet, QString &str)
makes it possible to modify the range-set that's passed to the document
Definition textdocumentfilter.cpp:19
This is the base and abstract class of a text document A TextDocument is the model part of the editor...
Definition textdocument.h:42
The basic textrange class. A simple class of textrange with a simple vector implementation.
Definition textrange.h:202
#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