- void parse(Parser & p, std::ostream & os,
- std::string const & forceclass, TeX2LyXDocClass & tc);
+ bool titleLayoutFound() const { return title_layout_found; }
+ ///
+ void titleLayoutFound(bool found) { title_layout_found = found; }
+ /// 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
+ void parse(Parser & p, std::string const & forceclass,
+ TeX2LyXDocClass & tc);
+ /// Writes the LyX file header from internal data
+ bool writeLyXHeader(std::ostream & os, bool subdoc);
+
+ /// known polyglossia language names (including variants)
+ static const char * const polyglossia_languages[];
+ /// the same as polyglossia_languages with .lyx names
+ static const char * const coded_polyglossia_languages[];