9 #define byte unsigned char
16 struct math_deco_struct {
22 extern char const * math_font_name[];
23 extern char const * latex_mathspace[];
25 extern int mathed_char_height(short type, int size, byte c,
26 int & asc, int & des);
27 extern int mathed_char_width(short type, int size, byte c);
28 extern void mathed_draw_deco(Painter & pain, int x, int y,
29 int w, int h, int code);
31 extern LyXFont mathed_get_font(short type, int size);
32 extern int mathed_string_height(short type, int size, string const & s,
33 int & asc, int & des);
34 extern int mathed_string_width(short type, int size, string const & s);
35 extern math_deco_struct const * search_deco(int code);
39 void mathed_parse(MathedArray & data, MathParInset * & par, unsigned flags);
43 void mathed_parser_file(std::istream &, int);
46 int mathed_parser_lineno();
49 bool MathIsInset(short x);
52 bool MathIsFont(short x);
55 bool MathIsAlphaFont(short x);
58 bool MathIsActive(short x);
61 bool MathIsUp(short x);
64 bool MathIsDown(short x);
67 bool MathIsScript(short x);
70 bool MathIsBOPS(short x);
73 bool MathIsBinary(short x);
76 bool MathIsSymbol(short x);
79 bool is_eqn_type(short int type);
82 bool is_matrix_type(short int type);
85 bool is_multiline(short int type);
88 bool is_ams(short int type);
91 bool is_singlely_numbered(short int type);
94 bool is_multi_numbered(short int type);
97 bool is_numbered(short int type);
100 bool is_multicolumn(short int type);