]> git.lyx.org Git - lyx.git/blob - src/tex2lyx/tex2lyx.h
83c897d5e83e4dc6e297e61f4e04d84965b49e34
[lyx.git] / src / tex2lyx / tex2lyx.h
1 #ifndef TEX2LYX_H
2 #define TEX2LYX_H
3
4 #include "texparser.h"
5
6 #include <iosfwd>
7 #include <string>
8 #include <vector>
9
10
11 void parse_preamble(Parser & p, std::ostream & os);
12
13 void parse_text(Parser & p, std::ostream & os, unsigned flags, bool outer);
14
15 void parse_table(Parser & p, std::ostream & os, unsigned flags);
16
17 void parse_math(Parser & p, std::ostream & os, unsigned flags, mode_type mode);
18
19 void handle_tabular(Parser & p, std::ostream & os);
20
21 // Helper
22 std::string parse_text(Parser & p, unsigned flags, const bool outer);
23
24 void handle_comment(Parser & p);
25 std::string const trim(std::string const & a, char const * p = " \t\n\r");
26
27 void split(std::string const & s, std::vector<std::string> & result, char delim = ',');
28 std::string join(std::vector<std::string> const & input, char const * delim);
29
30 bool is_math_env(std::string const & name);
31 char const ** is_known(string const & str, char const ** what);
32
33 // Access to environment stack
34 extern std::vector<std::string> active_environments;
35 std::string active_environment();
36
37 #endif