]> 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 85c97fc5818948aff3f16b9d8ee798a6d200fce2..58cfcd37834905523a379408900ae4d0cd32535b 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;
-       /// 
+       ///
        int ascent() const;
        ///
        int descent() const;
@@ -32,6 +34,8 @@ public:
        string str() const { return str_; }
        ///
        MathStringInset * asStringInset() { return this; }
+       /// request "external features"
+       void validate(LaTeXFeatures & features) const;
 
        ///
        void normalize(NormalStream &) const;
@@ -44,12 +48,12 @@ public:
        ///
        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