2 #ifndef MATH_STRINGINSET_H
3 #define MATH_STRINGINSET_H
5 #include "math_inset.h"
11 /** Some cllection of chars with similar properties
15 class MathStringInset : public MathInset {
20 MathStringInset(string const & s, MathTextCodes t = LM_TC_TEXTRM);
22 MathInset * clone() const;
24 void metrics(MathMetricsInfo const & st) const;
26 void draw(Painter &, int x, int y) const;
34 string str() const { return str_; }
36 MathStringInset * asStringInset() { return this; }
39 void normalize(NormalStream &) const;
41 void octavize(OctaveStream &) const;
43 void maplize(MapleStream &) const;
45 void mathmlize(MathMLStream &) const;
47 void write(WriteStream & os) const;
52 /// the font to be used on screen
55 mutable MathMetricsInfo mi_;