X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathFrac.h;h=9d5484487687932368f8bd45dc2be588cd4f47c1;hb=2de30c62f8d671a8c8d4d52a6a7310e2c5ca84de;hp=c030c8a51a0203f15b2429b64988f345a744e2e7;hpb=11c2b7792caf22219b346f8bb69a01f6abbf362d;p=lyx.git diff --git a/src/mathed/InsetMathFrac.h b/src/mathed/InsetMathFrac.h index c030c8a51a..9d54844876 100644 --- a/src/mathed/InsetMathFrac.h +++ b/src/mathed/InsetMathFrac.h @@ -62,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; @@ -91,7 +93,10 @@ public: void htmlize(HtmlStream &) const; /// void validate(LaTeXFeatures & features) const; -public: +private: + /// vertical displacement + int dy(FontInfo & fi) const; + /// Inset * clone() const; /// Kind kind_; @@ -117,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; ///