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,
43 void mathed_write(MathParInset *, std::ostream &, int *, bool fragile,
44 string const & label = string());
48 void mathed_parser_file(std::istream &, int);
51 int mathed_parser_lineno();
54 int MathedLookupBOP(short);
57 bool MathIsInset(short x);
60 bool MathIsFont(short x);
63 bool MathIsAlphaFont(short x);
66 bool MathIsActive(short x);
69 bool MathIsUp(short x);
72 bool MathIsDown(short x);
75 bool MathIsScript(short x);
78 bool MathIsBOPS(short x);
81 bool MathIsBinary(short x);
84 bool MathIsSymbol(short x);
87 bool is_eqn_type(short int type);
90 bool is_matrix_type(short int type);
93 bool is_multiline(short int type);
96 bool is_ams(short int type);
99 bool is_singlely_numbered(short int type);
102 bool is_multi_numbered(short int type);
105 bool is_numbered(short int type);
108 bool is_multicolumn(short int type);