2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995-2001 The LyX Team.
9 * ====================================================== */
15 #include "ParagraphList.h"
20 /// returns false if no undo possible
21 extern bool textUndo(BufferView *);
22 /// returns false if no redo possible
23 extern bool textRedo(BufferView *);
24 /// makes sure the next operation will be stored
25 extern void finishUndo();
26 /// Whilst undo is frozen, all actions do not get added
28 extern void freezeUndo();
30 extern void unFreezeUndo();
32 extern void setUndo(BufferView *, Undo::undo_kind kind,
33 ParagraphList::iterator first, ParagraphList::iterator behind);
35 extern void setRedo(BufferView *, Undo::undo_kind kind,
36 ParagraphList::iterator first, ParagraphList::iterator behind);
38 extern void setCursorParUndo(BufferView *);
40 /// Are we avoiding tracking undos currently ?
41 extern bool undo_frozen;
43 #endif // UNDO_FUNCS_H