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 * ====================================================== */
19 #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)
57 number_of_before_par = number_before_arg;
58 number_of_behind_par = number_behind_arg;
59 number_of_cursor_par = cursor_par_arg;
60 cursor_pos = cursor_pos_arg;
65 LyXParagraph * tmppar;
75 /// A limited Stack for the undo informations.
79 typedef list<Undo*> Stakk;
82 /// the maximum number of undo steps stored.
83 Stakk::size_type limit;
92 bool empty() const { return stakk.empty(); }
98 void SetStackLimit(Stakk::size_type l);
100 void push(Undo * undo_arg);