]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathFrac.h
Improve the list of equations
[lyx.git] / src / mathed / InsetMathFrac.h
index 14af2f8be31cf6973e693903b11e31a1889fd79f..9d5484487687932368f8bd45dc2be588cd4f47c1 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;
@@ -82,10 +88,15 @@ public:
        ///
        void octave(OctaveStream &) const;
        ///
-       docstring mathmlize(MathStream &) const;
+       void mathmlize(MathStream &) const;
+       ///
+       void htmlize(HtmlStream &) const;
        ///
        void validate(LaTeXFeatures & features) const;
-public:
+private:
+       /// vertical displacement
+       int dy(FontInfo & fi) const;
+       ///
        Inset * clone() const;
        ///
        Kind kind_;
@@ -111,6 +122,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;
        ///
@@ -121,7 +134,9 @@ public:
        ///
        bool extraBraces() const;
        ///
-       docstring mathmlize(MathStream &) const;
+       void mathmlize(MathStream &) const;
+       ///
+       void htmlize(HtmlStream &) const;
        ///
        void validate(LaTeXFeatures & features) const;
        ///