4 * Copyright 2001 The LyX Team.
5 * See the file COPYING.
7 * \author Angus Leeming <a.leeming@ic.ac.uk>
13 /** This class instantiates and makes available the GUI-specific
14 View for the Splash screen controller.
16 template <class GUIview>
17 class GUISplash : public ControlSplash {
20 GUISplash(Dialogs & d) : ControlSplash(d), view_(*this) {}
22 virtual ViewSplash & view() { return view_; }
30 /** This class instantiates and makes available the GUI-specific
31 ButtonController and View.
33 template <class Controller, class GUIview, class Policy, class GUIbc>
34 class GUI : public Controller {
37 GUI(LyXView & lv, Dialogs & d) : Controller(lv, d), view_(*this) {}
39 virtual ButtonControllerBase & bc() { return bc_; }
41 virtual ViewBase & view() { return view_; }
45 ButtonController<Policy, GUIbc> bc_;
50 /// Forward declaration of ButtonPolicies
52 class OkCancelReadOnlyPolicy;
53 class NoRepeatedApplyReadOnlyPolicy;
55 /** Specialization for About LyX dialog
57 class ControlAboutlyx;
59 template <class GUIview, class GUIbc>
61 public GUI<ControlAboutlyx, GUIview, OkCancelPolicy, GUIbc> {
64 GUIAboutlyx(LyXView & lv, Dialogs & d)
65 : GUI<ControlAboutlyx, GUIview, OkCancelPolicy, GUIbc>(lv, d) {}
68 /** Specialization for Bibitem dialog
72 template <class GUIview, class GUIbc>
74 public GUI<ControlBibitem, GUIview, OkCancelReadOnlyPolicy, GUIbc> {
77 GUIBibitem(LyXView & lv, Dialogs & d)
78 : GUI<ControlBibitem, GUIview, OkCancelReadOnlyPolicy, GUIbc>(lv, d) {}
82 /** Specialization for Bibtex dialog
86 template <class GUIview, class GUIbc>
88 public GUI<ControlBibtex, GUIview, OkCancelReadOnlyPolicy, GUIbc> {
91 GUIBibtex(LyXView & lv, Dialogs & d)
92 : GUI<ControlBibtex, GUIview, OkCancelReadOnlyPolicy, GUIbc>(lv, d) {}
96 /** Specialization for Character dialog
98 class ControlCharacter;
100 template <class GUIview, class GUIbc>
101 class GUICharacter : public GUI<ControlCharacter, GUIview,
102 OkApplyCancelReadOnlyPolicy, GUIbc>
106 GUICharacter(LyXView & lv, Dialogs & d)
107 : GUI<ControlCharacter, GUIview,
108 OkApplyCancelReadOnlyPolicy, GUIbc>(lv, d) {}
112 /** Specialization for Citation dialog
114 class ControlCitation;
116 template <class GUIview, class GUIbc>
117 class GUICitation : public GUI<ControlCitation, GUIview,
118 NoRepeatedApplyReadOnlyPolicy, GUIbc>
122 GUICitation(LyXView & lv, Dialogs & d)
123 : GUI<ControlCitation, GUIview,
124 NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
128 /** Specialization for Error dialog
132 template <class GUIview, class GUIbc>
134 public GUI<ControlError, GUIview, OkCancelPolicy, GUIbc> {
137 GUIError(LyXView & lv, Dialogs & d)
138 : GUI<ControlError, GUIview, OkCancelPolicy, GUIbc>(lv, d) {}
142 /** Specialization for External dialog
144 class ControlExternal;
146 template <class GUIview, class GUIbc>
148 public GUI<ControlExternal, GUIview, OkCancelReadOnlyPolicy, GUIbc> {
151 GUIExternal(LyXView & lv, Dialogs & d)
152 : GUI<ControlExternal, GUIview, OkCancelReadOnlyPolicy, GUIbc>(lv, d) {}
156 /** Specialization for Graphics dialog
158 class ControlGraphics;
160 template <class GUIview, class GUIbc>
162 public GUI<ControlGraphics, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
165 GUIGraphics(LyXView & lv, Dialogs & d)
166 : GUI<ControlGraphics, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
170 /** Specialization for Include dialog
172 class ControlInclude;
174 template <class GUIview, class GUIbc>
176 public GUI<ControlInclude, GUIview, OkCancelReadOnlyPolicy, GUIbc> {
179 GUIInclude(LyXView & lv, Dialogs & d)
180 : GUI<ControlInclude, GUIview, OkCancelReadOnlyPolicy, GUIbc>(lv, d) {}
184 /** Specialization for Index dialog
188 template <class GUIview, class GUIbc>
190 public GUI<ControlIndex, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
193 GUIIndex(LyXView & lv, Dialogs & d)
194 : GUI<ControlIndex, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
198 /** Specialization for Log dialog
202 template <class GUIview, class GUIbc>
204 public GUI<ControlLog, GUIview, OkCancelPolicy, GUIbc> {
207 GUILog(LyXView & lv, Dialogs & d)
208 : GUI<ControlLog, GUIview, OkCancelPolicy, GUIbc>(lv, d) {}
212 /** Specialization for Minipage dialog
214 class ControlMinipage;
216 template <class GUIview, class GUIbc>
218 public GUI<ControlMinipage, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
221 GUIMinipage(LyXView & lv, Dialogs & d)
222 : GUI<ControlMinipage, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
226 /** Specialization for Float dialog
230 template <class GUIview, class GUIbc>
232 public GUI<ControlFloat, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
235 GUIFloat(LyXView & lv, Dialogs & d)
236 : GUI<ControlFloat, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
240 /** Specialization for Preamble dialog
242 class ControlPreamble;
244 template <class GUIview, class GUIbc>
246 public GUI<ControlPreamble, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
249 GUIPreamble(LyXView & lv, Dialogs & d)
250 : GUI<ControlPreamble, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
254 /** Specialization for Print dialog
258 template <class GUIview, class GUIbc>
260 public GUI<ControlPrint, GUIview, OkApplyCancelPolicy, GUIbc> {
263 GUIPrint(LyXView & lv, Dialogs & d)
264 : GUI<ControlPrint, GUIview, OkApplyCancelPolicy, GUIbc>(lv, d) {}
268 /** Specialization for Ref dialog
272 template <class GUIview, class GUIbc>
274 public GUI<ControlRef, GUIview, NoRepeatedApplyPolicy, GUIbc> {
277 GUIRef(LyXView & lv, Dialogs & d)
278 : GUI<ControlRef, GUIview, NoRepeatedApplyPolicy, GUIbc>(lv, d) {}
282 /** Specialization for Search dialog
286 template <class GUIview, class GUIbc>
288 public GUI<ControlSearch, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
291 GUISearch(LyXView & lv, Dialogs & d)
292 : GUI<ControlSearch, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
295 /** Specialization for Spellchecker dialog
297 class ControlSpellchecker;
299 template <class GUIview, class GUIbc>
300 class GUISpellchecker :
301 public GUI<ControlSpellchecker, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
304 GUISpellchecker(LyXView & lv, Dialogs & d)
305 : GUI<ControlSpellchecker, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
308 /** Specialization for Toc dialog
312 template <class GUIview, class GUIbc>
314 public GUI<ControlToc, GUIview, OkCancelPolicy, GUIbc> {
317 GUIToc(LyXView & lv, Dialogs & d)
318 : GUI<ControlToc, GUIview, OkCancelPolicy, GUIbc>(lv, d) {}
322 /** Specialization for TabularCreate dialog
324 class ControlTabularCreate;
326 template <class GUIview, class GUIbc>
327 class GUITabularCreate :
328 public GUI<ControlTabularCreate, GUIview,
329 OkApplyCancelReadOnlyPolicy, GUIbc> {
332 GUITabularCreate(LyXView & lv, Dialogs & d)
333 : GUI<ControlTabularCreate, GUIview,
334 OkApplyCancelReadOnlyPolicy, GUIbc>(lv, d) {}
338 /** Specialization for TabularCreate dialog
340 class ControlThesaurus;
342 template <class GUIview, class GUIbc>
344 public GUI<ControlThesaurus, GUIview,
345 OkApplyCancelReadOnlyPolicy, GUIbc> {
348 GUIThesaurus(LyXView & lv, Dialogs & d)
349 : GUI<ControlThesaurus, GUIview,
350 OkApplyCancelReadOnlyPolicy, GUIbc>(lv, d) {}
354 /** Specialization for Url dialog
358 template <class GUIview, class GUIbc>
360 public GUI<ControlUrl, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
363 GUIUrl(LyXView & lv, Dialogs & d)
364 : GUI<ControlUrl, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
368 /** Specialization for VCLog dialog
372 template <class GUIview, class GUIbc>
374 public GUI<ControlVCLog, GUIview, OkCancelPolicy, GUIbc> {
377 GUIVCLog(LyXView & lv, Dialogs & d)
378 : GUI<ControlVCLog, GUIview, OkCancelPolicy, GUIbc>(lv, d) {}