]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_stringinset.h
fix typo that put too many include paths for most people
[lyx.git] / src / mathed / math_stringinset.h
index 6dfc02214572de31963326e8ed630671235287b4..58cfcd37834905523a379408900ae4d0cd32535b 100644 (file)
@@ -15,7 +15,9 @@
 class MathStringInset : public MathInset {
 public:
        ///
-       MathStringInset(string const & s, MathTextCodes t);
+       MathStringInset();
+       ///
+       MathStringInset(string const & s, MathTextCodes t = LM_TC_TEXTRM);
        ///
        MathInset * clone() const;
        ///
@@ -23,24 +25,35 @@ public:
        ///
        void draw(Painter &, int x, int y) const;
        ///
-       void write(MathWriteInfo & os) const;
-       ///
-       void writeNormal(std::ostream &) const;
-       /// 
        int ascent() const;
        ///
        int descent() const;
        ///
        int width() const;
        ///
-       string & str();
+       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
        MathTextCodes code_;
        ///
-       mutable MathMetricsInfo mi_;
+       mutable LyXFont font_;
 };
 #endif