-InsetInfo::InsetInfo(Buffer const & buf, string const & name)
- : InsetText(buf), type_(UNKNOWN_INFO), name_(),
- mouse_hover_(false)
+ translator.addPair(InsetInfo::SHORTCUTS_INFO, "shortcuts");
+ translator.addPair(InsetInfo::SHORTCUT_INFO, "shortcut");
+ translator.addPair(InsetInfo::LYXRC_INFO, "lyxrc");
+ translator.addPair(InsetInfo::PACKAGE_INFO, "package");
+ translator.addPair(InsetInfo::TEXTCLASS_INFO, "textclass");
+ translator.addPair(InsetInfo::MENU_INFO, "menu");
+ translator.addPair(InsetInfo::ICON_INFO, "icon");
+ translator.addPair(InsetInfo::BUFFER_INFO, "buffer");
+ translator.addPair(InsetInfo::LYX_INFO, "lyxinfo");
+
+ return translator;
+}
+
+/// The translator between the information type enum and corresponding string.
+NameTranslator const & nameTranslator()