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 Minipage dialog
173 class ControlMinipage;
175 template <class GUIview, class GUIbc>
177 public GUI<ControlMinipage, GUIview, OkApplyCancelReadOnlyPolicy, GUIbc> {
180 GUIMinipage(LyXView & lv, Dialogs & d)
181 : GUI<ControlMinipage, GUIview, OkApplyCancelReadOnlyPolicy, GUIbc>(lv, d) {}
185 /** Specialization for Preamble dialog
187 class ControlPreamble;
189 template <class GUIview, class GUIbc>
191 public GUI<ControlPreamble, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
194 GUIPreamble(LyXView & lv, Dialogs & d)
195 : GUI<ControlPreamble, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
199 /** Specialization for Print dialog
203 template <class GUIview, class GUIbc>
205 public GUI<ControlPrint, GUIview, OkApplyCancelPolicy, GUIbc> {
208 GUIPrint(LyXView & lv, Dialogs & d)
209 : GUI<ControlPrint, GUIview, OkApplyCancelPolicy, GUIbc>(lv, d) {}
213 /** Specialization for Ref dialog
217 template <class GUIview, class GUIbc>
219 public GUI<ControlRef, GUIview, NoRepeatedApplyPolicy, GUIbc> {
222 GUIRef(LyXView & lv, Dialogs & d)
223 : GUI<ControlRef, GUIview, NoRepeatedApplyPolicy, GUIbc>(lv, d) {}
227 /** Specialization for Search dialog
231 template <class GUIview, class GUIbc>
233 public GUI<ControlSearch, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
236 GUISearch(LyXView & lv, Dialogs & d)
237 : GUI<ControlSearch, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
241 /** Specialization for TabularCreate dialog
243 class ControlTabularCreate;
245 template <class GUIview, class GUIbc>
246 class GUITabularCreate :
247 public GUI<ControlTabularCreate, GUIview,
248 OkApplyCancelReadOnlyPolicy, GUIbc> {
251 GUITabularCreate(LyXView & lv, Dialogs & d)
252 : GUI<ControlTabularCreate, GUIview,
253 OkApplyCancelReadOnlyPolicy, GUIbc>(lv, d) {}
257 /** Specialization for Url dialog
261 template <class GUIview, class GUIbc>
263 public GUI<ControlUrl, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
266 GUIUrl(LyXView & lv, Dialogs & d)
267 : GUI<ControlUrl, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
271 /** Specialization for VCLog dialog
275 template <class GUIview, class GUIbc>
277 public GUI<ControlVCLog, GUIview, OkCancelPolicy, GUIbc> {
280 GUIVCLog(LyXView & lv, Dialogs & d)
281 : GUI<ControlVCLog, GUIview, OkCancelPolicy, GUIbc>(lv, d) {}