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"
19 #include "insets/insettext.h"
20 #include "support/LOstream.h"
22 // the following are needed just to get the layout of the enclosing
23 // paragraph. This seems a bit too much to me (JMarc)
24 #include "lyxlayout.h"
26 #include "paragraph.h"
32 InsetFoot::InsetFoot(BufferParams const & bp)
40 InsetFoot::InsetFoot(InsetFoot const & in, bool same_id)
41 : InsetFootlike(in, same_id)
48 Inset * InsetFoot::clone(Buffer const &, bool same_id) const
50 return new InsetFoot(*const_cast<InsetFoot *>(this), same_id);
54 string const InsetFoot::editMessage() const
56 return _("Opened Footnote Inset");
60 int InsetFoot::latex(Buffer const * buf, ostream & os, LatexRunParams const & runparams,
61 bool fragile, bool fp) const
63 if (buf && parOwner()) {
64 LyXLayout_ptr const & layout = parOwner()->layout();
65 fragile |= layout->intitle;
68 os << "%\n\\footnote{";
70 int const i = inset.latex(buf, os, runparams, fragile, fp);
77 int InsetFoot::docbook(Buffer const * buf, ostream & os, bool mixcont) const
80 int const i = inset.docbook(buf, os, mixcont);