// -*- 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;
+#include "ParagraphList.h"
///
class Undo {
///
undo_kind kind;
///
- int number_of_before_par;
+ int inset_id; // valid if >= 0, if < 0 then not in inset
///
- int number_of_behind_par;
+ int plist_id;
///
- int number_of_cursor_par;
+ int first_par_offset;
///
- int cursor_pos; // valid if >= 0
+ int last_par_offset;
///
- Paragraph * par;
+ int cursor_par_offset;
///
- Undo(undo_kind kind_arg,
- int number_before_arg, int number_behind_arg,
- int cursor_par_arg, int cursor_pos_arg,
- Paragraph * par_arg);
+ int cursor_pos; // valid if >= 0
+ ///
+ ParagraphList pars;
+
///
- ~Undo();
+ Undo(undo_kind kind, int inset_id, int plist_id,
+ int first, int last,
+ int cursor, int cursor_pos,
+ ParagraphList const & par_arg);
+
};