]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiImplementation.h
QtView renamed to GuiView
[lyx.git] / src / frontends / qt4 / GuiImplementation.h
1 // -*- C++ -*-
2 /**
3  * \file GuiImplementation.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author John Levon
8  * \author Abdelrazak Younes
9  *
10  * Full author contact details are available in file CREDITS.
11  */
12
13 #ifndef GUI_IMPLEMENTATION_H
14 #define GUI_IMPLEMENTATION_H
15
16 #include "frontends/Gui.h"
17 #include "GuiClipboard.h"
18
19 #include <boost/shared_ptr.hpp>
20
21 #include <map>
22
23 namespace lyx {
24 namespace frontend {
25
26 class GuiWorkArea;
27 class GuiView;
28
29 /**
30  * The GuiImplementation class is the interface to all Qt4 components.
31  */
32 class GuiImplementation: public Gui
33 {
34 public:
35         GuiImplementation(GuiView & owner);
36         virtual ~GuiImplementation() {}
37
38         Clipboard& clipboard();
39
40         int newWorkArea(int w, int h);
41         WorkArea& workArea(int id);
42         void destroyWorkArea(int id);
43
44 private:
45         ///
46         GuiClipboard clipboard_;
47         ///
48         std::map<int, boost::shared_ptr<GuiWorkArea> > work_areas_;
49         ///
50         GuiView & owner_;
51         ///
52         size_t max_id_;
53 };
54
55 } // namespace frontend
56 } // namespace lyx
57
58 #endif // GUI_IMPLEMENTATION_H