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.
12 #include "InsetIndex.h"
14 #include "DispatchResult.h"
15 #include "FuncRequest.h"
17 #include "LaTeXFeatures.h"
18 #include "MetricsInfo.h"
21 #include "support/std_ostream.h"
30 InsetIndex::InsetIndex(InsetCommandParams const & p)
31 : InsetCommand(p, "index")
35 docstring const InsetIndex::getScreenLabel(Buffer const &) const
41 int InsetIndex::docbook(Buffer const &, odocstream & os,
42 OutputParams const &) const
44 os << "<indexterm><primary>"
45 << sgml::escapeString(getParam("name"))
46 << "</primary></indexterm>";
51 Inset::Code InsetIndex::lyxCode() const
53 return Inset::INDEX_CODE;
58 InsetPrintIndex::InsetPrintIndex(InsetCommandParams const & p)
59 : InsetCommand(p, string())
63 docstring const InsetPrintIndex::getScreenLabel(Buffer const &) const
69 void InsetPrintIndex::validate(LaTeXFeatures & features) const
71 features.require("makeidx");
75 Inset::Code InsetPrintIndex::lyxCode() const
77 return Inset::INDEX_PRINT_CODE;