-#ifdef __GNUG__
-#pragma implementation
-#endif
-
-UndoStack::UndoStack()
- : limit(100) {}
-
-
-Undo * UndoStack::pop()
-{
- if (stakk.empty()) return 0;
- Undo * result = stakk.front();
- stakk.pop_front();
- return result;
-}
-
-
-Undo * UndoStack::top()
-{
- if (stakk.empty()) return 0;
- return stakk.front();
-}
-
-
-UndoStack::~UndoStack()
-{
- clear();
-}
-
-
-void UndoStack::clear()
-{
- while (!stakk.empty()) {
- Undo * tmp = stakk.front();
- stakk.pop_front();
- delete tmp;
- }
-}
-
-
-void UndoStack::SetStackLimit(Stakk::size_type l)
-{
- limit = l;
-}
-
+Undo::Undo(undo_kind kind_arg, int inset,
+ int first, int last,
+ int cursor, int cursor_pos_arg,
+ ParagraphList const & par)
+ :
+ kind(kind_arg),
+ inset_id(inset),
+ first_par_offset(first),
+ last_par_offset(last),
+ cursor_par_offset(cursor),
+ cursor_pos(cursor_pos_arg),
+ pars(par)
+{}