]> git.lyx.org Git - lyx.git/blob - src/undo_funcs.h
Alfredo's second patch
[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 #include "ParagraphList.h"
16
17 class BufferView;
18 class Paragraph;
19
20 /// returns false if no undo possible
21 extern bool textUndo(BufferView *);
22 /// returns false if no redo possible
23 extern bool textRedo(BufferView *);
24 /// makes sure the next operation will be stored
25 extern void finishUndo();
26 /// Whilst undo is frozen, all actions do not get added
27 /// to the undo stack
28 extern void freezeUndo();
29 /// Track undos again
30 extern void unFreezeUndo();
31 /// FIXME
32 extern void setUndo(BufferView *, Undo::undo_kind kind,
33                     ParagraphList::iterator first, ParagraphList::iterator behind);
34 /// FIXME
35 extern void setRedo(BufferView *, Undo::undo_kind kind,
36                     ParagraphList::iterator first, ParagraphList::iterator behind);
37 /// FIXME
38 extern void setCursorParUndo(BufferView *);
39
40 /// Are we avoiding tracking undos currently ?
41 extern bool undo_frozen;
42
43 #endif // UNDO_FUNCS_H