]> git.lyx.org Git - lyx.git/blob - src/undo.h
"Inter-word Space"
[lyx.git] / src / undo.h
1 // -*- C++ -*-
2 /* This file is part of
3  * ======================================================
4  *
5  *           LyX, The Document Processor
6  *
7  *           Copyright 1995 Matthias Ettrich
8  *           Copyright 1995-2001 The LyX Team.
9  *
10  * ====================================================== */
11
12 #ifndef UNDO_H
13 #define UNDO_H
14
15 #include <vector>
16
17 class Paragraph;
18
19 ///
20 class Undo {
21 public:
22         /// The undo kinds
23         enum undo_kind {
24                 ///
25                 INSERT,
26                 ///
27                 DELETE,
28                 ///
29                 EDIT,
30                 ///
31                 FINISH
32         };
33         ///
34         undo_kind kind;
35         ///
36         int number_of_before_par;
37         ///
38         int number_of_behind_par;
39         ///
40         int number_of_cursor_par;
41         ///
42         int number_of_inset_id; // valid if >= 0, if < 0 then not in inset
43         ///
44         int cursor_pos; // valid if >= 0
45         ///
46         std::vector<Paragraph *> pars;
47         ///
48         Undo(undo_kind kind_arg, int id_inset_arg,
49              int number_before_arg, int number_behind_arg,
50              int cursor_par_arg, int cursor_pos_arg,
51              std::vector<Paragraph *> const & par_arg);
52         ///
53         ~Undo();
54 };
55
56
57 #endif