]> 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 34fa136f80436a1ed1de482d1106253c476d6a30..5eb15d193d8d80afbc4149d13c074d83a29a8fa1 100644 (file)
@@ -16,6 +16,9 @@
 #include "InsetMathFracBase.h"
 
 
+namespace lyx {
+
+
 /// Fraction like objects (frac, binom)
 class InsetMathFrac : public InsetMathFracBase {
 public:
@@ -24,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;
        ///
@@ -42,7 +51,7 @@ public:
        /// identifies FracInsets
        InsetMathFrac const * asFracInset() const;
        ///
-       std::string name() const;
+       docstring name() const;
        ///
        bool extraBraces() const;
 
@@ -55,13 +64,16 @@ public:
        ///
        void octave(OctaveStream &) const;
        ///
-       void mathmlize(MathMLStream &) const;
+       void mathmlize(MathStream &) const;
        ///
        void validate(LaTeXFeatures & features) const;
 public:
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       virtual Inset * clone() const;
        ///
        Kind kind_;
 };
 
+
+
+} // namespace lyx
 #endif