]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetNomencl.cpp
pimpl not needed here
[lyx.git] / src / insets / InsetNomencl.cpp
index dfcc6e2f0c99fa18ad358f21efd28adcac5d919b..c2fdade285797ad19269eea8d169c429a036dbe4 100644 (file)
@@ -22,6 +22,8 @@
 #include "MetricsInfo.h"
 #include "sgml.h"
 
+#include "support/docstream.h"
+
 
 namespace lyx {
 
@@ -34,6 +36,15 @@ InsetNomencl::InsetNomencl(InsetCommandParams const & p)
 {}
 
 
+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");
@@ -75,6 +86,15 @@ InsetPrintNomencl::InsetPrintNomencl(InsetCommandParams const & p)
 {}
 
 
+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");