]> git.lyx.org Git - lyx.git/blobdiff - src/BiblioInfo.h
Revert "Revert "Only set dummy X11 selection if we do not own it""
[lyx.git] / src / BiblioInfo.h
index bc385f292af266ebdb5b42efce060259efd0a410..f4051bf2251a7b526d0de0306bdae7971e1db753 100644 (file)
@@ -6,7 +6,7 @@
  *
  * \author Angus Leeming
  * \author Herbert Voß
- * \author Richard Heck
+ * \author Richard Kimberly Heck
  * \author Julien Rioux
  *
  * Full author contact details are available in file CREDITS.
@@ -17,9 +17,6 @@
 
 #include "support/docstring.h"
 
-#include "BufferParams.h"
-#include "Citation.h"
-
 #include <map>
 #include <set>
 #include <vector>
 namespace lyx {
 
 class Buffer;
+class BufferParams;
+class CitationStyle;
+class CiteItem;
+class XMLStream;
 
 /// \param latex_str a LaTeX command, "cite", "Citep*", etc
 CitationStyle citationStyleFromString(std::string const & latex_str,
@@ -78,7 +79,7 @@ public:
                                  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,
+       docstring const getLabel(BibTeXInfoList const xrefs,
                Buffer const & buf, docstring const & format,
                CiteItem const & ci, bool next = false, bool second = false) const;
        ///
@@ -168,6 +169,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_;
        ///