]> 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 e80389281b4860468c71c512b4f72c0f7f93956d..5eb15d193d8d80afbc4149d13c074d83a29a8fa1 100644 (file)
@@ -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<Inset> doClone() const;
+       virtual Inset * clone() const;
        ///
        Kind kind_;
 };