#include "ColorCode.h"
#include "support/strfwd.h"
+#include "support/docstring.h"
#include <boost/function.hpp>
+#include <vector>
+
namespace lyx {
class FuncRequest;
class FuncStatus;
class Inset;
-class MenuBackend;
+class Lexer;
struct RGBColor;
namespace frontend {
*/
virtual void updateColor(ColorCode col) = 0;
+ /**
+ * read and create the menu structure
+ */
+ virtual void readMenus(Lexer & lex) = 0;
+
+ /**
+ * initialize the global menubar on Mac
+ */
+ virtual void initGlobalMenu() = 0;
+
/**
* add a callback for socket read notification
* @param fd socket descriptor (file/socket/etc)
*/
virtual void unregisterSocketCallback(int fd) = 0;
- ///
- virtual MenuBackend const & menuBackend() const = 0;
- virtual MenuBackend & menuBackend() = 0;
+ virtual bool searchMenu(FuncRequest const & func,
+ std::vector<docstring> & names) const = 0;
};
} // namespace frontend