X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fundo.h;h=4ebdd89224f754a9222b54aad4646de62b982c04;hb=98c966c64594611e469313314abd1e59524adb4a;hp=3e676b80031e41a304e75bd70ee9d0609859a95d;hpb=83acbbd5237373926c629855379e1df9a04209b2;p=lyx.git diff --git a/src/undo.h b/src/undo.h index 3e676b8003..4ebdd89224 100644 --- a/src/undo.h +++ b/src/undo.h @@ -1,9 +1,9 @@ // -*- C++ -*- /* This file is part of * ====================================================== - * + * * LyX, The Document Processor - * + * * Copyright 1995 Matthias Ettrich * Copyright 1995-2001 The LyX Team. * @@ -16,10 +16,7 @@ #pragma interface #endif -#include - -#include "lyxparagraph.h" - +class Paragraph; /// class Undo { @@ -44,45 +41,19 @@ public: /// int number_of_cursor_par; /// + int number_of_inset_id; // valid if >= 0, if < 0 then not in inset + /// int cursor_pos; // valid if >= 0 /// - LyXParagraph * par; + Paragraph * par; /// - Undo(undo_kind kind_arg, + Undo(undo_kind kind_arg, int id_inset_arg, int number_before_arg, int number_behind_arg, int cursor_par_arg, int cursor_pos_arg, - LyXParagraph * par_arg); + Paragraph * par_arg); /// ~Undo(); }; -/// A limited Stack for the undo informations. -class UndoStack{ -private: - /// - typedef std::list Stakk; - /// - Stakk stakk; - /// the maximum number of undo steps stored. - Stakk::size_type limit; -public: - /// - UndoStack(); - /// - Undo * pop(); - /// - Undo * top(); - /// - bool empty() const; - /// - ~UndoStack(); - /// - void clear(); - /// - void SetStackLimit(Stakk::size_type l); - /// - void push(Undo * undo_arg); -}; - #endif