* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
- * \author André Pönitz
+ * \author André Pönitz
*
* Full author contact details are available in file CREDITS.
*/
#include "InsetMathLim.h"
#include "MathData.h"
#include "MathStream.h"
-#include "debug.h"
+#include "support/debug.h"
-namespace lyx {
-
-using std::endl;
+namespace lyx {
-InsetMathLim::InsetMathLim
- (MathData const & f, MathData const & x, MathData const & x0)
- : InsetMathNest(3)
+InsetMathLim::InsetMathLim(Buffer * buf, MathData const & f, MathData const & x,
+ MathData const & x0)
+ : InsetMathNest(buf, 3)
{
cell(0) = f;
cell(1) = x;
void InsetMathLim::metrics(MetricsInfo &, Dimension &) const
{
- lyxerr << "should not happen" << endl;
+ LYXERR0("should not happen");
}
void InsetMathLim::draw(PainterInfo &, int, int) const
{
- lyxerr << "should not happen" << endl;
+ LYXERR0("should not happen");
}
void InsetMathLim::mathmlize(MathStream & os) const
{
- os << "lim(" << cell(0) << ',' << cell(1) << ',' << cell(2) << ')';
+ // FIXME XHTML We need a form of MTag that takes attributes.
+ os << "<munder>"
+ << "<mo form='prefix'>" << "lim" << "</mo>"
+ << "<mrow>" << cell(1) << "<mo>→</mo>" << cell(2) << "</mrow></munder>"
+ << "<mo>(</mo>" << cell(0) << "<mo>)</mo>" ;
}
void InsetMathLim::write(WriteStream &) const
{
- lyxerr << "should not happen" << endl;
+ LYXERR0("should not happen");
}