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 /// this is dangerous and for internal use only
30 extern void freezeUndo();
31 /// this is dangerous and for internal use only
32 extern void unFreezeUndo();
34 extern void setUndo(BufferView *, Undo::undo_kind kind,
35 Paragraph const * first, Paragraph const * behind);
37 extern void setRedo(BufferView *, Undo::undo_kind kind,
38 Paragraph const * first, Paragraph const * behind);
40 extern void setCursorParUndo(BufferView *);
42 // This is only used in one place. Need a nicer way.
43 /// is the undo frozen
44 extern bool undo_frozen;
46 #endif // UNDO_FUNCS_H