case MenuItem::ViewFormats:
case MenuItem::UpdateFormats:
case MenuItem::ExportFormats: {
+
+ if (!buf && cit->kind() != MenuItem::ImportFormats) {
+ tomenu.add(MenuItem(MenuItem::Command,
+ _("No Documents Open!"),
+ LFUN_NOACTION));
+ continue;
+ }
+
typedef vector<Format const *> Formats;
Formats formats;
int const action = lyxaction
.getPseudoAction(LFUN_FLOAT_LIST,
cit->second.type());
- string const label = cit->second.name() + _(" List");
tomenu.add(MenuItem(MenuItem::Command,
- label, action));
+ _(cit->second.listName()),
+ action));
}
}
break;
int const action2 = lyxaction
.getPseudoAction(LFUN_INSET_WIDE_FLOAT,
cit->second.type());
- string const label2 = _("Wide ") + label;
+ string const label2 = label + _(" (wide)");
tomenu.add(MenuItem(MenuItem::Command,
label2, action2));
}