]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathFrac.h
last commit was incomplete... not sure how I managed this..
[lyx.git] / src / mathed / InsetMathFrac.h
index dc4ed0bf52104345b6a9e6e9fe0718d1bd59b26d..5eb15d193d8d80afbc4149d13c074d83a29a8fa1 100644 (file)
@@ -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;
        ///
@@ -62,7 +68,7 @@ public:
        ///
        void validate(LaTeXFeatures & features) const;
 public:
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       virtual Inset * clone() const;
        ///
        Kind kind_;
 };