mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
487f6eb3b4
cua bind-file. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2228 a592a061-630c-0410-9148-cb99ea01b6c8
63 lines
1.1 KiB
C
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;
|
|
}
|