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 "BufferView.h"
18 #include "latexrunparams.h"
20 #include "insets/insettext.h"
21 #include "support/LOstream.h"
23 // the following are needed just to get the layout of the enclosing
24 // paragraph. This seems a bit too much to me (JMarc)
25 #include "lyxlayout.h"
27 #include "paragraph.h"
34 InsetFoot::InsetFoot(BufferParams const & bp)
42 InsetFoot::InsetFoot(InsetFoot const & in)
50 auto_ptr<InsetBase> InsetFoot::clone() const
52 return auto_ptr<InsetBase>(new InsetFoot(*this));
56 string const InsetFoot::editMessage() const
58 return _("Opened Footnote Inset");
62 int InsetFoot::latex(Buffer const * buf, ostream & os,
63 LatexRunParams const & runparams_in) const
65 LatexRunParams runparams = runparams_in;
66 if (buf && parOwner()) {
67 LyXLayout_ptr const & layout = parOwner()->layout();
68 runparams.moving_arg |= layout->intitle;
71 os << "%\n\\footnote{";
73 int const i = inset.latex(buf, os, runparams);
80 int InsetFoot::docbook(Buffer const * buf, ostream & os, bool mixcont) const
83 int const i = inset.docbook(buf, os, mixcont);