3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Lars Gullik Bjønnes
8 * Full author contact details are available in file CREDITS
13 #pragma implementation
16 #include "insetindex.h"
17 #include "BufferView.h"
18 #include "frontends/LyXView.h"
19 #include "frontends/Dialogs.h"
20 #include "LaTeXFeatures.h"
22 #include "support/LOstream.h"
26 InsetIndex::InsetIndex(InsetCommandParams const & p, bool)
31 string const InsetIndex::getScreenLabel(Buffer const *) const
37 void InsetIndex::edit(BufferView * bv, int, int, mouse_button::state)
39 bv->owner()->getDialogs().showIndex(this);
43 void InsetIndex::edit(BufferView * bv, bool)
45 edit(bv, 0, 0, mouse_button::none);
49 int InsetIndex::docbook(Buffer const *, ostream & os, bool) const
51 os << "<indexterm><primary>" << getContents()
52 << "</primary></indexterm>";
57 Inset::Code InsetIndex::lyxCode() const
59 return Inset::INDEX_CODE;
63 InsetPrintIndex::InsetPrintIndex(InsetCommandParams const & p, bool)
68 string const InsetPrintIndex::getScreenLabel(Buffer const *) const
74 void InsetPrintIndex::validate(LaTeXFeatures & features) const
76 features.require("makeidx");
80 Inset::Code InsetPrintIndex::lyxCode() const
82 return Inset::INDEX_PRINT_CODE;