X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FBuffer.h;h=f932a565cef68516a1ee7e39662750bdcf827ff3;hb=1c362c80b22012d66472da713ffa0cf3d71815e7;hp=cee8dfaa6c3113ebe9944b6974a13c28531054b7;hpb=8a69ffd3bfaa4ab23b281a38b9a65f0a8550c997;p=lyx.git diff --git a/src/Buffer.h b/src/Buffer.h index cee8dfaa6c..f932a565ce 100644 --- a/src/Buffer.h +++ b/src/Buffer.h @@ -14,7 +14,6 @@ #include "insets/InsetCode.h" -#include "support/FileNameList.h" #include "support/strfwd.h" #include "support/types.h" #include "support/SignalSlot.h" @@ -25,6 +24,7 @@ namespace lyx { +class BiblioInfo; class BufferParams; class DocIterator; class ErrorItem; @@ -279,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; @@ -306,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 &) const;