]> git.lyx.org Git - lyx.git/blob - src/undo_funcs.h
remove broken xpm
[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 /// Whilst undo is frozen, all actions do not get added
30 /// to the undo stack
31 extern void freezeUndo();
32 /// Track undos again
33 extern void unFreezeUndo();
34 /// FIXME
35 extern void setUndo(BufferView *, Undo::undo_kind kind,
36                     Paragraph const * first, Paragraph const * behind);
37 /// FIXME
38 extern void setRedo(BufferView *, Undo::undo_kind kind,
39                     Paragraph const * first, Paragraph const * behind);
40 /// FIXME
41 extern void setCursorParUndo(BufferView *);
42
43 /// Are we avoiding tracking undos currently ?
44 extern bool undo_frozen;
45
46 #endif // UNDO_FUNCS_H