#define APPLICATION_H
#include "ColorCode.h"
+#include "FuncCode.h"
+
+#include "KeyModifier.h"
#include "support/strfwd.h"
class BufferView;
class Buffer;
+class DispatchResult;
class docstring_list;
class FuncRequest;
class FuncStatus;
Application() {}
///
virtual ~Application() {}
-
+ ///
+ virtual LyXView * currentWindow() = 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;
+ virtual void dispatch(FuncRequest const & cmd, DispatchResult & dr) = 0;
///
virtual void resetGui() = 0;
virtual bool searchMenu(FuncRequest const & func,
docstring_list & names) const = 0;
+
+ /// \return the icon file name for the given action.
+ virtual docstring iconName(FuncRequest const & f, bool unknown) = 0;
+
+ /// Handle a accented char key sequence
+ /// FIXME: this is only needed for LFUN_ACCENT_* in Text::dispatch()
+ virtual void handleKeyFunc(FuncCode action) = 0;
};
+/// Return the list of loadable formats.
+std::vector<std::string> loadableImageFormats();
+
} // namespace frontend
frontend::Application * theApp();