* 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::auto_ptr;
-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;
}
-auto_ptr<Inset> InsetMathLim::doClone() const
+Inset * InsetMathLim::clone() const
{
- return auto_ptr<Inset>(new InsetMathLim(*this));
+ return new InsetMathLim(*this);
}
}
-bool InsetMathLim::metrics(MetricsInfo &, Dimension &) const
+void InsetMathLim::metrics(MetricsInfo &, Dimension &) const
{
- lyxerr << "should not happen" << endl;
- return true;
+ 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) << ')';
-}
-
-
-void InsetMathLim::write(WriteStream &) const
+void InsetMathLim::write(TeXMathStream &) const
{
- lyxerr << "should not happen" << endl;
+ LYXERR0("should not happen");
}