]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/tex2lyx.h
The roundtrip of the math manual produces a compilable document now:
[lyx.git] / src / tex2lyx / tex2lyx.h
index f87f767239ddaacc1941a109fd933893536f1ebb..da3ee8015e9a5ae0f9a3e11957590090cfd0dc08 100644 (file)
@@ -43,6 +43,8 @@ class TeX2LyXDocClass : public DocumentClass
 /// in preamble.cpp
 void parse_preamble(Parser & p, std::ostream & os, 
        std::string const & forceclass, TeX2LyXDocClass & tc);
+/// Translate babel language name to LyX language name
+extern std::string babel2lyx(std::string const & language);
 
 /// used packages with options
 extern std::map<std::string, std::vector<std::string> > used_packages;
@@ -61,7 +63,8 @@ void parse_text(Parser & p, std::ostream & os, unsigned flags, bool outer,
  * Therefore this may only be used to parse text in insets or table cells.
  */
 void parse_text_in_inset(Parser & p, std::ostream & os, unsigned flags,
-                        bool outer, Context const & context);
+                         bool outer, Context const & context,
+                         InsetLayout const * layout = 0);
 
 
 /// in math.cpp
@@ -100,6 +103,7 @@ std::string active_environment();
 enum ArgumentType {
        required,
        verbatim,
+       item,
        optional
 };
 
@@ -113,8 +117,10 @@ extern CommandMap known_environments;
 extern CommandMap known_math_environments;
 ///
 extern bool noweb_mode;
+/// Did we recognize any pdflatex-only construct?
+extern bool pdflatex;
 /// LyX format that is created by tex2lyx
-int const LYX_FORMAT = 277;
+int const LYX_FORMAT = 345;
 
 /// path of the master .tex file
 extern std::string getMasterFilePath();