]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_unknowninset.C
small up/down tweaking
[lyx.git] / src / mathed / math_unknowninset.C
index ab33efbb3492c4126aca16940b196997120e2958..c54562514ae2df051c973fe884792d34892a3c9a 100644 (file)
@@ -21,31 +21,25 @@ MathInset * MathUnknownInset::clone() const
 }
 
 
-string const & MathUnknownInset::name() const
+string MathUnknownInset::name() const
 {
        return name_;
 }
 
 
-string & MathUnknownInset::name()
+void MathUnknownInset::setName(string const & name)
 {
-       return name_;
+       name_ = name;
 }
 
 
-bool MathUnknownInset::match(MathInset * p) const
+bool MathUnknownInset::match(MathAtom const & at) const
 {
-       MathUnknownInset const * q = p->asUnknownInset();
+       MathUnknownInset const * q = at->asUnknownInset();
        return q && name_ == q->name_;
 }
 
 
-void MathUnknownInset::write(WriteStream & os) const
-{
-       os << "\\" << name_ << ' ';
-}
-
-
 void MathUnknownInset::normalize(NormalStream & os) const
 {
        os << "[unknown " << name_ << ']';
@@ -54,7 +48,7 @@ void MathUnknownInset::normalize(NormalStream & os) const
 
 void MathUnknownInset::metrics(MathMetricsInfo & mi) const
 {
-       mathed_string_dim(mi.base.font, name_, ascent_, descent_, width_);
+       mathed_string_dim(mi.base.font, name_, dim_);
 }