]> git.lyx.org Git - lyx.git/blob - src/frontends/Gui.h
* Gui::newView(): cleanup unused arguments.
[lyx.git] / src / frontends / Gui.h
1 // -*- C++ -*-
2 /**
3  * \file Gui.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author unknown
8  * \author John Levon
9  * \author Abdelrazak Younes
10  *
11  * Full author contact details are available in file CREDITS.
12  */
13
14 #ifndef BASE_GUI_H
15 #define BASE_GUI_H
16
17 #include <boost/shared_ptr.hpp>
18
19 #include <map>
20
21 class LyXView;
22 class BufferView;
23
24 namespace lyx {
25 namespace frontend {
26
27 class WorkArea;
28
29
30 /**
31  * A Gui class manages the different frontend elements.
32  */
33 class Gui
34 {
35 public:
36         virtual ~Gui() {}
37
38         ///
39         virtual int newView() = 0;
40         ///
41         virtual LyXView & view(int id) = 0;
42         ///
43         virtual void destroyView(int id) = 0;
44
45         ///
46         virtual int newWorkArea(unsigned int width, unsigned int height, int view_id) = 0;
47         ///
48         virtual WorkArea & workArea(int id) = 0;
49         ///
50         virtual void destroyWorkArea(int id) = 0;
51
52 protected:
53         /// view of a buffer. Eventually there will be several.
54         std::map<int, boost::shared_ptr<BufferView> > buffer_views_;
55 };
56
57 } // namespace frontend
58 } // namespace lyx
59
60 #endif // BASE_GUI_H