]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/Menubar_pimpl.h
compile fies, tiny QToc improvement
[lyx.git] / src / frontends / qt2 / Menubar_pimpl.h
1 // -*- C++ -*-
2 /**
3  * \file Menubar_pimpl.h
4  * Copyright 2002 the LyX Team
5  * Read the file COPYING
6  *
7  * \author Lars Gullik Bjønnes <larsbj@lyx.org>
8  * \author John Levon <moz@compsoc.man.ac.uk>
9  */
10
11  
12 #ifndef MENUBAR_PIMPL_H
13 #define MENUBAR_PIMPL_H
14
15 #include <vector>
16 #include <map>
17 #include <boost/smart_ptr.hpp>
18
19 #include <config.h>
20  
21 #ifdef __GNUG__
22 #pragma interface
23 #endif
24
25 #include "LString.h"
26 #include "frontends/Menubar.h"
27 #include "commandtags.h"
28 //#include "MenuBackend.h"
29
30 class LyXView;
31 class QtView;
32 class QMenuData;
33 class Menu;
34 class MenuItem;
35 class MenuBackend;
36
37 struct Menubar::Pimpl {
38 public:
39         ///
40         Pimpl(LyXView *, MenuBackend const &);
41         /// Opens a top-level submenu given its name
42         void openByName(string const &);
43
44         /// update the state of the menuitems
45         void update() {}
46
47 private:
48         void makeMenu(QMenuData * parent, MenuItem const & menu);
49  
50         QtView * owner_;
51
52         MenuBackend const & menubackend_;
53 };
54  
55 #endif