]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetMarginal.cpp
* src/paragraph_funcs.cpp (breakParagraph): change parameter 'flag' to
[lyx.git] / src / insets / InsetMarginal.cpp
index be61f468eab1363a20d6d4bdf129e928166c8044..0193f5b33b84c59b12ce85fabfe7851bd8f9f817 100644 (file)
 
 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);
 }