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
17 #include <boost/smart_ptr.hpp>
26 #include "frontends/Menubar.h"
27 #include "commandtags.h"
28 //#include "MenuBackend.h"
37 struct Menubar::Pimpl {
40 Pimpl(LyXView *, MenuBackend const &);
42 void set(string const &);
43 /// Opens a top-level submenu given its name
44 void openByName(string const &);
46 /// update the state of the menuitems
50 void makeMenu(QMenuData * parent, MenuItem const & menu);
54 MenuBackend const & menubackend_;