X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathFrac.h;h=9d5484487687932368f8bd45dc2be588cd4f47c1;hb=5fdc577badb1cb133d6a0dc7d831bb1f82576adb;hp=14af2f8be31cf6973e693903b11e31a1889fd79f;hpb=8a0134cc8ce7de41d6d6911a1c4219ca958f2b71;p=lyx.git diff --git a/src/mathed/InsetMathFrac.h b/src/mathed/InsetMathFrac.h index 14af2f8be3..9d54844876 100644 --- a/src/mathed/InsetMathFrac.h +++ b/src/mathed/InsetMathFrac.h @@ -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; ///