X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ftex2lyx%2Ftex2lyx.h;h=0591be7c74b215a8c564a5ce97e337efbac12a07;hb=9dcb24d578cfc9df5b70bbf3f13a95cd63ac3213;hp=4c12099bdeb5e89d16e7ca459d6ccca777275763;hpb=f22213a04fe53dd128f11db9b228623b3fc3dda7;p=lyx.git diff --git a/src/tex2lyx/tex2lyx.h b/src/tex2lyx/tex2lyx.h index 4c12099bde..0591be7c74 100644 --- a/src/tex2lyx/tex2lyx.h +++ b/src/tex2lyx/tex2lyx.h @@ -48,9 +48,16 @@ extern std::string rgbcolor2code(std::string const & name); std::string translate_len(std::string const &); void parse_text(Parser & p, std::ostream & os, unsigned flags, bool outer, - Context & context); + Context & context, std::string const rdelim = std::string()); void check_comment_bib(std::ostream & os, Context & context); +void fix_child_filename(std::string & name); + +std::string const normalize_filename(std::string const & name); + +std::string find_file(std::string const & name, std::string const & path, + char const * const * extensions); + /*! * Parses a subdocument, usually useful in insets (whence the name). * @@ -60,7 +67,8 @@ void check_comment_bib(std::ostream & os, Context & context); */ void parse_text_in_inset(Parser & p, std::ostream & os, unsigned flags, bool outer, Context const & context, - InsetLayout const * layout = 0); + InsetLayout const * layout = 0, + std::string const rdelim = std::string()); /// Guess document language from \p p if CJK is used. /// \p lang is used for all non-CJK contents. @@ -73,7 +81,8 @@ void parse_math(Parser & p, std::ostream & os, unsigned flags, mode_type mode); /// in table.cpp void handle_tabular(Parser & p, std::ostream & os, std::string const & name, - std::string const & width, Context & context); + std::string const & width, std::string const & halign, + Context & context); /// in tex2lyx.cpp @@ -105,8 +114,9 @@ extern void add_known_environment(std::string const & environment, extern void add_known_theorem(std::string const & theorem, std::string const & o1, bool o2, docstring const & definition); extern Layout const * findLayoutWithoutModule(TextClass const & tc, - std::string const & name, bool command); -extern InsetLayout const * findInsetLayoutWithoutModule(TextClass const & tc, std::string const & name, bool command); + std::string const & name, bool command, std::string const & latexparam = std::string()); +extern InsetLayout const * findInsetLayoutWithoutModule(TextClass const & tc, std::string const & name, bool command, + std::string const & latexparam = std::string()); /*! * Check whether a module provides command (if \p command is true) or * environment (if \p command is false) \p name, and add the module to the