]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/support.h
fix pullArg when pressing <Delete> at the end of an cell
[lyx.git] / src / mathed / support.h
index 9f4b811f9897ae8cb05ba805ca8d8ed49867e89b..73282c194f6fbb2e2b4bc071fef6664b9a2596bc 100644 (file)
@@ -3,8 +3,8 @@
 #ifndef MATH_SUPPORT_H
 #define MATH_SUPPORT_H
 
-#include "lyxfont.h"
 #include "math_defs.h"
+#include "LString.h"
 
 class Painter;
 class MathArray;
@@ -13,31 +13,32 @@ class MathMatrixInset;
 extern char const * math_font_name[];
 extern char const * latex_mathspace[];
 
-int mathed_char_height(short type, int size, unsigned char c,
+int mathed_char_height(MathTextCodes type, MathStyles size, unsigned char c,
        int & asc, int & des);
-int mathed_char_width(short type, int size, unsigned char c);
-void mathed_char_dim(short type, int size, unsigned char c,
+int mathed_char_width(MathTextCodes type, MathStyles size, unsigned char c);
+void mathed_char_dim(MathTextCodes type, MathStyles size, unsigned char c,
        int & asc, int & des, int & wid);
 
 void mathed_draw_deco(Painter & pain, int x, int y, int w, int h, int code);
 
-LyXFont mathed_get_font(short type, int size);
-
-void mathed_string_dim(short type, int size, string const & s,
+void mathed_string_dim(MathTextCodes type, MathStyles size, string const & s,
   int & asc, int & des, int & wid);
-int mathed_string_height(short type, int size, string const & s,
+int mathed_string_height(MathTextCodes type, MathStyles size, string const & s,
   int & asc, int & des);
-int mathed_string_width(short type, int size, string const & s);
+int mathed_string_width(MathTextCodes type, MathStyles size, string const & s);
 
-bool MathIsInset(short x);
-bool MathIsAlphaFont(short x);
-bool MathIsBOPS(short x);
-bool MathIsSymbol(short x);
+bool MathIsInset(MathTextCodes x);
+bool MathIsAlphaFont(MathTextCodes x);
+bool MathIsBOPS(MathTextCodes x);
+bool MathIsSymbol(MathTextCodes x);
 bool MathIsRelOp(unsigned char c, MathTextCodes f);
 
-void drawStr(Painter & pain, short type, int siz,
+void drawStr(Painter & pain, MathTextCodes type, MathStyles siz,
        int x, int y, string const & s);
-void drawChar(Painter & pain, short type, int siz,
+void drawChar(Painter & pain, MathTextCodes type, MathStyles siz,
        int x, int y, char c);
 
+void math_font_max_dim
+       (MathTextCodes code, MathStyles siz, int & asc, int & desc);
+
 #endif