]> git.lyx.org Git - features.git/blobdiff - src/mathed/InsetMathExFunc.h
Introduce a return value for mathmlize(). We will need this to be able
[features.git] / src / mathed / InsetMathExFunc.h
index 9c03873cb1bcbda5031305233dc67f147215ab99..0517484f388721dcd0136598593a4341b12a8bd8 100644 (file)
@@ -4,7 +4,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author André Pönitz
+ * \author André Pönitz
  *
  * Full author contact details are available in file CREDITS.
  */
@@ -26,11 +26,11 @@ namespace lyx {
 class InsetMathExFunc : public InsetMathNest {
 public:
        ///
-       explicit InsetMathExFunc(docstring const & name);
+       InsetMathExFunc(Buffer * buf, docstring const & name);
        ///
-       InsetMathExFunc(docstring const & name, MathData const & ar);
+       InsetMathExFunc(Buffer * buf, docstring const & name, MathData const & ar);
        ///
-       bool metrics(MetricsInfo & mi, Dimension & dim) const;
+       void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
        void draw(PainterInfo & pi, int x, int y) const;
        ///
@@ -43,12 +43,14 @@ public:
        ///
        void mathematica(MathematicaStream &) const;
        ///
-       void mathmlize(MathStream &) const;
+       docstring mathmlize(MathStream &) const;
        ///
        void octave(OctaveStream &) const;
+       ///
+       InsetCode lyxCode() const { return MATH_EXFUNC_CODE; }
 
 private:
-       virtual std::auto_ptr<Inset> doClone() const;
+       virtual Inset * clone() const;
        ///
        docstring const name_;
 };