2001-11-09 08:35:57 +00:00
|
|
|
|
// -*- C++ -*-
|
2003-08-19 13:00:56 +00:00
|
|
|
|
/**
|
|
|
|
|
* \file math_matrixinset.h
|
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
|
*
|
|
|
|
|
* \author Andr<EFBFBD> P<EFBFBD>nitz
|
|
|
|
|
*
|
|
|
|
|
* 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
|
|
|
|
|
|
2002-04-24 17:07:42 +00:00
|
|
|
|
#include "math_gridinset.h"
|
2001-11-09 08:35:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// "shortcut" for DelimInset("(",ArrayInset,")")
|
|
|
|
|
|
2002-04-24 17:07:42 +00:00
|
|
|
|
class MathMatrixInset : public MathGridInset {
|
2002-03-21 17:42:56 +00:00
|
|
|
|
public:
|
2001-11-09 08:35:57 +00:00
|
|
|
|
///
|
2004-11-23 23:04:52 +00:00
|
|
|
|
explicit MathMatrixInset(MathGridInset const &);
|
2001-11-09 08:35:57 +00:00
|
|
|
|
///
|
2004-11-23 23:04:52 +00:00
|
|
|
|
explicit MathMatrixInset(std::string const & str);
|
2001-11-09 08:35:57 +00:00
|
|
|
|
/// identifies MatrixInsets
|
|
|
|
|
MathMatrixInset const * asMatrixInset() const { return this; }
|
|
|
|
|
|
|
|
|
|
///
|
|
|
|
|
void write(WriteStream & os) const;
|
|
|
|
|
///
|
|
|
|
|
void normalize(NormalStream &) const;
|
|
|
|
|
///
|
2003-02-14 14:30:09 +00:00
|
|
|
|
void maple(MapleStream &) const;
|
2001-11-09 08:35:57 +00:00
|
|
|
|
///
|
2003-02-14 14:30:09 +00:00
|
|
|
|
void maxima(MaximaStream &) const;
|
2002-10-28 17:15:19 +00:00
|
|
|
|
///
|
2001-11-09 08:35:57 +00:00
|
|
|
|
void mathmlize(MathMLStream &) const;
|
|
|
|
|
///
|
2003-02-14 14:30:09 +00:00
|
|
|
|
void octave(OctaveStream &) const;
|
2004-11-23 23:04:52 +00:00
|
|
|
|
private:
|
|
|
|
|
virtual std::auto_ptr<InsetBase> doClone() const;
|
2001-11-09 08:35:57 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|