]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/Application.h
Embedding: add embedCB checkboxes to IncludeUi and ExternalUi
[lyx.git] / src / frontends / Application.h
index 89c999318c5699b432aa3a8e3fba6ccdf6dbab85..826b9a3e2ae5b43d61b02823c2ef83fd3ca1c09f 100644 (file)
 namespace lyx {
 
 class BufferView;
-struct RGBColor;
 class Buffer;
+class FuncRequest;
+class FuncStatus;
 class Inset;
+class MenuBackend;
+struct RGBColor;
 
 namespace frontend {
 
@@ -152,12 +155,14 @@ public:
        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;
        ///
@@ -205,9 +210,9 @@ public:
        */
        virtual void unregisterSocketCallback(int fd) = 0;
 
-       /// Create the main window with given geometry settings.
-       /// \param geometry_arg: only for Windows platform.
-       virtual void createView(std::string const & geometry_arg = std::string()) = 0;
+       ///
+       virtual MenuBackend const & menuBackend() const = 0;
+       virtual MenuBackend & menuBackend() = 0;
 };
 
 } // namespace frontend