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"
29 InsetIndex::InsetIndex(InsetCommandParams const & p)
30 : InsetCommand(p, "index")
34 // InsetIndex::InsetIndex(InsetCommandParams const & p, bool)
35 // : InsetCommand(p, false)
39 docstring const InsetIndex::getScreenLabel(Buffer const &) const
45 int InsetIndex::docbook(Buffer const &, ostream & os,
46 OutputParams const &) const
48 os << "<indexterm><primary>" << sgml::escapeString(getContents())
49 << "</primary></indexterm>";
54 InsetBase::Code InsetIndex::lyxCode() const
56 return InsetBase::INDEX_CODE;
61 InsetPrintIndex::InsetPrintIndex(InsetCommandParams const & p)
62 : InsetCommand(p, string())
66 // InsetPrintIndex::InsetPrintIndex(InsetCommandParams const & p, bool)
67 // : InsetCommand(p, false)
71 docstring const InsetPrintIndex::getScreenLabel(Buffer const &) const
77 void InsetPrintIndex::validate(LaTeXFeatures & features) const
79 features.require("makeidx");
83 InsetBase::Code InsetPrintIndex::lyxCode() const
85 return InsetBase::INDEX_PRINT_CODE;