]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/Preamble.h
Fix "stray '}' in text" warnings: When parsing with FLAG_ITEM the braces need
[lyx.git] / src / tex2lyx / Preamble.h
index 76d51758c784e3df1205e7e8f4192eaebfa433d2..f8149077a3db52fd469f9aa2fc4d9c3899c5442a 100644 (file)
 
 // {[(
 
-#include <config.h>
+#ifndef LYX_PREAMBLE_H
+#define LYX_PREAMBLE_H
+
+#include "Author.h"
 
 #include <iosfwd>
 #include <sstream>
@@ -50,6 +53,10 @@ public:
        void addModule(std::string const & module);
        ///
        void suppressDate(bool suppress);
+       /// Register an author named \p name in the author list
+       void registerAuthor(std::string const & name);
+       /// Get author named \p name (must be registered first)
+       Author const & getAuthor(std::string const & name) const;
 
 
        /// Parses the LaTeX preamble into internal data
@@ -152,6 +159,8 @@ private:
                            std::string const & opts, bool in_lyx_preamble);
        ///
        void handle_if(Parser & p, bool in_lyx_preamble);
+
+       AuthorList authors_;
 };
 
 
@@ -161,3 +170,5 @@ extern Preamble preamble;
 
 
 } // namespace lyx
+
+#endif