2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1995-2000 The LyX Team.
10 * ====================================================== */
21 #include "lyxparagraph.h"
41 int number_of_before_par;
43 int number_of_behind_par;
45 int number_of_cursor_par;
47 int cursor_pos; // valid if >= 0
51 Undo(undo_kind kind_arg,
52 int number_before_arg, int number_behind_arg,
53 int cursor_par_arg, int cursor_pos_arg,
54 LyXParagraph * par_arg);
60 /// A limited Stack for the undo informations.
64 typedef std::list<Undo*> Stakk;
67 /// the maximum number of undo steps stored.
68 Stakk::size_type limit;
83 void SetStackLimit(Stakk::size_type l);
85 void push(Undo * undo_arg);