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;
56 /** Specialization for Bibitem dialog
60 template <class GUIview, class GUIbc>
62 public GUI<ControlBibitem, GUIview, OkCancelReadOnlyPolicy, GUIbc> {
65 GUIBibitem(LyXView & lv, Dialogs & d)
66 : GUI<ControlBibitem, GUIview, OkCancelReadOnlyPolicy, GUIbc>(lv, d) {}
70 /** Specialization for Bibtex dialog
74 template <class GUIview, class GUIbc>
76 public GUI<ControlBibtex, GUIview, OkCancelReadOnlyPolicy, GUIbc> {
79 GUIBibtex(LyXView & lv, Dialogs & d)
80 : GUI<ControlBibtex, GUIview, OkCancelReadOnlyPolicy, GUIbc>(lv, d) {}
84 /** Specialization for Character dialog
86 class ControlCharacter;
88 template <class GUIview, class GUIbc>
89 class GUICharacter : public GUI<ControlCharacter, GUIview,
90 OkApplyCancelReadOnlyPolicy, GUIbc>
94 GUICharacter(LyXView & lv, Dialogs & d)
95 : GUI<ControlCharacter, GUIview,
96 OkApplyCancelReadOnlyPolicy, GUIbc>(lv, d) {}
100 /** Specialization for Citation dialog
102 class ControlCitation;
104 template <class GUIview, class GUIbc>
105 class GUICitation : public GUI<ControlCitation, GUIview,
106 NoRepeatedApplyReadOnlyPolicy, GUIbc>
110 GUICitation(LyXView & lv, Dialogs & d)
111 : GUI<ControlCitation, GUIview,
112 NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
116 /** Specialization for Copyright dialog
118 class ControlCopyright;
120 template <class GUIview, class GUIbc>
122 public GUI<ControlCopyright, GUIview, OkCancelPolicy, GUIbc> {
125 GUICopyright(LyXView & lv, Dialogs & d)
126 : GUI<ControlCopyright, GUIview, OkCancelPolicy, GUIbc>(lv, d) {}
130 /** Specialization for Credits dialog
132 class ControlCredits;
134 template <class GUIview, class GUIbc>
136 public GUI<ControlCredits, GUIview, OkCancelPolicy, GUIbc> {
139 GUICredits(LyXView & lv, Dialogs & d)
140 : GUI<ControlCredits, GUIview, OkCancelPolicy, GUIbc>(lv, d) {}
144 /** Specialization for Error dialog
148 template <class GUIview, class GUIbc>
150 public GUI<ControlError, GUIview, OkCancelPolicy, GUIbc> {
153 GUIError(LyXView & lv, Dialogs & d)
154 : GUI<ControlError, GUIview, OkCancelPolicy, GUIbc>(lv, d) {}
158 /** Specialization for External dialog
160 class ControlExternal;
162 template <class GUIview, class GUIbc>
164 public GUI<ControlExternal, GUIview, OkCancelReadOnlyPolicy, GUIbc> {
167 GUIExternal(LyXView & lv, Dialogs & d)
168 : GUI<ControlExternal, GUIview, OkCancelReadOnlyPolicy, GUIbc>(lv, d) {}
172 /** Specialization for Graphics dialog
174 class ControlGraphics;
176 template <class GUIview, class GUIbc>
178 public GUI<ControlGraphics, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
181 GUIGraphics(LyXView & lv, Dialogs & d)
182 : GUI<ControlGraphics, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
186 /** Specialization for Include dialog
188 class ControlInclude;
190 template <class GUIview, class GUIbc>
192 public GUI<ControlInclude, GUIview, OkCancelReadOnlyPolicy, GUIbc> {
195 GUIInclude(LyXView & lv, Dialogs & d)
196 : GUI<ControlInclude, GUIview, OkCancelReadOnlyPolicy, GUIbc>(lv, d) {}
200 /** Specialization for Index dialog
204 template <class GUIview, class GUIbc>
206 public GUI<ControlIndex, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
209 GUIIndex(LyXView & lv, Dialogs & d)
210 : GUI<ControlIndex, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
214 /** Specialization for Log dialog
218 template <class GUIview, class GUIbc>
220 public GUI<ControlLog, GUIview, OkCancelPolicy, GUIbc> {
223 GUILog(LyXView & lv, Dialogs & d)
224 : GUI<ControlLog, GUIview, OkCancelPolicy, GUIbc>(lv, d) {}
228 /** Specialization for Minipage dialog
230 class ControlMinipage;
232 template <class GUIview, class GUIbc>
234 public GUI<ControlMinipage, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
237 GUIMinipage(LyXView & lv, Dialogs & d)
238 : GUI<ControlMinipage, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
242 /** Specialization for Preamble dialog
244 class ControlPreamble;
246 template <class GUIview, class GUIbc>
248 public GUI<ControlPreamble, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
251 GUIPreamble(LyXView & lv, Dialogs & d)
252 : GUI<ControlPreamble, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
256 /** Specialization for Print dialog
260 template <class GUIview, class GUIbc>
262 public GUI<ControlPrint, GUIview, OkApplyCancelPolicy, GUIbc> {
265 GUIPrint(LyXView & lv, Dialogs & d)
266 : GUI<ControlPrint, GUIview, OkApplyCancelPolicy, GUIbc>(lv, d) {}
270 /** Specialization for Ref dialog
274 template <class GUIview, class GUIbc>
276 public GUI<ControlRef, GUIview, NoRepeatedApplyPolicy, GUIbc> {
279 GUIRef(LyXView & lv, Dialogs & d)
280 : GUI<ControlRef, GUIview, NoRepeatedApplyPolicy, GUIbc>(lv, d) {}
284 /** Specialization for Search dialog
288 template <class GUIview, class GUIbc>
290 public GUI<ControlSearch, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
293 GUISearch(LyXView & lv, Dialogs & d)
294 : GUI<ControlSearch, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
298 /** Specialization for Toc dialog
302 template <class GUIview, class GUIbc>
304 public GUI<ControlToc, GUIview, OkCancelPolicy, GUIbc> {
307 GUIToc(LyXView & lv, Dialogs & d)
308 : GUI<ControlToc, GUIview, OkCancelPolicy, GUIbc>(lv, d) {}
312 /** Specialization for TabularCreate dialog
314 class ControlTabularCreate;
316 template <class GUIview, class GUIbc>
317 class GUITabularCreate :
318 public GUI<ControlTabularCreate, GUIview,
319 OkApplyCancelReadOnlyPolicy, GUIbc> {
322 GUITabularCreate(LyXView & lv, Dialogs & d)
323 : GUI<ControlTabularCreate, GUIview,
324 OkApplyCancelReadOnlyPolicy, GUIbc>(lv, d) {}
328 /** Specialization for Url dialog
332 template <class GUIview, class GUIbc>
334 public GUI<ControlUrl, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
337 GUIUrl(LyXView & lv, Dialogs & d)
338 : GUI<ControlUrl, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
342 /** Specialization for VCLog dialog
346 template <class GUIview, class GUIbc>
348 public GUI<ControlVCLog, GUIview, OkCancelPolicy, GUIbc> {
351 GUIVCLog(LyXView & lv, Dialogs & d)
352 : GUI<ControlVCLog, GUIview, OkCancelPolicy, GUIbc>(lv, d) {}