]> git.lyx.org Git - features.git/blobdiff - src/mathed/InsetMathRoot.h
Introduce a return value for mathmlize(). We will need this to be able
[features.git] / src / mathed / InsetMathRoot.h
index 0ba0653261678133935c1eaab6aa8532ec412767..e05cc807a303f8d85cc37fd3e6acd1d30cdf09fa 100644 (file)
@@ -5,7 +5,7 @@
  * Licence details can be found in the file COPYING.
  *
  * \author Alejandro Aguilar Sierra
- * \author André Pönitz
+ * \author André Pönitz
  *
  * Full author contact details are available in file CREDITS.
  */
@@ -23,11 +23,11 @@ namespace lyx {
 class InsetMathRoot : public InsetMathNest {
 public:
        ///
-       InsetMathRoot();
+       InsetMathRoot(Buffer * buf);
        ///
-       bool idxUpDown(LCursor & cur, bool up) const;
+       bool idxUpDown(Cursor & cur, bool up) const;
        ///
-       bool metrics(MetricsInfo & mi, Dimension & dim) const;
+       void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
        void draw(PainterInfo & pi, int x, int y) const;
 
@@ -36,15 +36,18 @@ public:
        ///
        void normalize(NormalStream &) const;
        ///
-       void mathmlize(MathStream &) const;
+       docstring mathmlize(MathStream &) const;
        ///
        void maple(MapleStream &) const;
        ///
        void mathematica(MathematicaStream &) const;
        ///
        void octave(OctaveStream &) const;
+       ///
+       InsetCode lyxCode() const { return MATH_ROOT_CODE; }
+
 private:
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       virtual Inset * clone() const;
 };