7 #include "insetindex.h"
8 #include "BufferView.h"
9 #include "frontends/LyXView.h"
10 #include "frontends/Dialogs.h"
11 #include "LaTeXFeatures.h"
13 #include "support/LOstream.h"
17 InsetIndex::InsetIndex(InsetCommandParams const & p, bool)
22 string const InsetIndex::getScreenLabel(Buffer const *) const
28 void InsetIndex::edit(BufferView * bv, int, int, mouse_button::state)
30 bv->owner()->getDialogs()->showIndex(this);
34 void InsetIndex::edit(BufferView * bv, bool)
36 edit(bv, 0, 0, mouse_button::none);
40 int InsetIndex::docbook(Buffer const *, ostream & os) const
42 os << "<indexterm><primary>" << getContents()
43 << "</primary></indexterm>";
48 Inset::Code InsetIndex::lyxCode() const
50 return Inset::INDEX_CODE;
54 InsetPrintIndex::InsetPrintIndex(InsetCommandParams const & p, bool)
59 string const InsetPrintIndex::getScreenLabel(Buffer const *) const
65 void InsetPrintIndex::validate(LaTeXFeatures & features) const
67 features.require("makeidx");
71 Inset::Code InsetPrintIndex::lyxCode() const
73 return Inset::INDEX_PRINT_CODE;