/// 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();
/// 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;
/// storage of all buffers
BufferStorage bstore;
-
- /// save emergency file for the given buffer
- void emergencyWrite(Buffer * buf);
};
/// Implementation is in LyX.cpp