#include "debug.h"
#include "gettext.h"
#include "LaTeXFeatures.h"
-#include "lyxfunc.h"
#include "LyXView.h"
#include "frontends/Dialogs.h"
+#include "lyxfunc.h"
using std::ostream;
{ "prettyref", N_("PrettyRef"), N_("PrettyRef: ")},
{ "", "", "" }
};
+
+
+int InsetRef::getType(string const & name)
+{
+ for (int i = 0; !types[i].latex_name.empty(); ++i)
+ if (name == types[i].latex_name)
+ return i;
+ return 0;
+}
+
+
+string const & InsetRef::getName(int type)
+{
+ return types[type].latex_name;
+}