12 LyXTextClass const parse_preamble(Parser & p, std::ostream & os);
14 void parse_text(Parser & p, std::ostream & os, unsigned flags,
15 bool outer, LyXTextClass const & textclass);
17 void parse_table(Parser & p, std::ostream & os, unsigned flags);
19 void parse_math(Parser & p, std::ostream & os, unsigned flags, mode_type mode);
21 void handle_tabular(Parser & p, std::ostream & os,
22 LyXTextClass const & textclass);
25 std::string parse_text(Parser & p, unsigned flags, const bool outer,
26 LyXTextClass const & textclass);
28 void handle_comment(Parser & p);
29 std::string const trim(std::string const & a, char const * p = " \t\n\r");
31 void split(std::string const & s, std::vector<std::string> & result,
33 std::string join(std::vector<std::string> const & input,
36 bool is_math_env(std::string const & name);
37 char const ** is_known(std::string const & str, char const ** what);
39 // Access to environment stack
40 extern std::vector<std::string> active_environments;
41 std::string active_environment();