MgObject* MgLayer::clone() const { MgObject* p = new MgLayer(doc(), -1); p->copy(*this); return p; }
MgObject* MgShapeDoc::clone() const { MgObject* p = new MgShapeDoc(); p->copy(*this); return p; }