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 ERT dialog
146 template <class GUIview, class GUIbc>
148 public GUI<ControlERT, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
151 GUIERT(LyXView & lv, Dialogs & d)
152 : GUI<ControlERT, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
156 /** Specialization for External dialog
158 class ControlExternal;
160 template <class GUIview, class GUIbc>
162 public GUI<ControlExternal, GUIview, OkCancelReadOnlyPolicy, GUIbc> {
165 GUIExternal(LyXView & lv, Dialogs & d)
166 : GUI<ControlExternal, GUIview, OkCancelReadOnlyPolicy, GUIbc>(lv, d) {}
170 /** Specialization for Graphics dialog
172 class ControlGraphics;
174 template <class GUIview, class GUIbc>
176 public GUI<ControlGraphics, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
179 GUIGraphics(LyXView & lv, Dialogs & d)
180 : GUI<ControlGraphics, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
184 /** Specialization for Include dialog
186 class ControlInclude;
188 template <class GUIview, class GUIbc>
190 public GUI<ControlInclude, GUIview, OkCancelReadOnlyPolicy, GUIbc> {
193 GUIInclude(LyXView & lv, Dialogs & d)
194 : GUI<ControlInclude, GUIview, OkCancelReadOnlyPolicy, GUIbc>(lv, d) {}
198 /** Specialization for Index dialog
202 template <class GUIview, class GUIbc>
204 public GUI<ControlIndex, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
207 GUIIndex(LyXView & lv, Dialogs & d)
208 : GUI<ControlIndex, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
212 /** Specialization for Log dialog
216 template <class GUIview, class GUIbc>
218 public GUI<ControlLog, GUIview, OkCancelPolicy, GUIbc> {
221 GUILog(LyXView & lv, Dialogs & d)
222 : GUI<ControlLog, GUIview, OkCancelPolicy, GUIbc>(lv, d) {}
226 /** Specialization for Minipage dialog
228 class ControlMinipage;
230 template <class GUIview, class GUIbc>
232 public GUI<ControlMinipage, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
235 GUIMinipage(LyXView & lv, Dialogs & d)
236 : GUI<ControlMinipage, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
240 /** Specialization for Float dialog
244 template <class GUIview, class GUIbc>
246 public GUI<ControlFloat, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
249 GUIFloat(LyXView & lv, Dialogs & d)
250 : GUI<ControlFloat, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
254 /** Specialization for Preamble dialog
256 class ControlPreamble;
258 template <class GUIview, class GUIbc>
260 public GUI<ControlPreamble, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
263 GUIPreamble(LyXView & lv, Dialogs & d)
264 : GUI<ControlPreamble, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
268 /** Specialization for Print dialog
272 template <class GUIview, class GUIbc>
274 public GUI<ControlPrint, GUIview, OkApplyCancelPolicy, GUIbc> {
277 GUIPrint(LyXView & lv, Dialogs & d)
278 : GUI<ControlPrint, GUIview, OkApplyCancelPolicy, GUIbc>(lv, d) {}
282 /** Specialization for Ref dialog
286 template <class GUIview, class GUIbc>
288 public GUI<ControlRef, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
291 GUIRef(LyXView & lv, Dialogs & d)
292 : GUI<ControlRef, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
296 /** Specialization for Search dialog
300 template <class GUIview, class GUIbc>
302 public GUI<ControlSearch, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
305 GUISearch(LyXView & lv, Dialogs & d)
306 : GUI<ControlSearch, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
309 /** Specialization for Spellchecker dialog
311 class ControlSpellchecker;
313 template <class GUIview, class GUIbc>
314 class GUISpellchecker :
315 public GUI<ControlSpellchecker, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
318 GUISpellchecker(LyXView & lv, Dialogs & d)
319 : GUI<ControlSpellchecker, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
322 /** Specialization for Toc dialog
326 template <class GUIview, class GUIbc>
328 public GUI<ControlToc, GUIview, OkCancelPolicy, GUIbc> {
331 GUIToc(LyXView & lv, Dialogs & d)
332 : GUI<ControlToc, GUIview, OkCancelPolicy, GUIbc>(lv, d) {}
336 /** Specialization for TabularCreate dialog
338 class ControlTabularCreate;
340 template <class GUIview, class GUIbc>
341 class GUITabularCreate :
342 public GUI<ControlTabularCreate, GUIview,
343 OkApplyCancelReadOnlyPolicy, GUIbc> {
346 GUITabularCreate(LyXView & lv, Dialogs & d)
347 : GUI<ControlTabularCreate, GUIview,
348 OkApplyCancelReadOnlyPolicy, GUIbc>(lv, d) {}
352 /** Specialization for Thesaurus dialog
354 class ControlThesaurus;
356 template <class GUIview, class GUIbc>
358 public GUI<ControlThesaurus, GUIview,
359 OkApplyCancelReadOnlyPolicy, GUIbc> {
362 GUIThesaurus(LyXView & lv, Dialogs & d)
363 : GUI<ControlThesaurus, GUIview,
364 OkApplyCancelReadOnlyPolicy, GUIbc>(lv, d) {}
368 /** Specialization for Url dialog
372 template <class GUIview, class GUIbc>
374 public GUI<ControlUrl, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
377 GUIUrl(LyXView & lv, Dialogs & d)
378 : GUI<ControlUrl, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
382 /** Specialization for VCLog dialog
386 template <class GUIview, class GUIbc>
388 public GUI<ControlVCLog, GUIview, OkCancelPolicy, GUIbc> {
391 GUIVCLog(LyXView & lv, Dialogs & d)
392 : GUI<ControlVCLog, GUIview, OkCancelPolicy, GUIbc>(lv, d) {}