edbee - Qt Editor Library
textdocumentfilter.h
Go to the documentation of this file.
1 
6 #pragma once
7 
8 class QString;
9 class QStringList;
10 
11 namespace edbee {
12 
13 class MultiTextChange;
14 class Change;
15 class ChangeGroup;
16 class TextDocument;
17 class TextRangeSet;
18 
19 
21 {
22 public:
23  virtual ~TextDocumentFilter();
24 
25 /*
27  virtual void filterBeginGroup( TextDocument* doc, TextChangeGroup* group ) = 0;
28 
30  virtual void filterEndGroup( TextDocument* doc, TextChangeGroup* group, int coalesceId, bool flatten ) = 0;
31 */
32 
37  virtual void filterReplaceRangeSet( TextDocument* doc, TextRangeSet& rangeSet, QString& str );
38 
39 
40 
45  virtual void filterReplaceRangeSet( TextDocument* doc, TextRangeSet& rangeSet, QStringList& str );
46 
47 
62  virtual Change* filterChange( TextDocument* doc, Change* change, int coalesceId ) = 0;
63 
64 
65 
66 };
67 
68 } // edbee
This is the base and abstract class of a text document A TextDocument is the model part of the editor...
Definition: textdocument.h:40
Copyright 2011-2013 - Reliable Bits Software by Blommers IT.
Definition: commentcommand.cpp:22
A basic change.
Definition: change.h:18
The basic textrange class. A simple class of textrange with a simple vector implementation.
Definition: textrange.h:198
virtual ~TextDocumentFilter()
The default virtual constructor.
Definition: textdocumentfilter.cpp:16
Definition: textdocumentfilter.h:20
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:21
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...