1
// Copyright 2011 Simon Edwards <simon@simonzone.com>
5
// This program is free software; you can redistribute it and/or modify
6
// it under the terms of the GNU Library General Public License as
7
// published by the Free Software Foundation; either version 2, or
8
// (at your option) any later version.
10
// This program is distributed in the hope that it will be useful,
11
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
// GNU General Public License for more details
15
// You should have received a copy of the GNU Library General Public
16
// License along with this program; if not, write to the
17
// Free Software Foundation, Inc.,
18
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25
#include <ktexteditor/movinginterface.h>
30
virtual ~MovingInterface ();
31
virtual KTextEditor::MovingCursor* newMovingCursor (const KTextEditor::Cursor& position, KTextEditor::MovingCursor::InsertBehavior insertBehavior = KTextEditor::MovingCursor::MoveOnInsert)=0;
32
virtual KTextEditor::MovingRange* newMovingRange (const KTextEditor::Range& range, KTextEditor::MovingRange::InsertBehaviors insertBehaviors = KTextEditor::MovingRange::DoNotExpand, KTextEditor::MovingRange::EmptyBehavior emptyBehavior = KTextEditor::MovingRange::AllowEmpty)=0;
33
virtual qint64 revision () const=0;
34
virtual qint64 lastSavedRevision () const=0;
35
virtual void lockRevision (qint64 revision)=0;
36
virtual void unlockRevision (qint64 revision)=0;
37
virtual void transformCursor (KTextEditor::Cursor& cursor, KTextEditor::MovingCursor::InsertBehavior insertBehavior, qint64 fromRevision, qint64 toRevision = -1)=0;
38
virtual void transformCursor (int& line, int& column, KTextEditor::MovingCursor::InsertBehavior insertBehavior, qint64 fromRevision, qint64 toRevision = -1)=0;
39
virtual void transformRange (KTextEditor::Range& range, KTextEditor::MovingRange::InsertBehaviors insertBehaviors, KTextEditor::MovingRange::EmptyBehavior emptyBehavior, qint64 fromRevision, qint64 toRevision = -1)=0;
40
//ig void aboutToDeleteMovingInterfaceContent (KTextEditor::Document* document);
41
//ig void aboutToInvalidateMovingInterfaceContent (KTextEditor::Document* document);