3 * Copyright 2001 The LyX Team.
4 * See the file COPYING.
6 * \author Angus Leeming <a.leeming@ic.ac.uk>
12 /** This class instantiates and makes available the GUI-specific
13 View for the Splash screen controller.
15 template <class GUIview>
16 class GUISplash : public ControlSplash {
19 GUISplash(Dialogs & d) : ControlSplash(d), view_(*this) {}
21 virtual ViewSplash & view() { return view_; }
29 /** This class instantiates and makes available the GUI-specific
30 ButtonController and View.
32 template <class Controller, class GUIview, class Policy, class GUIbc>
33 class GUI : public Controller {
36 GUI(LyXView & lv, Dialogs & d) : Controller(lv, d), view_(*this) {}
38 virtual ButtonControllerBase & bc() { return bc_; }
40 virtual ViewBase & view() { return view_; }
44 ButtonController<Policy, GUIbc> bc_;
49 /// Forward declaration of ButtonPolicies
51 class OkCancelReadOnlyPolicy;
52 class NoRepeatedApplyReadOnlyPolicy;
55 /** Specialization for Bibitem dialog
59 template <class GUIview, class GUIbc>
61 public GUI<ControlBibitem, GUIview, OkCancelReadOnlyPolicy, GUIbc> {
64 GUIBibitem(LyXView & lv, Dialogs & d)
65 : GUI<ControlBibitem, GUIview, OkCancelReadOnlyPolicy, GUIbc>(lv, d) {}
69 /** Specialization for Bibtex dialog
73 template <class GUIview, class GUIbc>
75 public GUI<ControlBibtex, GUIview, OkCancelReadOnlyPolicy, GUIbc> {
78 GUIBibtex(LyXView & lv, Dialogs & d)
79 : GUI<ControlBibtex, GUIview, OkCancelReadOnlyPolicy, GUIbc>(lv, d) {}
83 /** Specialization for Character dialog
85 class ControlCharacter;
87 template <class GUIview, class GUIbc>
88 class GUICharacter : public GUI<ControlCharacter, GUIview,
89 NoRepeatedApplyReadOnlyPolicy, GUIbc>
93 GUICharacter(LyXView & lv, Dialogs & d)
94 : GUI<ControlCharacter, GUIview,
95 NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
99 /** Specialization for Citation dialog
101 class ControlCitation;
103 template <class GUIview, class GUIbc>
104 class GUICitation : public GUI<ControlCitation, GUIview,
105 NoRepeatedApplyReadOnlyPolicy, GUIbc>
109 GUICitation(LyXView & lv, Dialogs & d)
110 : GUI<ControlCitation, GUIview,
111 NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
115 /** Specialization for Credits dialog
117 class ControlCredits;
119 template <class GUIview, class GUIbc>
121 public GUI<ControlCredits, GUIview, OkCancelPolicy, GUIbc> {
124 GUICredits(LyXView & lv, Dialogs & d)
125 : GUI<ControlCredits, GUIview, OkCancelPolicy, GUIbc>(lv, d) {}
129 /** Specialization for Error dialog
133 template <class GUIview, class GUIbc>
135 public GUI<ControlError, GUIview, OkCancelPolicy, GUIbc> {
138 GUIError(LyXView & lv, Dialogs & d)
139 : GUI<ControlError, GUIview, OkCancelPolicy, GUIbc>(lv, d) {}
143 /** Specialization for Include dialog
145 class ControlInclude;
147 template <class GUIview, class GUIbc>
149 public GUI<ControlInclude, GUIview, OkCancelReadOnlyPolicy, GUIbc> {
152 GUIInclude(LyXView & lv, Dialogs & d)
153 : GUI<ControlInclude, GUIview, OkCancelReadOnlyPolicy, GUIbc>(lv, d) {}
157 /** Specialization for Log dialog
161 template <class GUIview, class GUIbc>
163 public GUI<ControlLog, GUIview, OkCancelPolicy, GUIbc> {
166 GUILog(LyXView & lv, Dialogs & d)
167 : GUI<ControlLog, GUIview, OkCancelPolicy, GUIbc>(lv, d) {}
171 /** Specialization for Print dialog
175 template <class GUIview, class GUIbc>
177 public GUI<ControlPrint, GUIview, OkApplyCancelPolicy, GUIbc> {
180 GUIPrint(LyXView & lv, Dialogs & d)
181 : GUI<ControlPrint, GUIview, OkApplyCancelPolicy, GUIbc>(lv, d) {}
185 /** Specialization for Ref dialog
189 template <class GUIview, class GUIbc>
191 public GUI<ControlRef, GUIview, NoRepeatedApplyPolicy, GUIbc> {
194 GUIRef(LyXView & lv, Dialogs & d)
195 : GUI<ControlRef, GUIview, NoRepeatedApplyPolicy, GUIbc>(lv, d) {}
199 /** Specialization for Search dialog
203 template <class GUIview, class GUIbc>
205 public GUI<ControlSearch, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
208 GUISearch(LyXView & lv, Dialogs & d)
209 : GUI<ControlSearch, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
213 /** Specialization for TabularCreate dialog
215 class ControlTabularCreate;
217 template <class GUIview, class GUIbc>
218 class GUITabularCreate :
219 public GUI<ControlTabularCreate, GUIview,
220 OkApplyCancelReadOnlyPolicy, GUIbc> {
223 GUITabularCreate(LyXView & lv, Dialogs & d)
224 : GUI<ControlTabularCreate, GUIview,
225 OkApplyCancelReadOnlyPolicy, GUIbc>(lv, d) {}
229 /** Specialization for Url dialog
233 template <class GUIview, class GUIbc>
235 public GUI<ControlUrl, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
238 GUIUrl(LyXView & lv, Dialogs & d)
239 : GUI<ControlUrl, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
243 /** Specialization for VCLog dialog
247 template <class GUIview, class GUIbc>
249 public GUI<ControlVCLog, GUIview, OkCancelPolicy, GUIbc> {
252 GUIVCLog(LyXView & lv, Dialogs & d)
253 : GUI<ControlVCLog, GUIview, OkCancelPolicy, GUIbc>(lv, d) {}