MathDecorationInset::MathDecorationInset(latexkeys const * key)
: MathNestInset(1), key_(key)
-{}
+{
+// lyxerr << " creating deco " << key->name << std::endl;
+}
-auto_ptr<InsetBase> MathDecorationInset::clone() const
+auto_ptr<InsetBase> MathDecorationInset::doClone() const
{
return auto_ptr<InsetBase>(new MathDecorationInset(*this));
}
void MathDecorationInset::draw(PainterInfo & pi, int x, int y) const
{
- lyxerr << "MathDecorationInset::draw: x: " << x << std::endl;
cell(0).draw(pi, x + 1, y);
if (wide())
mathed_draw_deco(pi, x + 1, y + dy_, cell(0).width(), dh_, key_->name);