]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetFoot.cpp
Fix bug 3363: mark buffer dirty after middle button paste in plain text and table...
[lyx.git] / src / insets / InsetFoot.cpp
index 59c1de30f07cfd20e462b79f668f8cb01ec2853e..6e31e9bee4e742f3421e27ea1c85839929c0bd4e 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));
 }
 
 
@@ -60,7 +59,7 @@ docstring const InsetFoot::editMessage() const
 
 
 int InsetFoot::latex(Buffer const & buf, odocstream & os,
-                     OutputParams const & runparams_in) const
+                    OutputParams const & runparams_in) const
 {
        OutputParams runparams = runparams_in;
        // footnotes in titling commands like \title have moving arguments
@@ -82,9 +81,9 @@ int InsetFoot::latex(Buffer const & buf, odocstream & os,
 
 
 int InsetFoot::plaintext(Buffer const & buf, odocstream & os,
-                         OutputParams const & runparams) const
+                        OutputParams const & runparams) const
 {
-       os << '[' << _("footnote") << ":\n";
+       os << '[' << buf.B_("footnote") << ":\n";
        InsetText::plaintext(buf, os, runparams);
        os << "\n]";
 
@@ -93,7 +92,7 @@ int InsetFoot::plaintext(Buffer const & buf, odocstream & os,
 
 
 int InsetFoot::docbook(Buffer const & buf, odocstream & os,
-                       OutputParams const & runparams) const
+                      OutputParams const & runparams) const
 {
        os << "<footnote>";
        int const i = InsetText::docbook(buf, os, runparams);