1 /* This file is part of
2 * ======================================================
4 * LyX, The Document Processor
6 * Copyright 1998 The LyX Team.
8 * ======================================================
14 #pragma implementation
17 #include "insetfoot.h"
20 #include "BufferView.h"
22 #include "insets/insettext.h"
23 #include "support/LOstream.h"
27 InsetFoot::InsetFoot()
35 Inset * InsetFoot::clone(Buffer const &, bool same_id) const
37 InsetFoot * result = new InsetFoot;
38 result->inset.init(&inset, same_id);
40 result->collapsed = collapsed;
47 string const InsetFoot::editMessage() const
49 return _("Opened Footnote Inset");
53 int InsetFoot::latex(Buffer const * buf,
54 std::ostream & os, bool fragile, bool fp) const
56 os << "%\n\\footnote{";
58 int const i = inset.latex(buf, os, fragile, fp);
65 bool InsetFoot::insertInsetAllowed(Inset * in) const
67 if ((in->lyxCode() == Inset::FOOT_CODE) ||
68 (in->lyxCode() == Inset::MARGIN_CODE)) {