]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetMarginal.cpp
pimpl not needed here
[lyx.git] / src / insets / InsetMarginal.cpp
index 52a4d83defddefe25fb260ecd90418eef07a2dd1..3a4ed9407dfff51bd27a5dd4bbdad9589550752d 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"));
-}
+{}
 
 
 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);
 }
 
 
@@ -55,7 +46,7 @@ docstring const InsetMarginal::editMessage() const
 
 
 int InsetMarginal::latex(Buffer const & buf, odocstream & os,
-                         OutputParams const & runparams) const
+                        OutputParams const & runparams) const
 {
        os << "%\n\\marginpar{";
        int const i = InsetText::latex(buf, os, runparams);
@@ -65,7 +56,7 @@ int InsetMarginal::latex(Buffer const & buf, odocstream & os,
 
 
 int InsetMarginal::plaintext(Buffer const & buf, odocstream & os,
-                             OutputParams const & runparams) const
+                            OutputParams const & runparams) const
 {
        os << '[' << buf.B_("margin") << ":\n";
        InsetText::plaintext(buf, os, runparams);
@@ -76,7 +67,7 @@ int InsetMarginal::plaintext(Buffer const & buf, odocstream & os,
 
 
 int InsetMarginal::docbook(Buffer const & buf, odocstream & os,
-                           OutputParams const & runparams) const
+                          OutputParams const & runparams) const
 {
        os << "<note role=\"margin\">";
        int const i = InsetText::docbook(buf, os, runparams);