]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathExFunc.h
g-brief loads babel internally. So don't load it ourselves.
[lyx.git] / src / mathed / InsetMathExFunc.h
index c0f8301f5851658d130f47166eed872d34035db5..ff99140cca6a1eaa259d3a469143888748ef4e2f 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.
  */
@@ -15,8 +15,8 @@
 
 #include "InsetMathNest.h"
 
-#include <string>
 
+namespace lyx {
 
 // f(x) in one block (as opposed to 'f','(','x',')' or 'f','x')
 // for interfacing external programs
 class InsetMathExFunc : public InsetMathNest {
 public:
        ///
-       explicit InsetMathExFunc(std::string const & name);
+       InsetMathExFunc(Buffer * buf, docstring const & name);
        ///
-       InsetMathExFunc(std::string const & name, MathArray const & ar);
+       InsetMathExFunc(Buffer * buf, docstring const & name, MathData const & ar);
        ///
-       void metrics(MetricsInfo & mi, Dimension & dim) const;
+       void metrics(MetricsInfo & mi, Dimension & dim) const override;
        ///
-       void draw(PainterInfo & pi, int x, int y) const;
+       void draw(PainterInfo & pi, int x, int y) const override;
        ///
-       std::string name() const;
+       docstring name() const override;
 
        ///
-       void maple(MapleStream &) const;
+       void maple(MapleStream &) const override;
        ///
-       void maxima(MaximaStream &) const;
+       void maxima(MaximaStream &) const override;
        ///
-       void mathematica(MathematicaStream &) const;
+       void mathematica(MathematicaStream &) const override;
        ///
-       void mathmlize(MathMLStream &) const;
+       void mathmlize(MathMLStream &) const override;
        ///
-       void octave(OctaveStream &) const;
+       void htmlize(HtmlStream &) const override;
+       ///
+       void octave(OctaveStream &) const override;
+       ///
+       InsetCode lyxCode() const override { return MATH_EXFUNC_CODE; }
 
 private:
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       Inset * clone() const override;
        ///
-       std::string const name_;
+       docstring const name_;
 };
+
+} // namespace lyx
+
 #endif