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 "funcrequest.h"
16 #include "frontends/LyXView.h"
17 #include "frontends/Dialogs.h"
18 #include "LaTeXFeatures.h"
20 #include "support/LOstream.h"
24 InsetIndex::InsetIndex(InsetCommandParams const & p)
29 // InsetIndex::InsetIndex(InsetCommandParams const & p, bool)
30 // : InsetCommand(p, false)
34 InsetIndex::~InsetIndex()
36 InsetCommandMailer mailer("index", *this);
41 string const InsetIndex::getScreenLabel(Buffer const *) const
47 dispatch_result InsetIndex::localDispatch(FuncRequest const & cmd)
51 InsetCommandMailer("index", *this).showDialog(cmd.view());
55 return InsetCommand::localDispatch(cmd);
60 int InsetIndex::docbook(Buffer const *, ostream & os, bool) const
62 os << "<indexterm><primary>" << getContents()
63 << "</primary></indexterm>";
68 InsetOld::Code InsetIndex::lyxCode() const
70 return InsetOld::INDEX_CODE;
75 InsetPrintIndex::InsetPrintIndex(InsetCommandParams const & p)
80 // InsetPrintIndex::InsetPrintIndex(InsetCommandParams const & p, bool)
81 // : InsetCommand(p, false)
85 InsetPrintIndex::~InsetPrintIndex()
89 string const InsetPrintIndex::getScreenLabel(Buffer const *) const
95 void InsetPrintIndex::validate(LaTeXFeatures & features) const
97 features.require("makeidx");
101 InsetOld::Code InsetPrintIndex::lyxCode() const
103 return InsetOld::INDEX_PRINT_CODE;