* 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.
*/
#define MATH_MATRIXINSET_H
#include "InsetMathGrid.h"
+#include "support/strfwd.h"
-// "shortcut" for DelimInset("(",ArrayInset,")")
+namespace lyx {
+
+
+// "shortcut" for DelimInset("(",ArrayInset,")") used by MathExtern
class InsetMathMatrix : public InsetMathGrid {
public:
///
- explicit InsetMathMatrix(InsetMathGrid const &);
- ///
- explicit InsetMathMatrix(std::string const & str);
+ explicit InsetMathMatrix(InsetMathGrid const &,
+ docstring const & left, docstring const & right);
/// identifies MatrixInsets
InsetMathMatrix const * asMatrixInset() const { return this; }
///
void mathematica(MathematicaStream &) const;
///
- void mathmlize(MathMLStream &) const;
+ void mathmlize(MathStream &) const;
+ ///
+ void htmlize(HtmlStream &) const;
///
void octave(OctaveStream &) const;
+ ///
+ InsetCode lyxCode() const { return MATH_MATRIX_CODE; }
+ ///
+ bool handlesMulticolumn() const { return true; } //override
+
private:
- virtual std::auto_ptr<InsetBase> doClone() const;
+ virtual Inset * clone() const;
+ ///
+ docstring left_;
+ ///
+ docstring right_;
};
+
+
+} // namespace lyx
#endif