]> git.lyx.org Git - lyx.git/blob - src/undo.h
Make lyx2lyx output the new external inset format.
[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 "ParagraphList.h"
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 inset_id; // valid if >= 0, if < 0 then not in inset
35         ///
36         int plist_id;
37         ///
38         int first_par_offset;
39         ///
40         int last_par_offset;
41         ///
42         int cursor_par_offset;
43         ///
44         int cursor_pos; // valid if >= 0
45         ///
46         ParagraphList pars;
47
48         ///
49         Undo(undo_kind kind, int inset_id, int plist_id,
50              int first, int last,
51              int cursor, int cursor_pos,
52              ParagraphList const & par_arg);
53
54 };
55
56
57 #endif