-#include <config.h>
-
#ifdef __GNUG__
#pragma implementation
#endif
#include "math_sqrtinset.h"
#include "LColor.h"
#include "Painter.h"
-#include "support.h"
#include "support/LOstream.h"
MathSqrtInset::MathSqrtInset()
- : MathInset("sqrt", LM_OT_SQRT, 1)
+ : MathInset(1)
{}
-MathInset * MathSqrtInset::Clone() const
+MathInset * MathSqrtInset::clone() const
{
return new MathSqrtInset(*this);
}
-void MathSqrtInset::Metrics(MathStyles st)
+void MathSqrtInset::Metrics(MathStyles st, int, int)
{
xcell(0).Metrics(st);
size_ = st;
void MathSqrtInset::Write(std::ostream & os, bool fragile) const
{
- os << '\\' << name_ << '{';
+ os << "\\sqrt{";
cell(0).Write(os, fragile);
os << '}';
}