3 * \file Menubar_pimpl.h
4 * Copyright 2002 the LyX Team
5 * Read the file COPYING
7 * \author Lars Gullik Bjønnes <larsbj@lyx.org>
8 * \author John Levon <moz@compsoc.man.ac.uk>
12 #ifndef MENUBAR_PIMPL_H
13 #define MENUBAR_PIMPL_H
24 #include "frontends/Menubar.h"
31 struct Menubar::Pimpl {
33 Pimpl(LyXView *, MenuBackend const &);
35 /// opens a top-level submenu given its name
36 void openByName(string const &);
38 /// update the state of the menuitems - not needed
41 /// return the owning view
42 QtView * view() { return owner_; }
44 /// return the menu controller
45 MenuBackend const & backend() { return menubackend_; }
51 MenuBackend const & menubackend_;
53 typedef std::map<string, QLPopupMenu *> NameMap;
55 /// name to menu for openByName
59 #endif // MENUBAR_PIMPL_H