]> git.lyx.org Git - lyx.git/blob - src/undo.h
LyX Drinkers Union: patch 1
[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 cursor_pos; // valid if >= 0
45         ///
46         Paragraph * par;
47         ///
48         Undo(undo_kind kind_arg,
49              int number_before_arg, int number_behind_arg,
50              int cursor_par_arg, int cursor_pos_arg,
51              Paragraph * par_arg);
52         ///
53         ~Undo();
54 };
55
56
57 #endif