mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
5f2e3c4c43
Kayvan's footnote patch Added a "Buffer const *" parameter to InsetButton::getScreenLabel and all daughter classes. Labels can now be tuned to suit, although non are yet. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2375 a592a061-630c-0410-9148-cb99ea01b6c8
63 lines
1010 B
C
63 lines
1010 B
C
#include <config.h>
|
|
|
|
#ifdef __GNUG__
|
|
#pragma implementation
|
|
#endif
|
|
|
|
#include "insetindex.h"
|
|
#include "BufferView.h"
|
|
#include "LyXView.h"
|
|
#include "frontends/Dialogs.h"
|
|
#include "LaTeXFeatures.h"
|
|
#include "gettext.h"
|
|
|
|
InsetIndex::InsetIndex(InsetCommandParams const & p, bool)
|
|
: InsetCommand(p)
|
|
{}
|
|
|
|
|
|
string const InsetIndex::getScreenLabel(Buffer const *) const
|
|
{
|
|
return _("Idx");
|
|
}
|
|
|
|
|
|
void InsetIndex::edit(BufferView * bv, int, int, unsigned int)
|
|
{
|
|
bv->owner()->getDialogs()->showIndex( this );
|
|
}
|
|
|
|
|
|
void InsetIndex::edit(BufferView * bv, bool)
|
|
{
|
|
edit(bv, 0, 0, 0);
|
|
}
|
|
|
|
|
|
Inset::Code InsetIndex::lyxCode() const
|
|
{
|
|
return Inset::INDEX_CODE;
|
|
}
|
|
|
|
|
|
InsetPrintIndex::InsetPrintIndex(InsetCommandParams const & p, bool)
|
|
: InsetCommand(p)
|
|
{}
|
|
|
|
string const InsetPrintIndex::getScreenLabel(Buffer const *) const
|
|
{
|
|
return _("Index");
|
|
}
|
|
|
|
|
|
void InsetPrintIndex::validate(LaTeXFeatures & features) const
|
|
{
|
|
features.makeidx = true;
|
|
}
|
|
|
|
|
|
Inset::Code InsetPrintIndex::lyxCode() const
|
|
{
|
|
return Inset::INDEX_PRINT_CODE;
|
|
}
|