+#include <config.h>
+
#include "math_funcliminset.h"
#include "math_mathmlstream.h"
+#include "math_streamstr.h"
#include "math_support.h"
bool MathFuncLimInset::isScriptable() const
{
- return mi_.style == LM_ST_DISPLAY;
+ return scriptable_;
}
void MathFuncLimInset::write(WriteStream & os) const
{
- os << '\\' << name_.c_str() << ' ';
+ os << '\\' << name_ << ' ';
}
void MathFuncLimInset::normalize(NormalStream & os) const
{
- os << "[funclim " << name_.c_str() << ']';
+ os << "[funclim " << name_ << ']';
}
-void MathFuncLimInset::metrics(MathMetricsInfo const & mi) const
+void MathFuncLimInset::metrics(MathMetricsInfo & mi) const
{
- mi_ = mi;
- mathed_string_dim(LM_TC_TEXTRM, mi_, name_, ascent_, descent_, width_);
+ scriptable_ = (mi.base.style == LM_ST_DISPLAY);
+ mathed_string_dim(mi.base.font, name_, ascent_, descent_, width_);
}
-void MathFuncLimInset::draw(Painter & pain, int x, int y) const
-{
- drawStr(pain, LM_TC_TEXTRM, mi_, x, y, name_);
+void MathFuncLimInset::draw(MathPainterInfo & pi, int x, int y) const
+{
+ drawStrBlack(pi, x, y, name_);
}