]> git.lyx.org Git - lyx.git/blob - src/undo_funcs.h
some more changes
[lyx.git] / src / undo_funcs.h
1 // -*- C++ -*-
2 /* This file is part of
3  * ======================================================
4  *
5  *           LyX, The Document Processor
6  *
7  *           Copyright 1995-2001 The LyX Team.
8  *
9  * ====================================================== */
10
11 #ifndef UNDO_FUNCS_H
12 #define UNDO_FUNCS_H
13
14 #ifdef __GNUG__
15 #pragma interface
16 #endif
17
18 #include "undo.h"
19
20 class BufferView;
21 class Paragraph;
22
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();
33 /// FIXME
34 extern void setUndo(BufferView *, Undo::undo_kind kind,
35                     Paragraph const * first, Paragraph const * behind);
36 /// FIXME
37 extern void setRedo(BufferView *, Undo::undo_kind kind,
38                     Paragraph const * first, Paragraph const * behind);
39 /// FIXME
40 extern void setCursorParUndo(BufferView *);
41
42 // This is only used in one place. Need a nicer way.
43 /// is the undo frozen
44 extern bool undo_frozen;
45
46 #endif // UNDO_FUNCS_H