]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathFrac.h
Do not throw exceptions here either. See r22806.
[lyx.git] / src / mathed / InsetMathFrac.h
index 7e22a24cfe5031b33b8368a1e139b212b512ecc2..5030730647db540a4f0047f8d875be434c0934ff 100644 (file)
@@ -23,9 +23,7 @@ namespace lyx {
 class InsetMathFracBase : public InsetMathNest {
 public:
        ///
-       explicit InsetMathFracBase(idx_type ncells = 2);
-       ///
-       mode_type currentMode() const { return MATH_MODE; }
+       InsetMathFracBase(Buffer * buf, idx_type ncells = 2);
        ///
        bool idxUpDown(Cursor &, bool up) const;
        ///
@@ -54,7 +52,7 @@ public:
                UNIT
        };
        ///
-       explicit InsetMathFrac(Kind kind = FRAC, idx_type ncells = 2);
+       explicit InsetMathFrac(Buffer * buf, Kind kind = FRAC, idx_type ncells = 2);
        ///
        bool idxForward(Cursor &) const;
        ///
@@ -86,6 +84,8 @@ public:
        ///
        void mathmlize(MathStream &) const;
        ///
+       void htmlize(HtmlStream &) const;
+       ///
        void validate(LaTeXFeatures & features) const;
 public:
        Inset * clone() const;
@@ -108,7 +108,7 @@ public:
                BRACK
        };
        ///
-       explicit InsetMathBinom(Kind kind = BINOM);
+       explicit InsetMathBinom(Buffer * buf, Kind kind = BINOM);
        ///
        void write(WriteStream & os) const;
        ///
@@ -125,7 +125,11 @@ public:
        ///
        void mathmlize(MathStream &) const;
        ///
+       void htmlize(HtmlStream &) const;
+       ///
        void validate(LaTeXFeatures & features) const;
+       ///
+       InsetCode lyxCode() const { return MATH_FRAC_CODE; }
 private:
        Inset * clone() const;
        ///