X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FMenuBackend.h;h=903b130630f4c1942ececb41e4a5964d7985e4ff;hb=80328d2053869dc089c23c25adbed4167d7bf0b1;hp=878046db38cb18226a827f1d50581c73484904d0;hpb=6c300f72a217722652dc27db9108e1050028979c;p=lyx.git diff --git a/src/MenuBackend.h b/src/MenuBackend.h index 878046db38..903b130630 100644 --- a/src/MenuBackend.h +++ b/src/MenuBackend.h @@ -44,6 +44,8 @@ public: /** This is the list of opened Documents, typically for the Documents menu. */ Documents, + /** This is the bookmarks */ + Bookmarks, /// Toc, /** This is a list of viewable formats @@ -70,6 +72,8 @@ public: /** This is the list of selections that can be pasted. */ PasteRecent, + /** toolbars */ + Toolbars, /** Available branches in document */ Branches }; @@ -106,8 +110,11 @@ public: FuncStatus & status() { return status_; } /// returns the status of the lfun associated with this entry void status(FuncStatus const & status) { status_ = status; } - /// returns the binding associated to this action - docstring const binding() const; + /** + * returns the binding associated to this action. + * Use the native UI format when \c forgui is true. + */ + docstring const binding(bool forgui) const; /// the description of the submenu (if relevant) docstring const & submenuname() const { return submenuname_; } /// set the description of the submenu @@ -198,7 +205,7 @@ public: /// typedef MenuList::iterator iterator; /// - MenuBackend() : specialmenu_(0) {} + MenuBackend() {} /// void read(LyXLex &); /// @@ -214,10 +221,13 @@ public: /// bool empty() const { return menulist_.empty(); } /** This defines a menu whose entries list the FuncRequests - will be removed by expand() in other menus. This is used by - the Qt/Mac code + that will be removed by expand() in other menus. This is + used by the Qt/Mac code */ - void specialMenu(docstring const &); + void specialMenu(Menu const &); + /// + Menu const & specialMenu() { return specialmenu_; } + /// Expands some special entries of the menu /** The entries with the following kind are expanded to a sequence of Command MenuItems: Lastfiles, Documents, @@ -247,7 +257,7 @@ private: /// Menu menubar_; /// - Menu * specialmenu_; + Menu specialmenu_; }; ///