]> git.lyx.org Git - lyx.git/blob - src/mathed/support.h
small cleanup, doxygen, formatting changes
[lyx.git] / src / mathed / support.h
1 // -*- C++ -*-
2
3 #ifndef MATH_SUPPORT_H
4 #define MATH_SUPPORT_H
5
6 #include "lyxfont.h"
7
8 #ifndef byte
9 #define byte unsigned char
10 #endif
11
12 class Painter;
13 class MathedArray;
14 class MathParInset;
15
16 struct math_deco_struct {
17         int code;
18         float const * data;
19         int angle;
20 };
21
22 extern char const * math_font_name[];
23 extern char const * latex_mathspace[];
24
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);
30
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);
36
37 /// math_parser.C
38 extern
39 MathedArray * mathed_parse(unsigned flags, MathedArray * data,
40                             MathParInset ** mt);
41
42 /// math_parser.C
43 extern
44 void mathed_parser_file(std::istream &, int);
45 /// math_parser.C
46 extern
47 int mathed_parser_lineno();
48
49 extern
50 bool MathIsInset(short x);
51
52 extern
53 bool MathIsFont(short x);
54
55 extern
56 bool MathIsAlphaFont(short x);
57
58 extern
59 bool MathIsActive(short x);
60
61 extern
62 bool MathIsUp(short x);
63
64 extern
65 bool MathIsDown(short x);
66
67 extern
68 bool MathIsScript(short x);
69
70 extern
71 bool MathIsBOPS(short x);
72
73 extern
74 bool MathIsBinary(short x);
75
76 extern
77 bool MathIsSymbol(short x);
78
79 extern
80 bool is_eqn_type(short int type);
81
82 extern
83 bool is_matrix_type(short int type);
84
85 extern
86 bool is_multiline(short int type);
87
88 extern
89 bool is_ams(short int type);
90
91 extern
92 bool is_singlely_numbered(short int type);
93
94 extern
95 bool is_multi_numbered(short int type);
96
97 extern
98 bool is_numbered(short int type);
99
100 extern
101 bool is_multicolumn(short int type);
102
103 #endif