#include "ColorCode.h"
#include "support/strfwd.h"
-#include "support/docstring.h"
#include <boost/function.hpp>
class BufferView;
class Buffer;
+class docstring_list;
class FuncRequest;
class FuncStatus;
class Inset;
class Lexer;
-class MenuBackend;
struct RGBColor;
namespace frontend {
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;
* 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)
*/
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