X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;ds=inline;f=src%2Ftex2lyx%2Ftex2lyx.h;h=da3ee8015e9a5ae0f9a3e11957590090cfd0dc08;hb=87944eedc77693238343103138c91ac7e2faab8f;hp=5a55db0305516a4b93f3f7fc801118bec6420699;hpb=2d5e1123d1d5b70c35fbdefe75bb6aac73743fcf;p=lyx.git diff --git a/src/tex2lyx/tex2lyx.h b/src/tex2lyx/tex2lyx.h index 5a55db0305..da3ee8015e 100644 --- a/src/tex2lyx/tex2lyx.h +++ b/src/tex2lyx/tex2lyx.h @@ -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 > 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 = 298; +int const LYX_FORMAT = 345; /// path of the master .tex file extern std::string getMasterFilePath();