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