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
9 * Full author contact details are available in file CREDITS.
13 #include "insetnomencl.h"
15 #include "dispatchresult.h"
16 #include "funcrequest.h"
18 #include "LaTeXFeatures.h"
19 #include "metricsinfo.h"
28 InsetNomencl::InsetNomencl(InsetCommandParams const & p)
29 : InsetCommand(p, "nomenclature")
33 docstring const InsetNomencl::getScreenLabel(Buffer const &) const
39 int InsetNomencl::docbook(Buffer const &, odocstream & os,
40 OutputParams const &) const
42 // FIXME: This does not work, because the entry needs to be put
45 os << "<glossentry><glossterm>"
46 << sgml::escapeString(getParam("symbol"))
47 << "</glossterm><glossdef><para>"
48 << sgml::escapeString(getParam("description"))
49 << "</para></glossdef></glossentry>";
55 void InsetNomencl::validate(LaTeXFeatures & features) const
57 features.require("nomencl");
61 InsetBase::Code InsetNomencl::lyxCode() const
63 return InsetBase::NOMENCL_CODE;
67 InsetPrintNomencl::InsetPrintNomencl(InsetCommandParams const & p)
68 : InsetCommand(p, string())
72 docstring const InsetPrintNomencl::getScreenLabel(Buffer const &) const
78 int InsetPrintNomencl::docbook(Buffer const &, odocstream & os,
79 OutputParams const &) const
81 // FIXME This does not work, we need to define the entries here.
82 //os << "<glossary><glossary/>";
87 void InsetPrintNomencl::validate(LaTeXFeatures & features) const
89 features.require("nomencl");
93 InsetBase::Code InsetPrintNomencl::lyxCode() const
95 return InsetBase::NOMENCL_PRINT_CODE;