]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_fracinset.h
Fix bug 2481
[lyx.git] / src / mathed / math_fracinset.h
index 90ea9c9fd755026bb7c5d378b6861ff1e3c6353b..1abb102f8f950d129c4b9912081a8d99b64a53d7 100644 (file)
 class MathFracInset : public MathFracbaseInset {
 public:
        ///
-       explicit MathFracInset(bool atop = false);
+       enum Kind {
+               FRAC,
+               ATOP,
+               NICEFRAC
+       };
+
        ///
-       virtual std::auto_ptr<InsetBase> clone() const;
+       explicit MathFracInset(Kind kind = FRAC);
        ///
        void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
@@ -37,6 +42,8 @@ public:
        MathFracInset const * asFracInset() const;
        ///
        std::string name() const;
+       ///
+       bool extraBraces() const;
 
        ///
        void write(WriteStream & os) const;
@@ -48,9 +55,12 @@ public:
        void octave(OctaveStream &) const;
        ///
        void mathmlize(MathMLStream &) const;
+       ///
+       void validate(LaTeXFeatures & features) const;
 public:
+       virtual std::auto_ptr<InsetBase> doClone() const;
        ///
-       const bool atop_;
+       Kind kind_;
 };
 
 #endif