]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/Preamble.h
Fix bug in paragraph detection (can be seen in test case of bug #5187):
[lyx.git] / src / tex2lyx / Preamble.h
index 76d51758c784e3df1205e7e8f4192eaebfa433d2..790e81f3ef6588d7616cfef3db81763df10ca0ed 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
@@ -148,10 +155,14 @@ private:
        ///
        void handle_hyperref(std::vector<std::string> & options);
        ///
+       void handle_geometry(std::vector<std::string> & options);
+       ///
        void handle_package(Parser &p, std::string const & name,
                            std::string const & opts, bool in_lyx_preamble);
        ///
        void handle_if(Parser & p, bool in_lyx_preamble);
+
+       AuthorList authors_;
 };
 
 
@@ -161,3 +172,5 @@ extern Preamble preamble;
 
 
 } // namespace lyx
+
+#endif