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 // InsetIndex::InsetIndex(InsetCommandParams const & p, bool)
36 // : InsetCommand(p, false)
40 docstring const InsetIndex::getScreenLabel(Buffer const &) const
46 int InsetIndex::docbook(Buffer const &, odocstream & os,
47 OutputParams const &) const
49 os << "<indexterm><primary>"
50 << sgml::escapeString(getParam("name"))
51 << "</primary></indexterm>";
56 InsetBase::Code InsetIndex::lyxCode() const
58 return InsetBase::INDEX_CODE;
63 InsetPrintIndex::InsetPrintIndex(InsetCommandParams const & p)
64 : InsetCommand(p, string())
68 // InsetPrintIndex::InsetPrintIndex(InsetCommandParams const & p, bool)
69 // : InsetCommand(p, false)
73 docstring const InsetPrintIndex::getScreenLabel(Buffer const &) const
79 void InsetPrintIndex::validate(LaTeXFeatures & features) const
81 features.require("makeidx");
85 InsetBase::Code InsetPrintIndex::lyxCode() const
87 return InsetBase::INDEX_PRINT_CODE;