3 * \file InsetMathString.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
12 #ifndef MATH_STRINGINSET_H
13 #define MATH_STRINGINSET_H
15 #include "InsetMath.h"
17 #include "support/docstring.h"
22 /** Some collection of chars with similar properties
23 * mainly for math-extern
26 class InsetMathString : public InsetMath {
29 explicit InsetMathString(docstring const & s);
31 void metrics(MetricsInfo & mi, Dimension & dim) const override;
33 void draw(PainterInfo & pi, int x, int y) const override;
35 docstring str() const { return str_; }
37 InsetMathString * asStringInset() override { return this; }
39 InsetMathString const * asStringInset() const override { return this; }
42 void normalize(NormalStream &) const override;
44 void octave(OctaveStream &) const override;
46 void maple(MapleStream &) const override;
48 void mathematica(MathematicaStream &) const override;
50 void mathmlize(MathMLStream &) const override;
52 void write(TeXMathStream & os) const override;
54 InsetCode lyxCode() const override { return MATH_STRING_CODE; }
57 Inset * clone() const override;