]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetNomencl.cpp
This should be the last of the commits refactoring the InsetLayout code.
[lyx.git] / src / insets / InsetNomencl.cpp
index dfcc6e2f0c99fa18ad358f21efd28adcac5d919b..ac61c7a0c5e9ae5cc1893e687013eadb22502921 100644 (file)
 #include "Buffer.h"
 #include "DispatchResult.h"
 #include "FuncRequest.h"
-#include "gettext.h"
+#include "support/gettext.h"
 #include "InsetIterator.h"
 #include "LaTeXFeatures.h"
 #include "MetricsInfo.h"
 #include "sgml.h"
 
+#include "support/docstream.h"
 
-namespace lyx {
+using namespace std;
 
-using std::string;
+namespace lyx {
 
 
 InsetNomencl::InsetNomencl(InsetCommandParams const & p)
@@ -34,6 +35,15 @@ InsetNomencl::InsetNomencl(InsetCommandParams const & p)
 {}
 
 
+CommandInfo const * InsetNomencl::findInfo(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 +85,15 @@ InsetPrintNomencl::InsetPrintNomencl(InsetCommandParams const & p)
 {}
 
 
+CommandInfo const * InsetPrintNomencl::findInfo(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");