namespace lyx {
class BufferView;
-struct RGBColor;
class Buffer;
+class FuncRequest;
+class FuncStatus;
class Inset;
+class MenuBackend;
+struct RGBColor;
namespace frontend {
virtual ~Application() {}
///
- virtual void resetGui() = 0;
+ virtual FuncStatus getStatus(FuncRequest const & cmd) = 0;
+ /// dispatch command.
+ /// \return true if the \c FuncRequest has been dispatched.
+ virtual bool dispatch(FuncRequest const & cmd) = 0;
///
- virtual bool closeAllViews() = 0;
- ///
- virtual size_t viewCount() const = 0;
+ virtual void resetGui() = 0;
+
///
virtual void hideDialogs(std::string const & name, Inset * inset) const = 0;
///
*/
virtual void unregisterSocketCallback(int fd) = 0;
- /// Create the main window with given geometry settings.
- /// \param geometry_arg: only for Windows platform.
- virtual LyXView & createView(std::string const & geometry_arg) = 0;
+ ///
+ virtual MenuBackend const & menuBackend() const = 0;
+ virtual MenuBackend & menuBackend() = 0;
};
} // namespace frontend