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_fwd.h"
21 #include "support/types.h"
26 /// This will undo the last action - returns false if no undo possible
27 bool textUndo(BufferView *);
29 /// This will redo the last undo - returns false if no redo possible
30 bool textRedo(BufferView *);
32 /// Makes sure the next operation will be stored
36 * Whilst undo is frozen, all actions do not get added
45 * Record undo information - call with the first paragraph that will be changed
46 * and the last paragraph that will be changed. So we give an inclusive
48 * This is called before you make the changes to the paragraph, and it
49 * will record the original information of the paragraphs in the undo stack.
51 void recordUndo(BufferView *, Undo::undo_kind kind,
52 ParagraphList & plist, lyx::paroffset_type first, lyx::paroffset_type last);
54 /// Convienience: Prepare undo when change in a single paragraph.
55 void recordUndo(BufferView *, Undo::undo_kind kind,
56 ParagraphList & plist, lyx::paroffset_type par);
58 /// Convienience: Prepare undo for the paragraph that contains the cursor
59 void recordUndo(BufferView *, Undo::undo_kind kind);
61 /// Are we avoiding tracking undos currently ?
62 extern bool undo_frozen;
64 #endif // UNDO_FUNCS_H