Give inset codes to all the math insets, so we get more information when
[lyx.git] / src / mathed / InsetMathMatrix.h
blob11fa18349c0bd9750c61724235f7c1fc06753bd4
1 // -*- C++ -*-
2 /**
3 * \file InsetMathMatrix.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author André Pönitz
9 * Full author contact details are available in file CREDITS.
12 #ifndef MATH_MATRIXINSET_H
13 #define MATH_MATRIXINSET_H
15 #include "InsetMathGrid.h"
18 namespace lyx {
21 // "shortcut" for DelimInset("(",ArrayInset,")")
23 class InsetMathMatrix : public InsetMathGrid {
24 public:
25 ///
26 explicit InsetMathMatrix(InsetMathGrid const &);
27 ///
28 explicit InsetMathMatrix(docstring const & str);
29 /// identifies MatrixInsets
30 InsetMathMatrix const * asMatrixInset() const { return this; }
32 ///
33 void write(WriteStream & os) const;
34 ///
35 void normalize(NormalStream &) const;
36 ///
37 void maple(MapleStream &) const;
38 ///
39 void maxima(MaximaStream &) const;
40 ///
41 void mathematica(MathematicaStream &) const;
42 ///
43 void mathmlize(MathStream &) const;
44 ///
45 void octave(OctaveStream &) const;
46 ///
47 InsetCode lyxCode() const { return MATH_MATRIX_CODE; }
49 private:
50 virtual Inset * clone() const;
55 } // namespace lyx
56 #endif