4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Asger Alstrup
8 * \author Lars Gullik Bjønnes
10 * \author André Pönitz
11 * \author Jürgen Vigna
13 * Full author contact details are available in file CREDITS.
20 #include "ParagraphList.h"
25 /// This will undo the last action - returns false if no undo possible
26 bool textUndo(BufferView *);
28 /// This will redo the last undo - returns false if no redo possible
29 bool textRedo(BufferView *);
31 /// Makes sure the next operation will be stored
35 * Whilst undo is frozen, all actions do not get added
44 * Record undo information - call with the first paragraph that will be changed
45 * and the last paragraph that will be changed. So we give an inclusive
47 * This is called before you make the changes to the paragraph, and it
48 * will record the original information of the paragraphs in the undo stack.
50 void recordUndo(BufferView *, Undo::undo_kind kind,
51 ParagraphList::iterator first, ParagraphList::iterator last);
52 /// Convienience: Prepare undo when change in a single paragraph.
53 void recordUndo(BufferView *, Undo::undo_kind kind,
54 ParagraphList::iterator first);
56 /// Convienience: Prepare undo for the paragraph that contains the cursor
57 void recordUndo(BufferView *, Undo::undo_kind kind);
59 /// Are we avoiding tracking undos currently ?
60 extern bool undo_frozen;
62 #endif // UNDO_FUNCS_H