X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathFrac.h;h=5eb15d193d8d80afbc4149d13c074d83a29a8fa1;hb=58ab972f714309aa87e7d956ceda00e18337875f;hp=e80389281b4860468c71c512b4f72c0f7f93956d;hpb=32871c1284f15265f652ff01c438e539a7c8181f;p=lyx.git diff --git a/src/mathed/InsetMathFrac.h b/src/mathed/InsetMathFrac.h index e80389281b..5eb15d193d 100644 --- a/src/mathed/InsetMathFrac.h +++ b/src/mathed/InsetMathFrac.h @@ -27,13 +27,19 @@ public: FRAC, OVER, ATOP, - NICEFRAC + NICEFRAC, + UNITFRAC, + UNIT }; /// - explicit InsetMathFrac(Kind kind = FRAC); + explicit InsetMathFrac(Kind kind = FRAC, idx_type ncells = 2); /// - bool metrics(MetricsInfo & mi, Dimension & dim) const; + bool idxRight(Cursor &) const; + /// + bool idxLeft(Cursor &) const; + /// + void metrics(MetricsInfo & mi, Dimension & dim) const; /// void draw(PainterInfo &, int x, int y) const; /// @@ -62,7 +68,7 @@ public: /// void validate(LaTeXFeatures & features) const; public: - virtual std::auto_ptr doClone() const; + virtual Inset * clone() const; /// Kind kind_; };