#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::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
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]";
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);