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"
26 MathArray & MathInset::cell(idx_type)
28 lyxerr << "I don't have a cell 1" << endl;
33 MathArray const & MathInset::cell(idx_type) const
35 lyxerr << "I don't have a cell 2" << endl;
40 void MathInset::substitute(MathMacro const &)
45 void MathInset::dump() const
47 lyxerr << "---------------------------------------------" << endl;
48 WriteStream wi(lyxerr, false, true);
50 lyxerr << "\n---------------------------------------------" << endl;
54 void MathInset::metricsT(TextMetricsInfo const &, Dimension &) const
57 lyxerr << "MathInset::metricsT(Text) called directly!" << endl;
62 void MathInset::drawT(TextPainter &, int, int) const
65 lyxerr << "MathInset::drawT(Text) called directly!" << endl;
71 void MathInset::write(WriteStream & os) const
73 os << '\\' << name().c_str();
74 os.pendingSpace(true);
78 void MathInset::normalize(NormalStream & os) const
80 os << '[' << name().c_str() << "] ";
84 void MathInset::octave(OctaveStream & os) const
86 NormalStream ns(os.os());
91 void MathInset::maple(MapleStream & os) const
93 NormalStream ns(os.os());
98 void MathInset::maxima(MaximaStream & os) const
100 MapleStream ns(os.os());
105 void MathInset::mathematica(MathematicaStream & os) const
107 NormalStream ns(os.os());
112 void MathInset::mathmlize(MathMLStream & os) const
114 NormalStream ns(os.os());
119 string const & MathInset::getType() const
121 static string const t("none");
126 string MathInset::name() const
132 ostream & operator<<(ostream & os, MathAtom const & at)
134 WriteStream wi(os, false, false);