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 #include "insetindex.h"
14 #include "BufferView.h"
15 #include "frontends/LyXView.h"
16 #include "frontends/Dialogs.h"
17 #include "LaTeXFeatures.h"
19 #include "support/LOstream.h"
23 InsetIndex::InsetIndex(InsetCommandParams const & p, bool)
28 InsetIndex::~InsetIndex()
30 InsetCommandMailer mailer("index", *this);
35 string const InsetIndex::getScreenLabel(Buffer const *) const
41 void InsetIndex::edit(BufferView * bv, int, int, mouse_button::state)
43 InsetCommandMailer mailer("index", *this);
44 mailer.showDialog(bv);
48 void InsetIndex::edit(BufferView * bv, bool)
50 edit(bv, 0, 0, mouse_button::none);
54 int InsetIndex::docbook(Buffer const *, ostream & os, bool) const
56 os << "<indexterm><primary>" << getContents()
57 << "</primary></indexterm>";
62 Inset::Code InsetIndex::lyxCode() const
64 return Inset::INDEX_CODE;
68 InsetPrintIndex::InsetPrintIndex(InsetCommandParams const & p, bool)
73 string const InsetPrintIndex::getScreenLabel(Buffer const *) const
79 void InsetPrintIndex::validate(LaTeXFeatures & features) const
81 features.require("makeidx");
85 Inset::Code InsetPrintIndex::lyxCode() const
87 return Inset::INDEX_PRINT_CODE;