]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/Application.h
* Hartmut's csv2lyx script
[lyx.git] / src / frontends / Application.h
index 997d41a5af06a6954a9e44d4263f18de7dbc91b3..28a64a48d6df2fa4a110a827a174c39cb518fc28 100644 (file)
 #include "ColorCode.h"
 
 #include "support/strfwd.h"
+#include "support/docstring.h"
 
 #include <boost/function.hpp>
 
+#include <vector>
+
 
 namespace lyx {
 
@@ -25,7 +28,7 @@ class Buffer;
 class FuncRequest;
 class FuncStatus;
 class Inset;
-class MenuBackend;
+class Lexer;
 struct RGBColor;
 
 namespace frontend {
@@ -211,6 +214,16 @@ public:
        */
        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)
@@ -224,15 +237,15 @@ public:
        */
        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
 
 frontend::Application * theApp();
 frontend::Application * createApplication(int & argc, char * argv[]);
+void hideDialogs(std::string const & name, Inset * inset);
 
 } // namespace lyx