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