]> git.lyx.org Git - lyx.git/blobdiff - src/Buffer.h
Fix memory leak.
[lyx.git] / src / Buffer.h
index ff5e50148a5f872948d2c966a3b4da32b98d705a..9c92afc04da37adb61a5e4a0ab1c5199f3b0d99c 100644 (file)
@@ -218,7 +218,7 @@ public:
        void markClean() const;
 
        ///
-       void markBakClean();
+       void markBakClean() const;
 
        ///
        void markDepClean(std::string const & name);
@@ -391,8 +391,6 @@ public:
        
        /// This function is called when the buffer is changed.
        void changed() const;
-       /// This function is called if the buffer is being closed.
-       void closing(Buffer *) const;
        /// This function is called when the buffer structure is changed.
        void structureChanged() const;
        /// This function is called when an embedded file is changed
@@ -412,6 +410,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