]> git.lyx.org Git - lyx.git/blobdiff - src/BiblioInfo.h
#11756 Respect system preferences for tabbing on Mac
[lyx.git] / src / BiblioInfo.h
index ddf1daa5e926bcb29be5bc033b0d5816da689244..5a6f0d5b4e0c6cebcdf959edefb68f0d7d25b86c 100644 (file)
@@ -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<docstring> keys, Buffer const & buf,