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"
27 InsetIndex::InsetIndex(InsetCommandParams const & p)
28 : InsetCommand(p, "index")
32 // InsetIndex::InsetIndex(InsetCommandParams const & p, bool)
33 // : InsetCommand(p, false)
37 string const InsetIndex::getScreenLabel(Buffer const &) const
43 int InsetIndex::docbook(Buffer const &, ostream & os,
44 OutputParams const &) const
46 os << "<indexterm><primary>" << sgml::escapeString(getContents())
47 << "</primary></indexterm>";
52 InsetBase::Code InsetIndex::lyxCode() const
54 return InsetBase::INDEX_CODE;
59 InsetPrintIndex::InsetPrintIndex(InsetCommandParams const & p)
60 : InsetCommand(p, string())
64 // InsetPrintIndex::InsetPrintIndex(InsetCommandParams const & p, bool)
65 // : InsetCommand(p, false)
69 string const InsetPrintIndex::getScreenLabel(Buffer const &) const
75 void InsetPrintIndex::validate(LaTeXFeatures & features) const
77 features.require("makeidx");
81 InsetBase::Code InsetPrintIndex::lyxCode() const
83 return InsetBase::INDEX_PRINT_CODE;