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 #include "latexrunparams.h"
18 // the following are needed just to get the layout of the enclosing
19 // paragraph. This seems a bit too much to me (JMarc)
20 #include "lyxlayout.h"
21 #include "paragraph.h"
22 #include "paragraph_funcs.h"
24 #include "support/std_ostream.h"
30 InsetFoot::InsetFoot(BufferParams const & bp)
38 InsetFoot::InsetFoot(InsetFoot const & in)
46 auto_ptr<InsetBase> InsetFoot::clone() const
48 return auto_ptr<InsetBase>(new InsetFoot(*this));
52 string const InsetFoot::editMessage() const
54 return _("Opened Footnote Inset");
58 int InsetFoot::latex(Buffer const & buf, ostream & os,
59 LatexRunParams const & runparams_in) const
61 LatexRunParams runparams = runparams_in;
62 runparams.moving_arg |= ownerPar(buf, this).layout()->intitle;
64 os << "%\n\\footnote{";
66 int const i = inset.latex(buf, os, runparams);
73 int InsetFoot::docbook(Buffer const & buf, ostream & os, bool mixcont) const
76 int const i = inset.docbook(buf, os, mixcont);