]> git.lyx.org Git - lyx.git/blobdiff - src/Buffer.h
* Paragraph: Cosmetics and cleanups, remove uneeded redirection and uniformize Privat...
[lyx.git] / src / Buffer.h
index 4562a02a1de732254c0aa4d80f31d30a8d260766..7296a8f366bd2aadd469b6acd1d89186c4894050 100644 (file)
@@ -12,6 +12,8 @@
 #ifndef BUFFER_H
 #define BUFFER_H
 
+#include "insets/InsetCode.h"
+
 #include "support/FileName.h"
 #include "support/limited_stack.h"
 #include "support/types.h"
@@ -299,14 +301,6 @@ public:
        ///
        bool isMultiLingual() const;
 
-       /// Does this mean that this is buffer local?
-       limited_stack<Undo> & undostack();
-       limited_stack<Undo> const & undostack() const;
-
-       /// Does this mean that this is buffer local?
-       limited_stack<Undo> & redostack();
-       limited_stack<Undo> const & redostack() const;
-
        ///
        BufferParams & params();
        BufferParams const & params() const;
@@ -364,13 +358,10 @@ public:
        ///
        void insertMacro(docstring const & name, MacroData const & data);
 
-       /// Replace the inset contents for insets which Inset::Code is equal
+       /// Replace the inset contents for insets which InsetCode is equal
        /// to the passed \p inset_code.
-       /// FIXME: we pass Inset::Code as an int in order to avoid the inclusion
-       /// of "Inset.h". It would be better to put Inset::Code in its own
-       /// header.
        void changeRefsIfUnique(docstring const & from, docstring const & to,
-               int inset_code);
+               InsetCode code);
 
 /// get source code (latex/docbook) for some paragraphs, or all paragraphs
 /// including preamble
@@ -391,6 +382,8 @@ public:
        EmbeddedFiles & embeddedFiles();
        EmbeddedFiles const & embeddedFiles() const;
        //@}
+
+       Undo & undo();
        
        /// This function is called when the buffer is changed.
        void changed() const;