std::string const & name() const { return name_; }
///
bool empty() const { return items_.empty(); }
+ /// Clear the menu content.
+ void clear() { items_.clear(); }
///
ItemList::size_type size() const { return items_.size(); }
///
- bool hasSubmenu(std::string const &) const;
+ MenuItem const & operator[](size_type) const;
+ ///
+ bool hasFunc(FuncRequest const &) const;
///
const_iterator begin() const {
return items_.begin();
///
typedef MenuList::iterator iterator;
///
+ MenuBackend() : specialmenu_(0) {}
+ ///
void read(LyXLex &);
///
void add(Menu const &);
Menu const & getMenubar() const;
///
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
+ */
+ void specialMenu(std::string const &);
/// Expands some special entries of the menu
/** The entries with the following kind are expanded to a
sequence of Command MenuItems: Lastfiles, Documents,
MenuList menulist_;
///
Menu menubar_;
+ ///
+ Menu * specialmenu_;
};
///