* Licence details can be found in the file COPYING.
*
* \author Alejandro Aguilar Sierra
- * \author André Pönitz
+ * \author André Pönitz
*
* Full author contact details are available in file CREDITS.
*/
#ifndef MATH_SUPPORT_H
#define MATH_SUPPORT_H
-#include "support/docstring.h"
-
-#include <string>
-#include <vector>
+#include "MathParser_flags.h"
+#include "support/strfwd.h"
namespace lyx {
+class MetricsInfo;
class PainterInfo;
class FontInfo;
class Dimension;
int mathed_string_width(FontInfo const &, docstring const & s);
+void metricsStrRedBlack(MetricsInfo & mi, Dimension & dim, docstring const & s);
+
void drawStrRed(PainterInfo & pi, int x, int y, docstring const & s);
void drawStrBlack(PainterInfo & pi, int x, int y, docstring const & s);
bool isFontName(docstring const & name);
+bool isMathFont(docstring const & name);
+
+bool isTextFont(docstring const & name);
+
+bool isAlphaSymbol(MathAtom const & at);
+
// converts single cell to string
docstring asString(MathData const & ar);
// converts single inset to string
docstring asString(InsetMath const &);
docstring asString(MathAtom const &);
// converts string to single cell
-void asArray(docstring const & str, MathData & ar);
+void asArray(docstring const &, MathData &, Parse::flags f = Parse::NORMAL);
} // namespace lyx