]> git.lyx.org Git - lyx.git/blob - src/mathed/math_support.h
split LyXText::rowlist_ into individual Paragraph::rows_ chunks
[lyx.git] / src / mathed / math_support.h
1 // -*- C++ -*-
2
3 #ifndef MATH_SUPPORT_H
4 #define MATH_SUPPORT_H
5
6 #include "LString.h"
7
8 class PainterInfo;
9 class LyXFont;
10 class Dimension;
11 class MathArray;
12
13 void mathed_char_dim(LyXFont const &, unsigned char c, Dimension & dim);
14 int mathed_char_width(LyXFont const &, unsigned char c);
15 int mathed_char_ascent(LyXFont const &, unsigned char c);
16 int mathed_char_descent(LyXFont const &, unsigned char c);
17
18 void mathed_draw_deco(PainterInfo & pi, int x, int y, int w, int h,
19         string const & name);
20
21 void mathed_string_dim(LyXFont const & font, string const & s, Dimension & dim);
22 int mathed_string_width(LyXFont const &, string const & s);
23
24 void drawStr(PainterInfo & pi,
25         LyXFont const &, int x, int y, string const & s);
26 void drawStrRed(PainterInfo & pi, int x, int y, string const & s);
27 void drawStrBlack(PainterInfo & pi, int x, int y, string const & s);
28 void drawChar(PainterInfo & pi, LyXFont const & font, int x, int y, char c);
29
30 void math_font_max_dim(LyXFont const &, int & asc, int & desc);
31
32 void augmentFont(LyXFont & f, string const & cmd);
33
34 bool isFontName(string const & name);
35
36 // converts single cell to string
37 string asString(MathArray const & ar);
38 // converts string to single cell
39 void asArray(string const & str, MathArray & ar);
40
41 #endif