X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathFrac.h;h=5eb15d193d8d80afbc4149d13c074d83a29a8fa1;hb=58ab972f714309aa87e7d956ceda00e18337875f;hp=b7e8eab4b075e91f115f995a3144386a591b9189;hpb=6c300f72a217722652dc27db9108e1050028979c;p=lyx.git diff --git a/src/mathed/InsetMathFrac.h b/src/mathed/InsetMathFrac.h index b7e8eab4b0..5eb15d193d 100644 --- a/src/mathed/InsetMathFrac.h +++ b/src/mathed/InsetMathFrac.h @@ -27,11 +27,17 @@ public: FRAC, OVER, ATOP, - NICEFRAC + NICEFRAC, + UNITFRAC, + UNIT }; /// - explicit InsetMathFrac(Kind kind = FRAC); + explicit InsetMathFrac(Kind kind = FRAC, idx_type ncells = 2); + /// + bool idxRight(Cursor &) const; + /// + bool idxLeft(Cursor &) const; /// void metrics(MetricsInfo & mi, Dimension & dim) const; /// @@ -45,7 +51,7 @@ public: /// identifies FracInsets InsetMathFrac const * asFracInset() const; /// - std::string name() const; + docstring name() const; /// bool extraBraces() const; @@ -58,11 +64,11 @@ public: /// void octave(OctaveStream &) const; /// - void mathmlize(MathMLStream &) const; + void mathmlize(MathStream &) const; /// void validate(LaTeXFeatures & features) const; public: - virtual std::auto_ptr doClone() const; + virtual Inset * clone() const; /// Kind kind_; };