]> git.lyx.org Git - lyx.git/blobdiff - src/undo.h
Collapse all those LFUN_XYZ_APPLY to a single LFUN_INSET_APPLY.
[lyx.git] / src / undo.h
index 90f344a5ec48ebcb62e469f22938ac24d361768d..4abd779396772d876ab4d6a965495dfcc4a7b3ff 100644 (file)
@@ -1,9 +1,9 @@
 // -*- C++ -*-
 /* This file is part of
  * ======================================================
- * 
+ *
  *           LyX, The Document Processor
- *      
+ *
  *           Copyright 1995 Matthias Ettrich
  *           Copyright 1995-2001 The LyX Team.
  *
 #ifndef UNDO_H
 #define UNDO_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
-
 class Paragraph;
 
 ///
@@ -41,11 +37,13 @@ public:
        ///
        int number_of_cursor_par;
        ///
+       int number_of_inset_id; // valid if >= 0, if < 0 then not in inset
+       ///
        int cursor_pos; // valid if >= 0
        ///
        Paragraph * par;
        ///
-       Undo(undo_kind kind_arg,
+       Undo(undo_kind kind_arg, int id_inset_arg,
             int number_before_arg, int number_behind_arg,
             int cursor_par_arg, int cursor_pos_arg,
             Paragraph * par_arg);