]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathFrac.h
Simplify Changers interface
[lyx.git] / src / mathed / InsetMathFrac.h
index 5030730647db540a4f0047f8d875be434c0934ff..96b62930ba1ef1b3d845d24dab80f16a8d80f3cd 100644 (file)
@@ -30,6 +30,10 @@ public:
        bool idxBackward(Cursor &) const { return false; }
        ///
        bool idxForward(Cursor &) const { return false; }
+       ///
+       InsetMathFracBase * asFracBaseInset() { return this; }
+       ///
+       InsetMathFracBase const * asFracBaseInset() const { return this; }
 };
 
 
@@ -58,6 +62,8 @@ public:
        ///
        bool idxBackward(Cursor &) const;
        ///
+       MathClass mathClass() const;
+       ///
        void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
        void draw(PainterInfo &, int x, int y) const;
@@ -113,6 +119,8 @@ public:
        void write(WriteStream & os) const;
        ///
        void normalize(NormalStream &) const;
+       /// Generalized fractions are of inner class (see The TeXbook, p.292)
+       MathClass mathClass() const { return MC_INNER; }
        ///
        void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///