X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FBiblioInfo.h;h=5a6f0d5b4e0c6cebcdf959edefb68f0d7d25b86c;hb=45e8ea4acc557dd54e062750f47ff569b5b98c43;hp=ddf1daa5e926bcb29be5bc033b0d5816da689244;hpb=4c0073cd03021da6cefb718cb777a5e1f944afd1;p=lyx.git diff --git a/src/BiblioInfo.h b/src/BiblioInfo.h index ddf1daa5e9..5a6f0d5b4e 100644 --- a/src/BiblioInfo.h +++ b/src/BiblioInfo.h @@ -75,7 +75,8 @@ public: /// \return formatted BibTeX data suitable for framing. /// \param vector of pointers to crossref/xdata information docstring const & getInfo(BibTeXInfoList const & xrefs, - Buffer const & buf, CiteItem const & ci) const; + Buffer const & buf, CiteItem const & ci, + docstring const & format = docstring()) const; /// \return formatted BibTeX data for a citation label docstring const getLabel(BibTeXInfoList const xrefs, Buffer const & buf, docstring const & format, @@ -167,6 +168,8 @@ private: mutable docstring info_; /// a cache for getInfo(richtext = true) mutable docstring info_richtext_; + /// cache for last format pattern + mutable docstring format_; /// docstring cite_number_; /// @@ -227,7 +230,7 @@ public: /// output any richtext tags marked in the citation format and escape < and > /// elsewhere, and the general output context. docstring const getInfo(docstring const & key, Buffer const & buf, - CiteItem const & ci) const; + CiteItem const & ci, docstring const & format = docstring()) const; /// \return formatted BibTeX data for citation labels. /// Citation labels can have more than one key. docstring const getLabel(std::vector keys, Buffer const & buf,