]> git.lyx.org Git - lyx.git/blobdiff - src/Buffer.h
Introducing Font::validate().
[lyx.git] / src / Buffer.h
index 9c92afc04da37adb61a5e4a0ab1c5199f3b0d99c..7c4fc656a1f03c1bf4f826af0d891f82f93d4ddd 100644 (file)
 #ifndef BUFFER_H
 #define BUFFER_H
 
-#include "DocIterator.h"
+#include "insets/InsetCode.h"
 
 #include "support/FileName.h"
-#include "support/limited_stack.h"
-#include "support/types.h"
 #include "support/docstring.h"
 #include "support/docstream.h"
+#include "support/types.h"
 
 #include <iosfwd>
 #include <string>
 namespace lyx {
 
 class BufferParams;
+class EmbeddedFiles;
 class ErrorItem;
 class ErrorList;
 class FuncRequest;
 class Inset;
-class InsetText;
 class Font;
 class Lexer;
 class LyXRC;
@@ -301,14 +300,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;
@@ -366,9 +357,11 @@ public:
        ///
        void insertMacro(docstring const & name, MacroData const & data);
 
-       ///
+       /// Replace the inset contents for insets which InsetCode is equal
+       /// to the passed \p inset_code.
        void changeRefsIfUnique(docstring const & from, docstring const & to,
-               Inset::Code code);
+               InsetCode code);
+
 /// get source code (latex/docbook) for some paragraphs, or all paragraphs
 /// including preamble
        void getSourceCode(odocstream & os, pit_type par_begin, pit_type par_end, bool full_source);
@@ -388,6 +381,8 @@ public:
        EmbeddedFiles & embeddedFiles();
        EmbeddedFiles const & embeddedFiles() const;
        //@}
+
+       Undo & undo();
        
        /// This function is called when the buffer is changed.
        void changed() const;