]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathSupport.h
Simplify Changers interface
[lyx.git] / src / mathed / MathSupport.h
index 968be725ef305ae101d8e100c0c5774004faef10..003631b8ae3bf0f2385b64c1ad5e11e05f7f059b 100644 (file)
@@ -15,7 +15,6 @@
 
 #include "MathParser_flags.h"
 #include "support/strfwd.h"
-#include <vector>
 
 namespace lyx {
 
@@ -26,8 +25,17 @@ class Dimension;
 class MathData;
 class MathAtom;
 class InsetMath;
+class latexkeys;
 
 
+int mathed_font_em(FontInfo const &);
+
+int mathed_thinmuskip(FontInfo font);
+
+int mathed_medmuskip(FontInfo font);
+
+int mathed_thickmuskip(FontInfo font);
+
 int mathed_char_width(FontInfo const &, char_type c);
 
 int mathed_char_kerning(FontInfo const &, char_type c);
@@ -41,6 +49,10 @@ void mathed_string_dim(FontInfo const & font,
 
 int mathed_string_width(FontInfo const &, docstring const & s);
 
+void mathedSymbolDim(MetricsInfo & mi, Dimension & dim, latexkeys const * sym);
+
+void mathedSymbolDraw(PainterInfo & pi, int x, int y, latexkeys const * sym);
+
 void metricsStrRedBlack(MetricsInfo & mi, Dimension & dim, docstring const & s);
 
 void drawStrRed(PainterInfo & pi, int x, int y, docstring const & s);
@@ -48,13 +60,15 @@ void drawStrBlack(PainterInfo & pi, int x, int y, docstring const & s);
 
 void math_font_max_dim(FontInfo const &, int & asc, int & desc);
 
-void augmentFont(FontInfo & f, docstring const & cmd);
+void augmentFont(FontInfo & f, std::string const & cmd);
+
+bool isFontName(std::string const & name);
 
-bool isFontName(docstring const & name);
+bool isMathFont(std::string const & name);
 
-bool isMathFont(docstring const & name);
+bool isTextFont(std::string const & name);
 
-bool isTextFont(docstring const & name);
+bool isAlphaSymbol(MathAtom const & at);
 
 // converts single cell to string
 docstring asString(MathData const & ar);