#include "MetricsInfo.h"
#include "sgml.h"
+#include "support/docstream.h"
+
namespace lyx {
{}
+CommandInfo const * InsetNomencl::findInfo(std::string const & /* cmdName */)
+{
+ static const char * const paramnames[] = {"prefix", "symbol", "description", ""};
+ static const bool isoptional[] = {true, false, false};
+ static const CommandInfo info = {3, paramnames, isoptional};
+ return &info;
+}
+
+
docstring const InsetNomencl::getScreenLabel(Buffer const &) const
{
return _("Nom");
}
-Inset::Code InsetNomencl::lyxCode() const
-{
- return Inset::NOMENCL_CODE;
-}
-
-
InsetPrintNomencl::InsetPrintNomencl(InsetCommandParams const & p)
: InsetCommand(p, string())
{}
+CommandInfo const * InsetPrintNomencl::findInfo(std::string const & /* cmdName */)
+{
+ static const char * const paramnames[] = {"labelwidth", ""};
+ static const bool isoptional[] = {true};
+ static const CommandInfo info = {1, paramnames, isoptional};
+ return &info;
+}
+
+
docstring const InsetPrintNomencl::getScreenLabel(Buffer const &) const
{
return _("Nomenclature");
os << "<glossary>\n";
int newlines = 2;
for (InsetIterator it = inset_iterator_begin(buf.inset()); it;) {
- if (it->lyxCode() == Inset::NOMENCL_CODE) {
+ if (it->lyxCode() == NOMENCL_CODE) {
newlines += static_cast<InsetNomencl const &>(*it).docbookGlossary(os);
++it;
- } else if(it->lyxCode() == Inset::NOTE_CODE &&
+ } else if(it->lyxCode() == NOTE_CODE &&
static_cast<InsetNote const &>(*it).params().type == InsetNoteParams::Note) {
// Don't output anything nested in note insets
size_t const depth = it.depth();
}
-Inset::Code InsetPrintNomencl::lyxCode() const
+InsetCode InsetPrintNomencl::lyxCode() const
{
- return Inset::NOMENCL_PRINT_CODE;
+ return NOMENCL_PRINT_CODE;
}