}
+bool MathUnknownInset::match(MathInset * p) const
+{
+ MathUnknownInset const * q = p->asUnknownInset();
+ return q && name_ == q->name_;
+}
+
+
void MathUnknownInset::write(WriteStream & os) const
{
os << "\\" << name_ << ' ';
void MathUnknownInset::normalize(NormalStream & os) const
{
- os << "[func " << name_ << ']';
+ os << "[unknown " << name_ << ']';
}
-void MathUnknownInset::metrics(MathMetricsInfo const & mi) const
+void MathUnknownInset::metrics(MathMetricsInfo const & mi) const
{
- mi_ = mi;
- mathed_string_dim(LM_TC_TEX, mi_, name_, ascent_, descent_, width_);
+ whichFont(font_, LM_TC_TEX, mi);
+ mathed_string_dim(font_, name_, ascent_, descent_, width_);
}
void MathUnknownInset::draw(Painter & pain, int x, int y) const
-{
- drawStr(pain, LM_TC_TEX, mi_, x, y, name_);
+{
+ drawStr(pain, font_, x, y, name_);
}