4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Alejandro Aguilar Sierra
10 * Full author contact details are available in file CREDITS.
13 #ifndef MATH_SUPPORT_H
14 #define MATH_SUPPORT_H
16 #include "support/docstring.h"
31 int mathed_char_width(LyXFont const &, char_type c);
33 void mathed_draw_deco(PainterInfo & pi, int x, int y, int w, int h,
34 docstring const & name);
36 void mathed_string_dim(LyXFont const & font,
40 int mathed_string_width(LyXFont const &, docstring const & s);
42 void drawStrRed(PainterInfo & pi, int x, int y, docstring const & s);
43 void drawStrBlack(PainterInfo & pi, int x, int y, docstring const & s);
45 void math_font_max_dim(LyXFont const &, int & asc, int & desc);
47 void augmentFont(LyXFont & f, docstring const & cmd);
49 bool isFontName(docstring const & name);
51 // converts single cell to string
52 docstring asString(MathArray const & ar);
53 // converts single inset to string
54 docstring asString(InsetMath const &);
55 docstring asString(MathAtom const &);
56 // converts string to single cell
57 void asArray(docstring const & str, MathArray & ar);