]> git.lyx.org Git - lyx.git/blobdiff - src/Buffer.h
adjust
[lyx.git] / src / Buffer.h
index e9d04a90120cf2a652837d797f5792e47823a3ae..37a2670265f32d6bcb83ee079d2d5ee2332c4b6d 100644 (file)
@@ -12,7 +12,7 @@
 #ifndef BUFFER_H
 #define BUFFER_H
 
-#include "DocIterator.h"
+#include "insets/InsetCode.h"
 
 #include "support/FileName.h"
 #include "support/limited_stack.h"
 namespace lyx {
 
 class BufferParams;
+class EmbeddedFiles;
 class ErrorItem;
 class ErrorList;
 class FuncRequest;
 class Inset;
-class InsetText;
 class Font;
 class Lexer;
 class LyXRC;
@@ -218,7 +218,7 @@ public:
        void markClean() const;
 
        ///
-       void markBakClean();
+       void markBakClean() const;
 
        ///
        void markDepClean(std::string const & name);
@@ -366,9 +366,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);
@@ -410,6 +412,12 @@ public:
 
        void setGuiDelegate(frontend::GuiBufferDelegate * gui);
 
+       ///
+       void autoSave() const;
+       ///
+       bool writeAs(std::string const & newname = std::string());
+       ///
+       bool menuWrite();
 
 private:
        /** Inserts a file into a document