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 Copyright dialog
117 class ControlCopyright;
119 template <class GUIview, class GUIbc>
121 public GUI<ControlCopyright, GUIview, OkCancelPolicy, GUIbc> {
124 GUICopyright(LyXView & lv, Dialogs & d)
125 : GUI<ControlCopyright, GUIview, OkCancelPolicy, GUIbc>(lv, d) {}
129 /** Specialization for Credits dialog
131 class ControlCredits;
133 template <class GUIview, class GUIbc>
135 public GUI<ControlCredits, GUIview, OkCancelPolicy, GUIbc> {
138 GUICredits(LyXView & lv, Dialogs & d)
139 : GUI<ControlCredits, GUIview, OkCancelPolicy, GUIbc>(lv, d) {}
143 /** Specialization for Error dialog
147 template <class GUIview, class GUIbc>
149 public GUI<ControlError, GUIview, OkCancelPolicy, GUIbc> {
152 GUIError(LyXView & lv, Dialogs & d)
153 : GUI<ControlError, GUIview, OkCancelPolicy, GUIbc>(lv, d) {}
157 /** Specialization for External dialog
159 class ControlExternal;
161 template <class GUIview, class GUIbc>
163 public GUI<ControlExternal, GUIview, OkCancelReadOnlyPolicy, GUIbc> {
166 GUIExternal(LyXView & lv, Dialogs & d)
167 : GUI<ControlExternal, GUIview, OkCancelReadOnlyPolicy, GUIbc>(lv, d) {}
171 /** Specialization for Graphics dialog
173 class ControlGraphics;
175 template <class GUIview, class GUIbc>
177 public GUI<ControlGraphics, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
180 GUIGraphics(LyXView & lv, Dialogs & d)
181 : GUI<ControlGraphics, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
185 /** Specialization for Include dialog
187 class ControlInclude;
189 template <class GUIview, class GUIbc>
191 public GUI<ControlInclude, GUIview, OkCancelReadOnlyPolicy, GUIbc> {
194 GUIInclude(LyXView & lv, Dialogs & d)
195 : GUI<ControlInclude, GUIview, OkCancelReadOnlyPolicy, GUIbc>(lv, d) {}
199 /** Specialization for Index dialog
203 template <class GUIview, class GUIbc>
205 public GUI<ControlIndex, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
208 GUIIndex(LyXView & lv, Dialogs & d)
209 : GUI<ControlIndex, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
213 /** Specialization for Log dialog
217 template <class GUIview, class GUIbc>
219 public GUI<ControlLog, GUIview, OkCancelPolicy, GUIbc> {
222 GUILog(LyXView & lv, Dialogs & d)
223 : GUI<ControlLog, GUIview, OkCancelPolicy, GUIbc>(lv, d) {}
227 /** Specialization for Minipage dialog
229 class ControlMinipage;
231 template <class GUIview, class GUIbc>
233 public GUI<ControlMinipage, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
236 GUIMinipage(LyXView & lv, Dialogs & d)
237 : GUI<ControlMinipage, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
241 /** Specialization for Preamble dialog
243 class ControlPreamble;
245 template <class GUIview, class GUIbc>
247 public GUI<ControlPreamble, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
250 GUIPreamble(LyXView & lv, Dialogs & d)
251 : GUI<ControlPreamble, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
255 /** Specialization for Print dialog
259 template <class GUIview, class GUIbc>
261 public GUI<ControlPrint, GUIview, OkApplyCancelPolicy, GUIbc> {
264 GUIPrint(LyXView & lv, Dialogs & d)
265 : GUI<ControlPrint, GUIview, OkApplyCancelPolicy, GUIbc>(lv, d) {}
269 /** Specialization for Ref dialog
273 template <class GUIview, class GUIbc>
275 public GUI<ControlRef, GUIview, NoRepeatedApplyPolicy, GUIbc> {
278 GUIRef(LyXView & lv, Dialogs & d)
279 : GUI<ControlRef, GUIview, NoRepeatedApplyPolicy, GUIbc>(lv, d) {}
283 /** Specialization for Search dialog
287 template <class GUIview, class GUIbc>
289 public GUI<ControlSearch, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
292 GUISearch(LyXView & lv, Dialogs & d)
293 : GUI<ControlSearch, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
297 /** Specialization for Toc dialog
301 template <class GUIview, class GUIbc>
303 public GUI<ControlToc, GUIview, OkCancelPolicy, GUIbc> {
306 GUIToc(LyXView & lv, Dialogs & d)
307 : GUI<ControlToc, GUIview, OkCancelPolicy, GUIbc>(lv, d) {}
311 /** Specialization for TabularCreate dialog
313 class ControlTabularCreate;
315 template <class GUIview, class GUIbc>
316 class GUITabularCreate :
317 public GUI<ControlTabularCreate, GUIview,
318 OkApplyCancelReadOnlyPolicy, GUIbc> {
321 GUITabularCreate(LyXView & lv, Dialogs & d)
322 : GUI<ControlTabularCreate, GUIview,
323 OkApplyCancelReadOnlyPolicy, GUIbc>(lv, d) {}
327 /** Specialization for Url dialog
331 template <class GUIview, class GUIbc>
333 public GUI<ControlUrl, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
336 GUIUrl(LyXView & lv, Dialogs & d)
337 : GUI<ControlUrl, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
341 /** Specialization for VCLog dialog
345 template <class GUIview, class GUIbc>
347 public GUI<ControlVCLog, GUIview, OkCancelPolicy, GUIbc> {
350 GUIVCLog(LyXView & lv, Dialogs & d)
351 : GUI<ControlVCLog, GUIview, OkCancelPolicy, GUIbc>(lv, d) {}