3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
7 * \author Lars Gullik Bjønnes
9 * Full author contact details are available in file CREDITS.
14 #include "insetfoot.h"
17 // the following are needed just to get the layout of the enclosing
18 // paragraph. This seems a bit too much to me (JMarc)
19 #include "lyxlayout.h"
20 #include "outputparams.h"
21 #include "paragraph.h"
22 #include "paragraph_funcs.h"
24 #include "support/std_ostream.h"
33 InsetFoot::InsetFoot(BufferParams const & bp)
37 setLabel(lyx::to_utf8(_("foot")));
42 InsetFoot::InsetFoot(InsetFoot const & in)
46 setLabel(lyx::to_utf8(_("foot")));
51 auto_ptr<InsetBase> InsetFoot::doClone() const
53 return auto_ptr<InsetBase>(new InsetFoot(*this));
57 docstring const InsetFoot::editMessage() const
59 return _("Opened Footnote Inset");
63 int InsetFoot::latex(Buffer const & buf, ostream & os,
64 OutputParams const & runparams_in) const
66 OutputParams runparams = runparams_in;
67 // footnotes in titling commands like \title have moving arguments
68 runparams.moving_arg |= runparams_in.intitle;
70 // in titling commands, \thanks should be used instead of \footnote.
71 // some classes (e.g. memoir) do not understand \footnote.
72 if (runparams_in.intitle)
75 os << "%\n\\footnote{";
77 int const i = InsetText::latex(buf, os, runparams);
84 int InsetFoot::docbook(Buffer const & buf, ostream & os,
85 OutputParams const & runparams) const
88 int const i = InsetText::docbook(buf, os, runparams);