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"
29 InsetFoot::InsetFoot()
37 Inset * InsetFoot::Clone(Buffer const &) const
39 InsetFoot * result = new InsetFoot;
40 result->inset->init(inset);
42 result->collapsed = collapsed;
47 string const InsetFoot::EditMessage() const
49 return _("Opened Footnote Inset");
53 int InsetFoot::Latex(Buffer const * buf,
54 ostream & os, bool fragile, bool fp) const
56 os << "\\footnote{%\n";
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)) {