mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 05:33:33 +00:00
45a03f4f67
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1019 a592a061-630c-0410-9148-cb99ea01b6c8
50 lines
798 B
C
50 lines
798 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"
|
|
|
|
InsetIndex::InsetIndex(InsetCommandParams const & p)
|
|
: InsetCommand(p)
|
|
{}
|
|
|
|
|
|
string const InsetIndex::getScreenLabel() const
|
|
{
|
|
return _("Idx");
|
|
}
|
|
|
|
|
|
void InsetIndex::Edit(BufferView * bv, int, int, unsigned int)
|
|
{
|
|
bv->owner()->getDialogs()->showIndex( this );
|
|
}
|
|
|
|
|
|
InsetPrintIndex::InsetPrintIndex(InsetCommandParams const & p)
|
|
: InsetCommand(p)
|
|
{}
|
|
|
|
string const InsetPrintIndex::getScreenLabel() const
|
|
{
|
|
return _("Index");
|
|
}
|
|
|
|
|
|
void InsetPrintIndex::Validate(LaTeXFeatures & features) const
|
|
{
|
|
features.makeidx = true;
|
|
}
|
|
|
|
|
|
Inset::Code InsetPrintIndex::LyxCode() const
|
|
{
|
|
return Inset::INDEX_CODE;
|
|
}
|