]> git.lyx.org Git - lyx.git/blob - src/mathed/math_support.h
oh well
[lyx.git] / src / mathed / math_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 TextPainter;
11 class latexkeys;
12 class MathMetricsInfo;
13 class MathInset;
14 class LyXFont;
15
16 void mathed_char_dim(LyXFont const &, unsigned char c,
17         int & asc, int & des, int & wid);
18 int mathed_char_width(LyXFont const &, unsigned char c);
19 int mathed_char_ascent(LyXFont const &, unsigned char c);
20 int mathed_char_descent(LyXFont const &, unsigned char c);
21
22 void mathed_draw_deco(Painter & pain, int x, int y, int w, int h,
23         string const & name);
24
25 void mathed_draw_framebox(Painter & pain, int x, int y, MathInset const *);
26
27 void mathed_string_dim(LyXFont const &,
28         string const & s, int & asc, int & des, int & wid);
29
30 int mathed_string_width(LyXFont const &, string const & s);
31 int mathed_string_ascent(LyXFont const &, string const & s);
32 int mathed_string_descent(LyXFont const &, string const & s);
33
34 void drawStr(Painter & pain, LyXFont const &, int x, int y, string const & s);
35 void drawChar(Painter & pain, LyXFont const & font, int x, int y, char c);
36
37 void math_font_max_dim(LyXFont const &, int & asc, int & desc);
38
39 bool math_font_available(MathTextCodes code);
40
41 // decrease math size for super- and subscripts
42 void smallerStyleScript(MathMetricsInfo &);
43
44 // decrease math size for fractions
45 void smallerStyleFrac(MathMetricsInfo & st);
46
47 char const * math_font_name(MathTextCodes type);
48
49 string convertDelimToLatexName(string const & name);
50
51 void whichFont(LyXFont & f, MathTextCodes type, MathMetricsInfo const & size);
52
53 #endif