]> git.lyx.org Git - lyx.git/blob - src/mathed/support.h
fix pullArg when pressing <Delete> at the end of an cell
[lyx.git] / src / mathed / support.h
1 // -*- C++ -*-
2
3 #ifndef MATH_SUPPORT_H
4 #define MATH_SUPPORT_H
5
6 #include "math_defs.h"
7 #include "LString.h"
8
9 class Painter;
10 class MathArray;
11 class MathMatrixInset;
12
13 extern char const * math_font_name[];
14 extern char const * latex_mathspace[];
15
16 int mathed_char_height(MathTextCodes type, MathStyles size, unsigned char c,
17         int & asc, int & des);
18 int mathed_char_width(MathTextCodes type, MathStyles size, unsigned char c);
19 void mathed_char_dim(MathTextCodes type, MathStyles size, unsigned char c,
20         int & asc, int & des, int & wid);
21
22 void mathed_draw_deco(Painter & pain, int x, int y, int w, int h, int code);
23
24 void mathed_string_dim(MathTextCodes type, MathStyles size, string const & s,
25   int & asc, int & des, int & wid);
26 int mathed_string_height(MathTextCodes type, MathStyles size, string const & s,
27   int & asc, int & des);
28 int mathed_string_width(MathTextCodes type, MathStyles size, string const & s);
29
30 bool MathIsInset(MathTextCodes x);
31 bool MathIsAlphaFont(MathTextCodes x);
32 bool MathIsBOPS(MathTextCodes x);
33 bool MathIsSymbol(MathTextCodes x);
34 bool MathIsRelOp(unsigned char c, MathTextCodes f);
35
36 void drawStr(Painter & pain, MathTextCodes type, MathStyles siz,
37         int x, int y, string const & s);
38 void drawChar(Painter & pain, MathTextCodes type, MathStyles siz,
39         int x, int y, char c);
40
41 void math_font_max_dim
42         (MathTextCodes code, MathStyles siz, int & asc, int & desc);
43
44 #endif