X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_stringinset.h;h=0bf5af1093693243630e3e9c9bc480482d42f412;hb=c446acbd866d608963435f0b5d82506bc476f212;hp=79774ff7577a615f5fe1d3ad76877c4b9931ee0b;hpb=c93e9dcbc59d0b404561dbc7c373716f11fc13f1;p=lyx.git diff --git a/src/mathed/math_stringinset.h b/src/mathed/math_stringinset.h index 79774ff757..0bf5af1093 100644 --- a/src/mathed/math_stringinset.h +++ b/src/mathed/math_stringinset.h @@ -15,17 +15,15 @@ class MathStringInset : public MathInset { public: /// - MathStringInset(string const & s, MathTextCodes t); + MathStringInset(); + /// + MathStringInset(string const & s, MathTextCodes t = LM_TC_TEXTRM); /// MathInset * clone() const; /// void metrics(MathMetricsInfo const & st) const; /// void draw(Painter &, int x, int y) const; - /// - void write(WriteStream & os) const; - /// - void normalize(NormalStream &) const; /// int ascent() const; /// @@ -33,13 +31,24 @@ public: /// int width() const; /// + string str() const { return str_; } + /// + MathStringInset * asStringInset() { return this; } + /// request "external features" + void validate(LaTeXFeatures & features) const; + + /// + void normalize(NormalStream &) const; + /// void octavize(OctaveStream &) const; /// void maplize(MapleStream &) const; /// void mathmlize(MathMLStream &) const; + /// + void write(WriteStream & os) const; -private: +public: /// the string string str_; /// the font to be used on screen