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