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 MathedArray * mathed_parse(unsigned flags, MathedArray * data,
44 void mathed_parser_file(std::istream &, int);
47 int mathed_parser_lineno();
50 bool MathIsInset(short x);
53 bool MathIsFont(short x);
56 bool MathIsAlphaFont(short x);
59 bool MathIsActive(short x);
62 bool MathIsUp(short x);
65 bool MathIsDown(short x);
68 bool MathIsScript(short x);
71 bool MathIsBOPS(short x);
74 bool MathIsBinary(short x);
77 bool MathIsSymbol(short x);
80 bool is_eqn_type(short int type);
83 bool is_matrix_type(short int type);
86 bool is_multiline(short int type);
89 bool is_ams(short int type);
92 bool is_singlely_numbered(short int type);
95 bool is_multi_numbered(short int type);
98 bool is_numbered(short int type);
101 bool is_multicolumn(short int type);