]> git.lyx.org Git - lyx.git/blobdiff - src/BufferList.h
* cosmetic
[lyx.git] / src / BufferList.h
index eb61069079755d158be64ed9b3bb8c702617383f..f6804c522630a290b389cd8d68e3b7239ac6aa82 100644 (file)
@@ -41,6 +41,7 @@ public:
        const_iterator end() const;
 
        /// create a new buffer
+       /// \return 0 if the Buffer creation is not possible for whatever reason.
        Buffer * newBuffer(std::string const & s, bool ronly = false);
 
        /// delete a buffer
@@ -58,6 +59,12 @@ public:
        /// emergency save for all buffers
        void emergencyWriteAll();
 
+       /// save emergency file for the given buffer
+       /**
+         * \return a status message towards the user.
+         */
+       docstring emergencyWrite(Buffer * buf);
+
        /// return true if no buffers loaded
        bool empty() const;
 
@@ -106,9 +113,6 @@ private:
 
        /// storage of all buffers
        BufferStorage bstore;
-
-       /// save emergency file for the given buffer
-       void emergencyWrite(Buffer * buf);
 };
 
 /// Implementation is in LyX.cpp