]> git.lyx.org Git - lyx.git/blob - src/undo.h
Alfredo's second patch
[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 class Paragraph;
16
17 ///
18 class Undo {
19 public:
20         /// The undo kinds
21         enum undo_kind {
22                 ///
23                 INSERT,
24                 ///
25                 DELETE,
26                 ///
27                 EDIT,
28                 ///
29                 FINISH
30         };
31         ///
32         undo_kind kind;
33         ///
34         int number_of_before_par;
35         ///
36         int number_of_behind_par;
37         ///
38         int number_of_cursor_par;
39         ///
40         int number_of_inset_id; // valid if >= 0, if < 0 then not in inset
41         ///
42         int cursor_pos; // valid if >= 0
43         ///
44         Paragraph * par;
45         ///
46         Undo(undo_kind kind_arg, int id_inset_arg,
47              int number_before_arg, int number_behind_arg,
48              int cursor_par_arg, int cursor_pos_arg,
49              Paragraph * par_arg);
50         ///
51         ~Undo();
52 };
53
54
55 #endif