X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FMenuBackend.C;h=de6b67c0a181569acd798a36a52a345f21266430;hb=34d28f9daae536db06d6cf1a9dcf62dc0f5aa432;hp=2525758134db97639d67da6bc4a9f52f2462dfe9;hpb=10231c3538178c9472ea9448d86b0d40765cd24c;p=lyx.git diff --git a/src/MenuBackend.C b/src/MenuBackend.C index 2525758134..de6b67c0a1 100644 --- a/src/MenuBackend.C +++ b/src/MenuBackend.C @@ -22,6 +22,7 @@ #include "debug.h" #include "gettext.h" #include "lastfiles.h" +#include "lyx_main.h" // for lastfiles #include "bufferlist.h" #include "converter.h" #include "exporter.h" @@ -33,7 +34,6 @@ #include "support/lstrings.h" extern LyXAction lyxaction; -extern LastFiles * lastfiles; extern BufferList bufferlist; using std::endl; @@ -79,11 +79,13 @@ MenuItem::MenuItem(Kind kind, string const & label, } } + string const MenuItem::label() const { return token(label_, '|', 0); } + string const MenuItem::shortcut() const { return token(label_, '|', 1); @@ -246,6 +248,7 @@ void Menu::checkShortcuts() const } } + namespace { class compare_format {