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
15 #include "insetfoot.h"
18 #include "BufferView.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"
33 InsetFoot::InsetFoot(BufferParams const & bp)
41 InsetFoot::InsetFoot(InsetFoot const & in, bool same_id)
42 : InsetFootlike(in, same_id)
49 Inset * InsetFoot::clone(Buffer const &, bool same_id) const
51 return new InsetFoot(*const_cast<InsetFoot *>(this), same_id);
55 string const InsetFoot::editMessage() const
57 return _("Opened Footnote Inset");
61 int InsetFoot::latex(Buffer const * buf,
62 ostream & os, bool fragile, bool fp) const
64 if (buf && parOwner()) {
65 LyXLayout_ptr const & layout = parOwner()->layout();
66 fragile |= layout->intitle;
69 os << "%\n\\footnote{";
71 int const i = inset.latex(buf, os, fragile, fp);
78 int InsetFoot::docbook(Buffer const * buf, ostream & os, bool mixcont) const
81 int const i = inset.docbook(buf, os, mixcont);