]> git.lyx.org Git - lyx.git/blobdiff - src/bufferparams.h
The "I want this in now" patch.
[lyx.git] / src / bufferparams.h
index 8fc163effff93ca73603892478894244a802bceb..02e49186d48ad0a2a2dfa465d300884afe1b4421 100644 (file)
 #include "lyxtextclass.h"
 #include "LaTeXFeatures.h"
 #include "texrow.h"
+#include "author.h"
 
 #include "insets/insetquotes.h"
 
 #include <boost/array.hpp>
+#include <vector>
 
 class LyXLex;
 class LatexFeatures;
@@ -108,11 +110,17 @@ public:
        ///
        BufferParams();
 
+       /// read a header token, if unrecognised, return it or an unknown class name
+       string const readToken(LyXLex & lex, string const & token);
+
        ///
        void writeFile(std::ostream &) const;
 
-       ///
-       void writeLaTeX(std::ostream &, LaTeXFeatures &, TexRow &) const;
+       /** \returns true if the babel package is used (interogates
+           the BufferParams and a LyXRC variable).
+           This returned value can then be passed to the insets...
+        */
+       bool writeLaTeX(std::ostream &, LaTeXFeatures &, TexRow &) const;
 
        ///
        void setPaperStuff();
@@ -227,7 +235,14 @@ public:
        bool tracking_changes;
        /// Time ago we agreed that this was a buffer property [ale990407]
        string parentname;
+
+       /// map of the file's author IDs to buffer author IDs
+       std::vector<int> author_map;
+
 private:
+       /// the author list
+       AuthorList authorlist;
+
        ///
        friend class Buffer;
        /** This is the amount of space used for paragraph_separation "skip",