MathSqrtInset::MathSqrtInset()
- : MathInset(1)
+ : MathNestInset(1)
{}
}
-void MathSqrtInset::metrics(MathStyles st)
+void MathSqrtInset::metrics(MathMetricsInfo const & st) const
{
xcell(0).metrics(st);
size_ = st;
}
-void MathSqrtInset::draw(Painter & pain, int x, int y)
+void MathSqrtInset::draw(Painter & pain, int x, int y) const
{
xo(x);
yo(y);
}
-void MathSqrtInset::write(std::ostream & os, bool fragile) const
+void MathSqrtInset::write(MathWriteInfo & os) const
{
- os << "\\sqrt{";
- cell(0).write(os, fragile);
- os << '}';
+ os << "\\sqrt{" << cell(0) << '}';
}