]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathSupport.h
make it compile again (hopefully)
[lyx.git] / src / mathed / MathSupport.h
index 3874735e1e58a389179433d1a44cc44e3824f3ed..a10b938351dcc97a9944eb695493fd11ceb5b92d 100644 (file)
@@ -13,6 +13,8 @@
 #ifndef MATH_SUPPORT_H
 #define MATH_SUPPORT_H
 
+#include "support/docstring.h"
+
 #include <string>
 
 class PainterInfo;
@@ -23,19 +25,17 @@ class MathAtom;
 class InsetMath;
 
 
-void mathed_char_dim(LyXFont const &, unsigned char c, Dimension & dim);
-int mathed_char_width(LyXFont const &, unsigned char c);
-int mathed_char_ascent(LyXFont const &, unsigned char c);
-int mathed_char_descent(LyXFont const &, unsigned char c);
+void mathed_char_dim(LyXFont const &, lyx::char_type c, Dimension & dim);
+int mathed_char_width(LyXFont const &, lyx::char_type c);
 
 void mathed_draw_deco(PainterInfo & pi, int x, int y, int w, int h,
        std::string const & name);
 
-void mathed_string_dim(LyXFont const & font, std::string const & s, Dimension & dim);
-int mathed_string_width(LyXFont const &, std::string const & s);
+void mathed_string_dim(LyXFont const & font, lyx::docstring const & s, Dimension & dim);
+int mathed_string_width(LyXFont const &, lyx::docstring const & s);
 
-void drawStrRed(PainterInfo & pi, int x, int y, std::string const & s);
-void drawStrBlack(PainterInfo & pi, int x, int y, std::string const & s);
+void drawStrRed(PainterInfo & pi, int x, int y, lyx::docstring const & s);
+void drawStrBlack(PainterInfo & pi, int x, int y, lyx::docstring const & s);
 
 void math_font_max_dim(LyXFont const &, int & asc, int & desc);
 
@@ -49,6 +49,6 @@ std::string asString(MathArray const & ar);
 std::string asString(InsetMath const &);
 std::string asString(MathAtom const &);
 // converts string to single cell
-void asArray(std::string const & str, MathArray & ar);
+void asArray(lyx::docstring const & str, MathArray & ar);
 
 #endif