-#include "math_funcliminset.h"
-#include "mathed/math_parser.h"
-#include "mathed/support.h"
-#include "support/LOstream.h"
+#include <config.h>
+#include "math_funcliminset.h"
+#include "math_mathmlstream.h"
+#include "math_streamstr.h"
+#include "math_support.h"
-using std::ostream;
-MathFuncLimInset::MathFuncLimInset(const latexkeys * l)
- : sym_(l)
+MathFuncLimInset::MathFuncLimInset(string const & name)
+ : name_(name)
{}
}
-void MathFuncLimInset::write(MathWriteInfo & os) const
+void MathFuncLimInset::write(WriteStream & os) const
{
- os << '\\' << sym_->name << ' ';
+ os << '\\' << name_ << ' ';
}
-void MathFuncLimInset::writeNormal(ostream & os) const
+void MathFuncLimInset::normalize(NormalStream & os) const
{
- os << "[" << sym_->name << "] ";
+ os << "[funclim " << name_ << ']';
}
void MathFuncLimInset::metrics(MathMetricsInfo const & mi) const
{
mi_ = mi;
- mathed_string_dim(LM_TC_TEXTRM, mi_, sym_->name, ascent_, descent_, width_);
+ mathed_string_dim(LM_TC_TEXTRM, mi_, name_, ascent_, descent_, width_);
}
void MathFuncLimInset::draw(Painter & pain, int x, int y) const
{
- xo(x);
- yo(y);
- drawStr(pain, LM_TC_TEXTRM, mi_, x, y, sym_->name);
+ drawStr(pain, LM_TC_TEXTRM, mi_, x, y, name_);
}