2 * \file Menubar_pimpl.C
3 * Copyright 1999-2001 The LyX Team.
4 * See the file COPYING.
6 * \author Lars Gullik Bjønnes, larsbj@lyx.org
14 #pragma implementation
17 #include "Menubar_pimpl.h"
18 #include "MenuBackend.h"
19 #include "LyXAction.h"
23 #include "FloatList.h"
24 #include "support/lstrings.h"
25 #include "support/LAssert.h"
30 #include "QLPopupMenu.h"
41 Menubar::Pimpl::Pimpl(LyXView * view, MenuBackend const & mbe)
42 : owner_(static_cast<QtView*>(view)), menubackend_(mbe)
44 Menu::const_iterator m = mbe.getMenubar().begin();
45 Menu::const_iterator end = mbe.getMenubar().end();
46 for (; m != end; ++m) {
47 createMenu(owner_->menuBar(), &(*m), this, true);
52 void Menubar::Pimpl::openByName(string const &)