]> git.lyx.org Git - lyx.git/blob - src/undo_funcs.h
fix some C++ parsing bugs
[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 #include "undo.h"
15
16 class BufferView;
17 class Paragraph;
18
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
26 /// to the undo stack
27 extern void freezeUndo();
28 /// Track undos again
29 extern void unFreezeUndo();
30 /// FIXME
31 extern void setUndo(BufferView *, Undo::undo_kind kind,
32                     Paragraph const * first, Paragraph const * behind);
33 /// FIXME
34 extern void setRedo(BufferView *, Undo::undo_kind kind,
35                     Paragraph const * first, Paragraph const * behind);
36 /// FIXME
37 extern void setCursorParUndo(BufferView *);
38
39 /// Are we avoiding tracking undos currently ?
40 extern bool undo_frozen;
41
42 #endif // UNDO_FUNCS_H