]> git.lyx.org Git - lyx.git/blobdiff - src/Author.h
Improve how add_to_preamble and insert_to_preamble work, and audit the
[lyx.git] / src / Author.h
index 21f479da124ce6fe6c799b154c8b2992667522e5..ca449381e55b6c66bd9dde42048979cffff0c324 100644 (file)
@@ -14,7 +14,7 @@
 
 #include "support/docstring.h"
 
-#include <map>
+#include <vector>
 
 
 namespace lyx {
@@ -46,10 +46,10 @@ private:
        docstring name_;
        /// The author's email address
        docstring email_;
-       /// The id of the author in the lyx-file
-       mutable unsigned int buffer_id_;
        ///
        mutable bool used_;
+       /// The id of the author in the lyx-file
+       mutable unsigned int buffer_id_;
 };
 
 
@@ -62,6 +62,8 @@ public:
        ///
        void record(int id, Author const & a);
        ///
+       void recordCurrentAuthor(Author const & a);
+       ///
        Author const & get(int id) const;
        ///
        typedef std::vector<Author> Authors;