]> git.lyx.org Git - lyx.git/blob - src/mathed/support.h
get rid of several friends small cleanup
[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 * 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 /// math_write.C
42 extern
43 void mathed_write(MathParInset *, std::ostream &, int *, bool fragile,
44                   string const & label = string());
45
46 /// math_parser.C
47 extern
48 void mathed_parser_file(std::istream &, int);
49 /// math_parser.C
50 extern
51 int mathed_parser_lineno();
52 /// math_utils.C
53 extern
54 int MathedLookupBOP(short);
55
56 extern
57 bool MathIsInset(short x);
58
59 extern
60 bool MathIsFont(short x);
61
62 extern
63 bool MathIsAlphaFont(short x);
64
65 extern
66 bool MathIsActive(short x);
67
68 extern
69 bool MathIsUp(short x);
70
71 extern
72 bool MathIsDown(short x);
73
74 extern
75 bool MathIsScript(short x);
76
77 extern
78 bool MathIsBOPS(short x);
79
80 extern
81 bool MathIsBinary(short x);
82
83 extern
84 bool MathIsSymbol(short x);
85
86 extern
87 bool is_eqn_type(short int type);
88
89 extern
90 bool is_matrix_type(short int type);
91
92 extern
93 bool is_multiline(short int type);
94
95 extern
96 bool is_ams(short int type);
97
98 extern
99 bool is_singlely_numbered(short int type);
100
101 extern
102 bool is_multi_numbered(short int type);
103
104 extern
105 bool is_numbered(short int type);
106
107 extern
108 bool is_multicolumn(short int type);
109
110 #endif