]> git.lyx.org Git - lyx.git/blobdiff - src/Buffer.h
Specify that we are in math mode. This avoids unnecessary \ensuremath
[lyx.git] / src / Buffer.h
index 8d0e66a097e842f84558e1ee02bac3ec1cc27786..f932a565cef68516a1ee7e39662750bdcf827ff3 100644 (file)
@@ -24,6 +24,7 @@
 
 namespace lyx {
 
+class BiblioInfo;
 class BufferParams;
 class DocIterator;
 class ErrorItem;
@@ -278,6 +279,9 @@ public:
         */
        Buffer const * masterBuffer() const;
 
+       /// \return true if \p child is a child of this \c Buffer.
+       bool isChild(Buffer * child) const;
+
        /// Is buffer read-only?
        bool isReadonly() const;
 
@@ -305,9 +309,16 @@ public:
        /// Update the cache with all bibfiles in use (including bibfiles
        /// of loaded child documents).
        void updateBibfilesCache() const;
+       ///
+       void invalidateBibinfoCache();
        /// 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;