]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_matrixinset.h
some (yet unfinished) up/down work
[lyx.git] / src / mathed / math_matrixinset.h
index f4f2a0aceb83c1d32c4e5dcd7d881e6bee85338e..43b58cba337379100cc16252e1d69b8fbb0246e9 100644 (file)
@@ -1,25 +1,28 @@
 // -*- C++ -*-
+/**
+ * \file math_matrixinset.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author André Pönitz
+ *
+ * Full author contact details are available in file CREDITS.
+ */
+
 #ifndef MATH_MATRIXINSET_H
 #define MATH_MATRIXINSET_H
 
-#include "math_arrayinset.h"
+#include "math_gridinset.h"
 
-#ifdef __GNUG__
-#pragma interface
-#endif
 
 // "shortcut" for DelimInset("(",ArrayInset,")")
 
-class MathMatrixInset : public MathArrayInset {
-public: 
-       ///
-       MathMatrixInset(MathArrayInset const &);
+class MathMatrixInset : public MathGridInset {
+public:
        ///
-       MathMatrixInset(string const & str);
+       explicit MathMatrixInset(MathGridInset const &);
        ///
-       MathInset * clone() const;
-       ///
-       void metrics(MathMetricsInfo const &) const {}
+       explicit MathMatrixInset(std::string const & str);
        /// identifies MatrixInsets
        MathMatrixInset const * asMatrixInset() const { return this; }
 
@@ -28,11 +31,15 @@ public:
        ///
        void normalize(NormalStream &) const;
        ///
-       void maplize(MapleStream &) const;
+       void maple(MapleStream &) const;
+       ///
+       void maxima(MaximaStream &) const;
        ///
        void mathmlize(MathMLStream &) const;
        ///
-       void octavize(OctaveStream &) const;
+       void octave(OctaveStream &) const;
+private:
+       virtual std::auto_ptr<InsetBase> doClone() const;
 };
 
 #endif