X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FMenuBackend.C;h=e3c76877775b27f266dbec01c1f82b9ed7499639;hb=1bb197b5d4821404cfe11509c71d1f8de7cee711;hp=f094ef3ed8827c952080857663178d56b6715ad5;hpb=0afa5607b7c47b2c8748fa59f8ccf958b4cab007;p=lyx.git diff --git a/src/MenuBackend.C b/src/MenuBackend.C index f094ef3ed8..e3c7687777 100644 --- a/src/MenuBackend.C +++ b/src/MenuBackend.C @@ -353,6 +353,15 @@ void Menu::expand(Menu & tomenu, Buffer * buf) const if ((*fit)->dummy()) continue; string label = (*fit)->prettyname(); + // we need to hide the default graphic export + // formats from the external menu, because we + // need them only for the internal lyx-view and + // external latex run + if (label == "EPS" || + label == "XPM" || + label == "PNG") + continue; + if (cit->kind() == MenuItem::ImportFormats) if ((*fit)->name() == "text") label = _("Ascii text as lines"); @@ -377,9 +386,9 @@ void Menu::expand(Menu & tomenu, Buffer * buf) const 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; @@ -401,7 +410,7 @@ void Menu::expand(Menu & tomenu, Buffer * buf) const 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)); }