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
26 void mathed_char_dim(LyXFont const &, unsigned char c, Dimension & dim);
27 int mathed_char_width(LyXFont const &, unsigned char c);
29 void mathed_draw_deco(PainterInfo & pi, int x, int y, int w, int h,
30 std::string const & name);
32 void mathed_string_dim(LyXFont const & font, std::string const & s, Dimension & dim);
33 int mathed_string_width(LyXFont const &, std::string const & s);
35 void drawStrRed(PainterInfo & pi, int x, int y, std::string const & s);
36 void drawStrBlack(PainterInfo & pi, int x, int y, std::string const & s);
38 void math_font_max_dim(LyXFont const &, int & asc, int & desc);
40 void augmentFont(LyXFont & f, std::string const & cmd);
42 bool isFontName(std::string const & name);
44 // converts single cell to string
45 std::string asString(MathArray const & ar);
46 // converts single inset to string
47 std::string asString(InsetMath const &);
48 std::string asString(MathAtom const &);
49 // converts string to single cell
50 void asArray(std::string const & str, MathArray & ar);