* LyX, The Document Processor
*
* Copyright 1995 Matthias Ettrich
- * Copyright 1995-1999 The LyX Team.
+ * Copyright 1995-2000 The LyX Team.
*
* ====================================================== */
#include "lyxparagraph.h"
#include <list>
-using std::list;
///
class Undo {
Undo(undo_kind kind_arg,
int number_before_arg, int number_behind_arg,
int cursor_par_arg, int cursor_pos_arg,
- LyXParagraph * par_arg)
- {
- kind = kind_arg;
- number_of_before_par = number_before_arg;
- number_of_behind_par = number_behind_arg;
- number_of_cursor_par = cursor_par_arg;
- cursor_pos = cursor_pos_arg;
- par = par_arg;
- }
- ///
- ~Undo() {
- LyXParagraph * tmppar;
- while (par) {
- tmppar = par;
- par = par->next;
- delete tmppar;
- }
- }
+ LyXParagraph * par_arg);
+ ///
+ ~Undo();
};
class UndoStack{
private:
///
- typedef list<Undo*> Stakk;
+ typedef std::list<Undo*> Stakk;
///
Stakk stakk;
/// the maximum number of undo steps stored.
///
Undo * top();
///
- bool empty() const { return stakk.empty(); }
+ bool empty() const;
///
~UndoStack();
///