]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetMarginal.cpp
Remove color dependency of framed note, fix bug 3598
[lyx.git] / src / insets / InsetMarginal.cpp
index 87492b4de767ec3f61915e35daa0b5c70e7986b9..52a4d83defddefe25fb260ecd90418eef07a2dd1 100644 (file)
 
 #include "InsetMarginal.h"
 
+#include "Buffer.h"
 #include "gettext.h"
-#include "paragraph.h"
-#include "outputparams.h"
+#include "Paragraph.h"
+#include "OutputParams.h"
 
 #include "support/std_ostream.h"
 
@@ -31,7 +32,6 @@ InsetMarginal::InsetMarginal(BufferParams const & bp)
        : InsetFootlike(bp)
 {
        setLabel(_("margin"));
-       setInsetName(from_ascii("Marginal"));
 }
 
 
@@ -39,13 +39,12 @@ InsetMarginal::InsetMarginal(InsetMarginal const & in)
        : InsetFootlike(in)
 {
        setLabel(_("margin"));
-       setInsetName(from_ascii("Marginal"));
 }
 
 
-auto_ptr<InsetBase> InsetMarginal::doClone() const
+auto_ptr<Inset> InsetMarginal::doClone() const
 {
-       return auto_ptr<InsetBase>(new InsetMarginal(*this));
+       return auto_ptr<Inset>(new InsetMarginal(*this));
 }
 
 
@@ -68,7 +67,7 @@ int InsetMarginal::latex(Buffer const & buf, odocstream & os,
 int InsetMarginal::plaintext(Buffer const & buf, odocstream & os,
                              OutputParams const & runparams) const
 {
-       os << '[' << _("margin") << ":\n";
+       os << '[' << buf.B_("margin") << ":\n";
        InsetText::plaintext(buf, os, runparams);
        os << "\n]";