7 #include "insetindex.h"
8 #include "BufferView.h"
10 #include "frontends/Dialogs.h"
11 #include "LaTeXFeatures.h"
14 InsetIndex::InsetIndex(InsetCommandParams const & p, bool)
19 string const InsetIndex::getScreenLabel(Buffer const *) const
25 void InsetIndex::edit(BufferView * bv, int, int, unsigned int)
27 bv->owner()->getDialogs()->showIndex( this );
31 void InsetIndex::edit(BufferView * bv, bool)
37 int InsetIndex::docbook(Buffer const *, ostream & os) const
39 os << "<indexterm><primary>" << getContents() << "</primary></indexterm>";
44 Inset::Code InsetIndex::lyxCode() const
46 return Inset::INDEX_CODE;
50 InsetPrintIndex::InsetPrintIndex(InsetCommandParams const & p, bool)
54 string const InsetPrintIndex::getScreenLabel(Buffer const *) const
60 void InsetPrintIndex::validate(LaTeXFeatures & features) const
62 features.makeidx = true;
66 Inset::Code InsetPrintIndex::lyxCode() const
68 return Inset::INDEX_PRINT_CODE;