2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1995-1999 The LyX Team.
10 * ====================================================== */
22 #include "lyxparagraph.h"
42 int number_of_before_par;
44 int number_of_behind_par;
46 int number_of_cursor_par;
48 int cursor_pos; // valid if >= 0
52 Undo(undo_kind kind_arg,
53 int number_before_arg, int number_behind_arg,
54 int cursor_par_arg, int cursor_pos_arg,
55 LyXParagraph * par_arg)
58 number_of_before_par = number_before_arg;
59 number_of_behind_par = number_behind_arg;
60 number_of_cursor_par = cursor_par_arg;
61 cursor_pos = cursor_pos_arg;
66 LyXParagraph * tmppar;
76 /// A limited Stack for the undo informations.
80 typedef list<Undo*> Stakk;
83 /// the maximum number of undo steps stored.
84 Stakk::size_type limit;
97 void SetStackLimit(Stakk::size_type l);
99 void Push(Undo * undo_arg);