]> 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 7761980d936f15cfc3df09baf59b5548b7395679..0193f5b33b84c59b12ce85fabfe7851bd8f9f817 100644 (file)
@@ -15,7 +15,6 @@
 
 #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);
 }