lyx_mirror/src/insets/insetfoot.C
Jürgen Vigna 487f6eb3b4 Added various inset functions for Jean-Marc (see Changelog). Small fix in
cua bind-file.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2228 a592a061-630c-0410-9148-cb99ea01b6c8
2001-07-12 14:35:38 +00:00

63 lines
1.1 KiB
C

/* This file is part of
* ======================================================
*
* LyX, The Document Processor
*
* Copyright 1998 The LyX Team.
*
* ======================================================
*/
#include <config.h>
#ifdef __GNUG__
#pragma implementation
#endif
#include "insetfoot.h"
#include "gettext.h"
#include "lyxfont.h"
#include "BufferView.h"
#include "lyxtext.h"
#include "insets/insettext.h"
#include "support/LOstream.h"
#include "debug.h"
InsetFoot::InsetFoot()
: InsetFootlike()
{
setLabel(_("foot"));
setInsetName("Foot");
}
Inset * InsetFoot::clone(Buffer const &, bool same_id) const
{
InsetFoot * result = new InsetFoot;
result->inset.init(&inset, same_id);
result->collapsed_ = collapsed_;
if (same_id)
result->id_ = id_;
return result;
}
string const InsetFoot::editMessage() const
{
return _("Opened Footnote Inset");
}
int InsetFoot::latex(Buffer const * buf,
std::ostream & os, bool fragile, bool fp) const
{
os << "%\n\\footnote{";
int const i = inset.latex(buf, os, fragile, fp);
os << "%\n}";
return i + 2;
}