X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FBuffer.h;h=ee37098055a014dcd97e746f60c876fd464e841f;hb=26ba2a65838731ce639a09539f617cb0f0be3b22;hp=de27084af983c9924027d53e6104ba95222739f2;hpb=c609e9cbcf5f013e9bcc8f13a9a3de1f45d8d212;p=lyx.git diff --git a/src/Buffer.h b/src/Buffer.h index de27084af9..ee37098055 100644 --- a/src/Buffer.h +++ b/src/Buffer.h @@ -538,9 +538,6 @@ public: /// dereferenced label name void getLabelList(std::vector> &) const; - /// This removes the .aux and .bbl files from the temp dir. - void removeBiblioTempFiles() const; - /// void changeLanguage(Language const * from, Language const * to); @@ -704,6 +701,8 @@ private: /// ExportStatus doExport(std::string const & target, bool put_in_tempdir, std::string & result_file) const; + /// This removes the .aux and .bbl files from the temp dir. + void removeBiblioTempFiles() const; /// target is a format name optionally followed by a space /// and a destination file-name ExportStatus doExport(std::string const & target, bool put_in_tempdir, @@ -806,18 +805,20 @@ public: /// of loaded child documents). docstring_list const & getBibfiles(UpdateScope scope = UpdateMaster) const; - + /// + void scheduleBiblioTempRemoval() const { removeBiblioTemps = true; } /// routines for dealing with possible self-inclusion void pushIncludedBuffer(Buffer const * buf) const; void popIncludedBuffer() const; bool isBufferIncluded(Buffer const * buf) const; private: void clearIncludeList() const; - -private: + /// friend class MarkAsExporting; /// mark the buffer as busy exporting something, or not void setExportStatus(bool e) const; + /// + mutable bool removeBiblioTemps = false; /// References & getReferenceCache(docstring const & label);