]> 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 6379cc0e9aea3f15e84fa19145d4ac69df4a1499..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 "Layout.h"
 #include "OutputParams.h"
 #include "Paragraph.h"
 #include "paragraph_funcs.h"
@@ -45,9 +46,9 @@ InsetFoot::InsetFoot(InsetFoot const & in)
 }
 
 
-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));
 }
 
 
@@ -82,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]";