#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"
: InsetFootlike(bp)
{
setLabel(_("foot"));
- setInsetName(from_ascii("Foot"));
}
: 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));
}
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]";