]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathLim.cpp
Add comment.
[lyx.git] / src / mathed / InsetMathLim.cpp
index 89d580954e75b02ae66c925035b74d0fe22c1e89..a5eae28bb71f4eae1e909c3c7fecd2c452624b46 100644 (file)
@@ -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.
  */
 #include "InsetMathLim.h"
 #include "MathData.h"
 #include "MathStream.h"
-#include "debug.h"
+
+#include "support/debug.h"
 
 
 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;
@@ -72,7 +73,11 @@ 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 << "<munder>"
+          << "<mo form='prefix'>" << "lim" << "</mo>"
+          << "<mrow>" << cell(1) << "<mo>&rarr;</mo>" << cell(2) << "</mrow></munder>"
+          << "<mo>(</mo>" << cell(0) << "<mo>)</mo>" ; 
 }