]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/Application.h
Compil fix.
[lyx.git] / src / frontends / Application.h
index ebb98e9aff8f9237ec15632d81e530c3361bf875..896ae71c2bd775b5f96b229fc5812110ee0c915e 100644 (file)
@@ -14,7 +14,6 @@
 #include "ColorCode.h"
 
 #include "support/strfwd.h"
-#include "support/docstring.h"
 
 #include <boost/function.hpp>
 
@@ -25,11 +24,11 @@ namespace lyx {
 
 class BufferView;
 class Buffer;
+class docstring_list;
 class FuncRequest;
 class FuncStatus;
 class Inset;
 class Lexer;
-class MenuBackend;
 struct RGBColor;
 
 namespace frontend {
@@ -170,7 +169,7 @@ public:
        virtual ~Application() {}
 
        ///
-       virtual FuncStatus getStatus(FuncRequest const & cmd) = 0;
+       virtual bool getStatus(FuncRequest const & cmd, FuncStatus & flag) const = 0;
        /// dispatch command.
        /// \return true if the \c FuncRequest has been dispatched.
        virtual bool dispatch(FuncRequest const & cmd) = 0;
@@ -209,17 +208,7 @@ public:
        *      passing Color_white returns "ffffff".
        */
        virtual std::string const hexName(ColorCode col) = 0;
-
-       /**
-       * update an altered GUI color
-       */
-       virtual void updateColor(ColorCode col) = 0;
-
-       /**
-       * read and create the menu structure
-       */
-       virtual void readMenus(Lexer & lex) = 0;
-
+       
        /**
        * add a callback for socket read notification
        * @param fd socket descriptor (file/socket/etc)
@@ -233,18 +222,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;
+               docstring_list & 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