]> git.lyx.org Git - lyx.git/blobdiff - src/BufferList.h
God damn tabular dual head :-/
[lyx.git] / src / BufferList.h
index 29e24df51acb957c9c42218e37bc315bfaae5811..1943c16ba3a5046e7f704e4bc86c8295c0a6ed2b 100644 (file)
@@ -47,6 +47,10 @@ public:
        /// delete a buffer
        void release(Buffer * b);
 
+       /// Release \p child if it really is a child and is not used elsewhere.
+       /// \return true is the file was closed.
+       bool releaseChild(Buffer * parent, Buffer * child);
+
        /// Close all open buffers.
        void closeAll();
 
@@ -59,6 +63,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;
 
@@ -107,9 +117,6 @@ private:
 
        /// storage of all buffers
        BufferStorage bstore;
-
-       /// save emergency file for the given buffer
-       void emergencyWrite(Buffer * buf);
 };
 
 /// Implementation is in LyX.cpp