]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetFoot.cpp
Make listings dialog translatable (mostly strings from InsetListingsParams), fix...
[lyx.git] / src / insets / InsetFoot.cpp
index 59c1de30f07cfd20e462b79f668f8cb01ec2853e..4c0a95999ab78518baece08a196bcd3fd4f76ca4 100644 (file)
 
 #include "InsetFoot.h"
 
+#include "Buffer.h"
 #include "gettext.h"
 // the following are needed just to get the layout of the enclosing
 // paragraph. This seems a bit too much to me (JMarc)
-#include "lyxlayout.h"
-#include "outputparams.h"
-#include "paragraph.h"
+#include "Layout.h"
+#include "OutputParams.h"
+#include "Paragraph.h"
 #include "paragraph_funcs.h"
 
 #include "support/std_ostream.h"
@@ -35,7 +36,6 @@ InsetFoot::InsetFoot(BufferParams const & bp)
        : InsetFootlike(bp)
 {
        setLabel(_("foot"));
-       setInsetName(from_ascii("Foot"));
 }
 
 
@@ -43,13 +43,12 @@ InsetFoot::InsetFoot(InsetFoot const & in)
        : InsetFootlike(in)
 {
        setLabel(_("foot"));
-       setInsetName(from_ascii("Foot"));
 }
 
 
-auto_ptr<InsetBase> InsetFoot::doClone() const
+auto_ptr<Inset> InsetFoot::doClone() const
 {
-       return auto_ptr<InsetBase>(new InsetFoot(*this));
+       return auto_ptr<Inset>(new InsetFoot(*this));
 }
 
 
@@ -84,7 +83,7 @@ int InsetFoot::latex(Buffer const & buf, odocstream & os,
 int InsetFoot::plaintext(Buffer const & buf, odocstream & os,
                          OutputParams const & runparams) const
 {
-       os << '[' << _("footnote") << ":\n";
+       os << '[' << buf.B_("footnote") << ":\n";
        InsetText::plaintext(buf, os, runparams);
        os << "\n]";