]> git.lyx.org Git - lyx.git/blobdiff - src/Buffer.h
Fix some of the BibTeX cache issues. We need to be able to invalidate the cache when
[lyx.git] / src / Buffer.h
index edafa55a0c7aeca8d78841bf1b938c62fd224f3f..f50d00239423be0036257d8713456cf5bc381c2f 100644 (file)
@@ -24,8 +24,8 @@
 
 namespace lyx {
 
+class BiblioInfo;
 class BufferParams;
-class EmbeddedFileList;
 class DocIterator;
 class ErrorItem;
 class ErrorList;
@@ -306,9 +306,16 @@ public:
        /// Update the cache with all bibfiles in use (including bibfiles
        /// of loaded child documents).
        void updateBibfilesCache() const;
+       ///
+       void invalidateBibfilesCache();
        /// Return the cache with all bibfiles in use (including bibfiles
        /// of loaded child documents).
        support::FileNameList const & getBibfilesCache() const;
+       /// \return the bibliography information for this buffer's master,
+       /// or just for it, if it isn't a child.
+       BiblioInfo const & masterBibInfo() const;
+       /// \return the bibliography information for this buffer ONLY.
+       BiblioInfo const & localBibInfo() const;
        ///
        void getLabelList(std::vector<docstring> &) const;
 
@@ -404,15 +411,10 @@ public:
        /// method is const because modifying this backend does not touch
        /// the document contents.
        TocBackend & tocBackend() const;
-       
-       //@{
-       EmbeddedFileList & embeddedFiles();
-       EmbeddedFileList const & embeddedFiles() const;
-       bool embedded() const;
-       //@}
 
+       ///
        Undo & undo();
-       
+
        /// This function is called when the buffer is changed.
        void changed() const;
        /// This function is called when the buffer structure is changed.