X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FBufferList.h;h=f6804c522630a290b389cd8d68e3b7239ac6aa82;hb=42eb8a373a35da02c45c0d225d37f5d677ddfc2d;hp=eb61069079755d158be64ed9b3bb8c702617383f;hpb=ac08e89095af413817b08b538a4ed8cb0eabbfdd;p=lyx.git diff --git a/src/BufferList.h b/src/BufferList.h index eb61069079..f6804c5226 100644 --- a/src/BufferList.h +++ b/src/BufferList.h @@ -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