X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathLim.cpp;h=a5eae28bb71f4eae1e909c3c7fecd2c452624b46;hb=48b09463dd23e64fab605553a91542198e8361e4;hp=47754bf2d4e5d13dd71f9babe970773cb29193a8;hpb=237c132c1e6fc720b87f2fea6deb18a8395cbe0a;p=lyx.git
diff --git a/src/mathed/InsetMathLim.cpp b/src/mathed/InsetMathLim.cpp
index 47754bf2d4..a5eae28bb7 100644
--- a/src/mathed/InsetMathLim.cpp
+++ b/src/mathed/InsetMathLim.cpp
@@ -3,7 +3,7 @@
* 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.
*/
@@ -13,17 +13,15 @@
#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;
@@ -45,13 +43,13 @@ void InsetMathLim::normalize(NormalStream & os) const
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");
}
@@ -75,13 +73,17 @@ void InsetMathLim::mathematica(MathematicaStream & os) const
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 << ""
+ << "" << "lim" << ""
+ << "" << cell(1) << "→" << cell(2) << ""
+ << "(" << cell(0) << ")" ;
}
void InsetMathLim::write(WriteStream &) const
{
- lyxerr << "should not happen" << endl;
+ LYXERR0("should not happen");
}