]> git.lyx.org Git - lyx.git/blob - src/mathed/support.h
mathed64.diff
[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 void mathed_parse(MathedArray & data, MathParInset * & par, unsigned flags);
40
41 /// math_parser.C
42 extern
43 void mathed_parser_file(std::istream &, int);
44 /// math_parser.C
45 extern
46 int mathed_parser_lineno();
47
48 extern
49 bool MathIsInset(short x);
50
51 extern
52 bool MathIsFont(short x);
53
54 extern
55 bool MathIsAlphaFont(short x);
56
57 extern
58 bool MathIsActive(short x);
59
60 extern
61 bool MathIsUp(short x);
62
63 extern
64 bool MathIsDown(short x);
65
66 extern
67 bool MathIsScript(short x);
68
69 extern
70 bool MathIsBOPS(short x);
71
72 extern
73 bool MathIsBinary(short x);
74
75 extern
76 bool MathIsSymbol(short x);
77
78 extern
79 bool is_eqn_type(short int type);
80
81 extern
82 bool is_matrix_type(short int type);
83
84 extern
85 bool is_multiline(short int type);
86
87 extern
88 bool is_ams(short int type);
89
90 extern
91 bool is_singlely_numbered(short int type);
92
93 extern
94 bool is_multi_numbered(short int type);
95
96 extern
97 bool is_numbered(short int type);
98
99 extern
100 bool is_multicolumn(short int type);
101
102 #endif