3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Alejandro Aguilar Sierra
9 * Full author contact details are available in file CREDITS.
14 #include "math_inset.h"
15 #include "math_data.h"
16 #include "math_mathmlstream.h"
24 MathArray & MathInset::cell(idx_type)
26 static MathArray dummyCell;
27 lyxerr << "I don't have a cell 1" << endl;
32 MathArray const & MathInset::cell(idx_type) const
34 static MathArray dummyCell;
35 lyxerr << "I don't have a cell 2" << endl;
40 void MathInset::dump() const
42 lyxerr << "---------------------------------------------" << endl;
43 WriteStream wi(lyxerr, false, true);
45 lyxerr << "\n---------------------------------------------" << endl;
49 void MathInset::metricsT(TextMetricsInfo const &, Dimension &) const
52 lyxerr << "MathInset::metricsT(Text) called directly!" << endl;
57 void MathInset::drawT(TextPainter &, int, int) const
60 lyxerr << "MathInset::drawT(Text) called directly!" << endl;
66 void MathInset::write(WriteStream & os) const
68 os << '\\' << name().c_str();
69 os.pendingSpace(true);
73 void MathInset::normalize(NormalStream & os) const
75 os << '[' << name().c_str() << "] ";
79 void MathInset::octave(OctaveStream & os) const
81 NormalStream ns(os.os());
86 void MathInset::maple(MapleStream & os) const
88 NormalStream ns(os.os());
93 void MathInset::maxima(MaximaStream & os) const
95 MapleStream ns(os.os());
100 void MathInset::mathematica(MathematicaStream & os) const
102 NormalStream ns(os.os());
107 void MathInset::mathmlize(MathMLStream & os) const
109 NormalStream ns(os.os());
114 string const & MathInset::getType() const
116 static string const t("none");
121 string MathInset::name() const
127 ostream & operator<<(ostream & os, MathAtom const & at)
129 WriteStream wi(os, false, false);