]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/GUI.h
*duck*
[lyx.git] / src / frontends / controllers / GUI.h
1 // -*- C++ -*-
2 /**
3  * \file GUI.h
4  * Copyright 2001 The LyX Team.
5  * See the file COPYING.
6  *
7  * \author Angus Leeming <a.leeming@ic.ac.uk>
8  */
9
10 #ifndef GUI_H
11 #define GUI_H
12
13 #include "ButtonController.h"
14 #include "ViewBase.h"
15
16 /** This class instantiates and makes available the GUI-specific
17     ButtonController and View.
18  */
19 template <class Controller, class GUIview, class Policy, class GUIbc>
20 class GUI : public Controller {
21 public:
22         ///
23         GUI(LyXView & lv, Dialogs & d) : Controller(lv, d), view_(*this) {}
24         ///
25         virtual ButtonControllerBase & bc() { return bc_; }
26         ///
27         virtual ViewBase & view() { return view_; }
28
29         friend void gui_ShowAboutlyx(LyXView &, Dialogs &);
30         friend void gui_ShowBibitem(InsetCommand *, LyXView &, Dialogs &);
31         friend void gui_ShowBibtex(InsetCommand *, LyXView &, Dialogs &);
32         friend void gui_ShowCharacter(LyXView &, Dialogs &);
33         friend void gui_SetUserFreeFont(LyXView &, Dialogs &);
34         friend void gui_ShowCitation(InsetCommand *, LyXView &, Dialogs &);
35         friend void gui_CreateCitation(string const &, LyXView &, Dialogs &);
36         friend void gui_ShowDocument(LyXView &, Dialogs &);
37         friend void gui_ShowError(InsetError *, LyXView &, Dialogs &);
38         friend void gui_ShowERT(InsetERT *, LyXView &, Dialogs &);
39         friend void gui_UpdateERT(InsetERT *, LyXView &, Dialogs &);
40         friend void gui_ShowExternal(InsetExternal *, LyXView &, Dialogs &);
41         friend void gui_ShowFloat(InsetFloat *, LyXView &, Dialogs &);
42         friend void gui_ShowForks(LyXView &, Dialogs &);
43         friend void gui_ShowGraphics(InsetGraphics *, LyXView &, Dialogs &);
44         friend void gui_ShowInclude(InsetInclude *, LyXView &, Dialogs &);
45         friend void gui_ShowIndex(InsetCommand *, LyXView &, Dialogs &);
46         friend void gui_CreateIndex(string const &, LyXView &, Dialogs &);
47         friend void gui_ShowLogFile(LyXView &, Dialogs &);
48         friend void gui_ShowMathPanel(LyXView &, Dialogs &);
49         friend void gui_ShowMinipage(InsetMinipage *, LyXView &, Dialogs &);
50         friend void gui_UpdateMinipage(InsetMinipage *, LyXView &, Dialogs &);
51         friend void gui_ShowParagraph(LyXView &, Dialogs &);
52         friend void gui_ShowPreamble(LyXView &, Dialogs &);
53         friend void gui_ShowPreferences(LyXView &, Dialogs &);
54         friend void gui_ShowPrint(LyXView &, Dialogs &);
55         friend void gui_ShowRef(InsetCommand *, LyXView &, Dialogs &);
56         friend void gui_CreateRef(string const &, LyXView &, Dialogs &);
57         friend void gui_ShowSearch(LyXView &, Dialogs &);
58         friend void gui_ShowSendto(LyXView &, Dialogs &);
59         friend void gui_ShowSpellchecker(LyXView &, Dialogs &);
60         friend void gui_ShowTabularCreate(LyXView &, Dialogs &);
61         friend void gui_ShowTexinfo(LyXView &, Dialogs &);
62         friend void gui_ShowTOC(InsetCommand *, LyXView &, Dialogs &);
63         friend void gui_CreateTOC(string const &, LyXView &, Dialogs &);
64         friend void gui_ShowUrl(InsetCommand *, LyXView &, Dialogs &);
65         friend void gui_CreateUrl(string const &, LyXView &, Dialogs &);
66         friend void gui_ShowVCLogFile(LyXView &, Dialogs &);
67
68 private:
69         ///
70         ButtonController<Policy, GUIbc> bc_;
71         ///
72         GUIview view_;
73 };
74
75 #endif // GUI_H