#include "Buffer.h"
#include "gettext.h"
-#include "Paragraph.h"
#include "OutputParams.h"
#include "support/std_ostream.h"
namespace lyx {
-using std::string;
-using std::auto_ptr;
-using std::ostream;
-
InsetMarginal::InsetMarginal(BufferParams const & bp)
: InsetFootlike(bp)
{
- setLabel(_("margin"));
+ setLayout(bp);
}
InsetMarginal::InsetMarginal(InsetMarginal const & in)
: InsetFootlike(in)
-{
- setLabel(_("margin"));
-}
+{}
-auto_ptr<Inset> InsetMarginal::doClone() const
+Inset * InsetMarginal::clone() const
{
- return auto_ptr<Inset>(new InsetMarginal(*this));
+ return new InsetMarginal(*this);
}