]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_stringinset.h
infrastructure for requiring "amssymb".
[lyx.git] / src / mathed / math_stringinset.h
index 79774ff7577a615f5fe1d3ad76877c4b9931ee0b..0bf5af1093693243630e3e9c9bc480482d42f412 100644 (file)
 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