2001-11-09 08:35:57 +00:00
|
|
|
// -*- C++ -*-
|
2003-08-19 13:00:56 +00:00
|
|
|
/**
|
2006-09-17 09:14:18 +00:00
|
|
|
* \file InsetMathMatrix.h
|
2003-08-19 13:00:56 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
2008-11-14 15:58:50 +00:00
|
|
|
* \author André Pönitz
|
2003-08-19 13:00:56 +00:00
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
*/
|
|
|
|
|
2001-11-09 08:35:57 +00:00
|
|
|
#ifndef MATH_MATRIXINSET_H
|
|
|
|
#define MATH_MATRIXINSET_H
|
|
|
|
|
2006-09-17 09:14:18 +00:00
|
|
|
#include "InsetMathGrid.h"
|
2009-12-16 17:01:09 +00:00
|
|
|
#include "support/strfwd.h"
|
2001-11-09 08:35:57 +00:00
|
|
|
|
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
namespace lyx {
|
|
|
|
|
|
|
|
|
2009-12-16 16:43:26 +00:00
|
|
|
// "shortcut" for DelimInset("(",ArrayInset,")") used by MathExtern
|
2001-11-09 08:35:57 +00:00
|
|
|
|
2006-09-16 18:11:38 +00:00
|
|
|
class InsetMathMatrix : public InsetMathGrid {
|
2002-03-21 17:42:56 +00:00
|
|
|
public:
|
2001-11-09 08:35:57 +00:00
|
|
|
///
|
2017-07-03 17:45:58 +00:00
|
|
|
explicit InsetMathMatrix(InsetMathGrid const &,
|
2009-12-16 17:01:09 +00:00
|
|
|
docstring const & left, docstring const & right);
|
2001-11-09 08:35:57 +00:00
|
|
|
/// identifies MatrixInsets
|
2020-10-01 07:42:11 +00:00
|
|
|
InsetMathMatrix const * asMatrixInset() const override { return this; }
|
2001-11-09 08:35:57 +00:00
|
|
|
|
|
|
|
///
|
2020-12-26 19:04:36 +00:00
|
|
|
void write(TeXMathStream & os) const override;
|
2001-11-09 08:35:57 +00:00
|
|
|
///
|
2020-10-01 07:42:11 +00:00
|
|
|
void normalize(NormalStream &) const override;
|
2001-11-09 08:35:57 +00:00
|
|
|
///
|
2020-10-01 07:42:11 +00:00
|
|
|
void maple(MapleStream &) const override;
|
2001-11-09 08:35:57 +00:00
|
|
|
///
|
2020-10-01 07:42:11 +00:00
|
|
|
void maxima(MaximaStream &) const override;
|
2002-10-28 17:15:19 +00:00
|
|
|
///
|
2020-10-01 07:42:11 +00:00
|
|
|
void mathematica(MathematicaStream &) const override;
|
2006-09-02 01:57:36 +00:00
|
|
|
///
|
2020-12-26 19:02:46 +00:00
|
|
|
void mathmlize(MathMLStream &) const override;
|
2001-11-09 08:35:57 +00:00
|
|
|
///
|
2020-10-01 07:42:11 +00:00
|
|
|
void htmlize(HtmlStream &) const override;
|
2010-03-31 19:17:06 +00:00
|
|
|
///
|
2020-10-01 07:42:11 +00:00
|
|
|
void octave(OctaveStream &) const override;
|
2009-07-16 19:00:24 +00:00
|
|
|
///
|
2020-10-01 07:42:11 +00:00
|
|
|
InsetCode lyxCode() const override { return MATH_MATRIX_CODE; }
|
2016-11-03 22:23:11 +00:00
|
|
|
///
|
2020-10-01 07:42:11 +00:00
|
|
|
bool handlesMulticolumn() const override { return true; }
|
2009-07-16 19:00:24 +00:00
|
|
|
|
2004-11-23 23:04:52 +00:00
|
|
|
private:
|
2020-10-01 07:42:11 +00:00
|
|
|
Inset * clone() const override;
|
2009-12-16 17:01:09 +00:00
|
|
|
///
|
|
|
|
docstring left_;
|
|
|
|
///
|
|
|
|
docstring right_;
|
2001-11-09 08:35:57 +00:00
|
|
|
};
|
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
} // namespace lyx
|
2001-11-09 08:35:57 +00:00
|
|
|
#endif
|