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"
30 InsetFoot::InsetFoot()
38 Inset * InsetFoot::Clone() const
40 InsetFoot * result = new InsetFoot;
41 result->inset->init(inset);
43 result->collapsed = collapsed;
48 string const InsetFoot::EditMessage() const
50 return _("Opened Footnote Inset");
54 int InsetFoot::Latex(Buffer const * buf,
55 ostream & os, bool fragile, bool fp) const
57 os << "\\footnote{%\n";
59 int i = inset->Latex(buf, os, fragile, fp);
66 bool InsetFoot::InsertInsetAllowed(Inset * in) const
68 if ((in->LyxCode() == Inset::FOOT_CODE) ||
69 (in->LyxCode() == Inset::MARGIN_CODE)) {