lyx_mirror/src/insets/insetindex.C

50 lines
786 B
C++
Raw Normal View History

#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 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 InsetPrintIndex::getScreenLabel() const
{
return _("Index");
}
void InsetPrintIndex::Validate(LaTeXFeatures & features) const
{
features.makeidx = true;
}
Inset::Code InsetPrintIndex::LyxCode() const
{
return Inset::INDEX_CODE;
}