2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995-2001 The LyX Team.
9 * ====================================================== */
19 /// returns false if no undo possible
20 extern bool textUndo(BufferView *);
21 /// returns false if no redo possible
22 extern bool textRedo(BufferView *);
23 /// makes sure the next operation will be stored
24 extern void finishUndo();
25 /// Whilst undo is frozen, all actions do not get added
27 extern void freezeUndo();
29 extern void unFreezeUndo();
31 extern void setUndo(BufferView *, Undo::undo_kind kind,
32 Paragraph const * first, Paragraph const * behind);
34 extern void setRedo(BufferView *, Undo::undo_kind kind,
35 Paragraph const * first, Paragraph const * behind);
37 extern void setCursorParUndo(BufferView *);
39 /// Are we avoiding tracking undos currently ?
40 extern bool undo_frozen;
42 #endif // UNDO_FUNCS_H