#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 {
Application (this is the frontend really, should probably be renamed).
|
- LyXView-1 (M1 WorkAreas, M1 <= N)
+ LyXView-1 (one or more in case of split-view mode).
+ | |
+ | <tab-widget-1-1>
+ | | |
+ | | WorkArea-1-1-1 (M1-1 WorkAreas, M1-1 <= N)
+ | | | |
+ | | | BufferView <-----------> Buffer-c
+ | | | |
+ | | | Cursor
+ | | |
+ | | WorkArea-1-1-2
+ | | | |
+ | | | BufferView <-----------> Buffer-a
+ | | | |
+ | | | Cursor
| |
- | <tab-widget>
- | | (many)
- | WorkArea-1
- | |
- | BufferView <-----------> Buffer-c
- | |
- | Cursor
+ | <tab-widget-1-2>
|
- LyXView-2 (M2 WorkAreas, M2 <= N, M2 independent of M1)
- |
+ LyXView-2 (one or more in case of split-view mode).
+ | |
+ | <tab-widget-2-1>
+ | | |
+ | | WorkArea-2-1-1 (M2-1 WorkAreas, M2-1 <= N, M2-1 independent of M1-1)
...
*/
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