2 #ifndef MATH_STRINGINSET_H
3 #define MATH_STRINGINSET_H
5 #include "math_inset.h"
8 /** Some collection of chars with similar properties
9 * maily for math-extern
10 * \author André Pönitz
12 * Full author contact details are available in file CREDITS
15 class MathStringInset : public MathInset {
18 explicit MathStringInset(string const & s);
20 virtual std::auto_ptr<InsetBase> clone() const;
22 void metrics(MetricsInfo & mi, Dimension & dim) const;
24 void draw(PainterInfo & pi, int x, int y) const;
26 string str() const { return str_; }
28 MathStringInset * asStringInset() { return this; }
31 void normalize(NormalStream &) const;
33 void octave(OctaveStream &) const;
35 void maple(MapleStream &) const;
37 void mathematica(MathematicaStream &) const;
39 void mathmlize(MathMLStream &) const;
41 void write(WriteStream & os) const;