+bool InsetRef::isCompatibleCommand(string const & s) {
+ //FIXME This is likely not the best way to handle this.
+ //But this stuff is hardcoded elsewhere already.
+ return s == "ref"
+ || s == "pageref"
+ || s == "vref"
+ || s == "vpageref"
+ || s == "prettyref"
+ || s == "eqref";
+}
+
+
+CommandInfo const * InsetRef::findInfo(string const & /* cmdName */)
+{
+ static const char * const paramnames[] = {"name", "reference", ""};
+ static const bool isoptional[] = {true, false};
+ static const CommandInfo info = {2, paramnames, isoptional};
+ return &info;
+}
+
+