]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathMatrix.h
Fix unwanted curly braces in formula (bug #8679)
[lyx.git] / src / mathed / InsetMathMatrix.h
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.
6  *
7  * \author André Pönitz
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef MATH_MATRIXINSET_H
13 #define MATH_MATRIXINSET_H
14
15 #include "InsetMathGrid.h"
16 #include "support/strfwd.h"
17
18
19 namespace lyx {
20
21
22 // "shortcut" for DelimInset("(",ArrayInset,")") used by MathExtern
23
24 class InsetMathMatrix : public InsetMathGrid {
25 public:
26         ///
27         explicit InsetMathMatrix(InsetMathGrid const &, 
28                         docstring const & left, docstring const & right);
29         /// identifies MatrixInsets
30         InsetMathMatrix const * asMatrixInset() const { return this; }
31
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 htmlize(HtmlStream &) const;
46         ///
47         void octave(OctaveStream &) const;
48         ///
49         InsetCode lyxCode() const { return MATH_MATRIX_CODE; }
50
51 private:
52         virtual Inset * clone() const;
53         ///
54         docstring left_;
55         ///
56         docstring right_;
57 };
58
59
60
61 } // namespace lyx
62 #endif