]> git.lyx.org Git - lyx.git/blobdiff - src/BiblioInfo.h
Limit the nopassthurchars case in beamer to URL
[lyx.git] / src / BiblioInfo.h
index bc385f292af266ebdb5b42efce060259efd0a410..aeaf0fcecc5bc2d13e7c1336b876423e7e746315 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,
@@ -36,7 +37,10 @@ CitationStyle citationStyleFromString(std::string const & latex_str,
 std::string citationStyleToString(CitationStyle const &, bool const latex = false);
 
 /// Transforms the information about authors into a <authorgroup> (directly written to a XMLStream).
-docstring authorsToDocBookAuthorGroup(docstring const & authorsString, XMLStream & xs, Buffer const & buf);
+/// Type: "author" or empty means author of the entry (article, book, etc.); "book" means author of the book
+/// (but not necessarily of this entry in particular).
+void authorsToDocBookAuthorGroup(docstring const & authorsString, XMLStream & xs, Buffer const & buf,
+                                                                std::string type);
 
 
 /// Class to represent information about a BibTeX or
@@ -78,7 +82,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 +172,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_;
        ///