3 * \file qt2/Menubar_pimpl.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Lars Gullik Bjønnes
10 * Full author contact details are available in file CREDITS
14 #ifndef MENUBAR_PIMPL_H
15 #define MENUBAR_PIMPL_H
21 #include "frontends/Menubar.h"
30 struct Menubar::Pimpl {
32 Pimpl(LyXView *, MenuBackend const &);
34 /// opens a top-level submenu given its name
35 void openByName(string const &);
37 /// update the state of the menuitems - not needed
40 /// return the owning view
41 QtView * view() { return owner_; }
43 /// return the menu controller
44 MenuBackend const & backend() { return menubackend_; }
50 MenuBackend const & menubackend_;
52 typedef std::map<string, QLPopupMenu *> NameMap;
54 /// name to menu for openByName
58 #endif // MENUBAR_PIMPL_H