]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/support.h
remove symbol_def.h
[lyx.git] / src / mathed / support.h
index 75963dd38ff46978bb2352ab575f13980b4e0ce4..e6b90a2762c281eced6e92ac3636e004e51129ad 100644 (file)
@@ -7,30 +7,29 @@
 #include "LString.h"
 
 class Painter;
-class MathArray;
-class MathMatrixInset;
+class latexkeys;
 
-extern char const * math_font_name[];
 extern char const * latex_mathspace[];
 
 int mathed_char_height(MathTextCodes type, MathStyles size, unsigned char c,
        int & asc, int & des);
-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);
+int mathed_char_width(MathTextCodes type, MathStyles size, unsigned char c);
+int mathed_char_ascent(MathTextCodes type, MathStyles size, unsigned char c);
+int mathed_char_descent(MathTextCodes type, MathStyles size, unsigned char c);
 
-void mathed_draw_deco(Painter & pain, int x, int y, int w, int h, int code);
+void mathed_draw_deco
+       (Painter & pain, int x, int y, int w, int h, string const & name);
 
 void mathed_string_dim(MathTextCodes type, MathStyles size, string const & s,
   int & asc, int & des, int & wid);
 int mathed_string_height(MathTextCodes type, MathStyles size, string const & s,
   int & asc, int & des);
-int mathed_string_width(MathTextCodes type, MathStyles size, string const & s);
 
-bool MathIsInset(MathTextCodes x);
-bool MathIsAlphaFont(MathTextCodes x);
-bool MathIsSymbol(MathTextCodes x);
-bool MathIsRelOp(unsigned char c, MathTextCodes f);
+int mathed_string_width(MathTextCodes type, MathStyles size, string const & s);
+int mathed_string_ascent(MathTextCodes type, MathStyles size, string const & s);
+int mathed_string_descent(MathTextCodes type, MathStyles size, string const & s);
 
 void drawStr(Painter & pain, MathTextCodes type, MathStyles siz,
        int x, int y, string const & s);
@@ -40,4 +39,6 @@ void drawChar(Painter & pain, MathTextCodes type, MathStyles siz,
 void math_font_max_dim
        (MathTextCodes code, MathStyles siz, int & asc, int & desc);
 
+bool math_font_available(MathTextCodes code);
+
 #endif