1 /* This file is part of
2 * ======================================================
4 * LyX, The Document Processor
6 * Copyright 1995 Matthias Ettrich
7 * Copyright 1995-2001 The LyX Team.
9 * ====================================================== */
14 #pragma implementation
17 #include "undostack.h"
19 #include "paragraph.h"
22 UndoStack::UndoStack()
34 Undo * UndoStack::top() const
42 UndoStack::~UndoStack()
48 void UndoStack::clear()
50 while (!stakk.empty()) {
51 Undo * tmp = stakk.front();
58 void UndoStack::SetStackLimit(Stakk::size_type l)
64 void UndoStack::push(Undo * undo_arg)
69 stakk.push_front(undo_arg);
70 if (stakk.size() > limit) {
71 Undo * tmp = stakk.back();
78 bool UndoStack::empty() const