]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/GUI.h
Remove old splash dialog(s).
[lyx.git] / src / frontends / controllers / GUI.h
1 // -*- C++ -*-
2 /**
3  * \file GUI.h
4  * Copyright 2001 The LyX Team.
5  * See the file COPYING.
6  *
7  * \author Angus Leeming <a.leeming@ic.ac.uk>
8  */
9
10 #ifndef GUI_H
11 #define GUI_H
12
13 /** This class instantiates and makes available the GUI-specific
14     ButtonController and View.
15  */
16 template <class Controller, class GUIview, class Policy, class GUIbc>
17 class GUI : public Controller {
18 public:
19         ///
20         GUI(LyXView & lv, Dialogs & d) : Controller(lv, d), view_(*this) {}
21         ///
22         virtual ButtonControllerBase & bc() { return bc_; }
23         ///
24         virtual ViewBase & view() { return view_; }
25
26 private:
27         ///
28         ButtonController<Policy, GUIbc> bc_;
29         ///
30         GUIview view_;
31 };
32
33 /// Forward declaration of ButtonPolicies
34 class OkCancelPolicy;
35 class OkCancelReadOnlyPolicy;
36 class NoRepeatedApplyReadOnlyPolicy;
37
38 /** Specialization for About LyX dialog
39  */
40 class ControlAboutlyx;
41
42 template <class GUIview, class GUIbc>
43 class GUIAboutlyx :
44         public GUI<ControlAboutlyx, GUIview, OkCancelPolicy, GUIbc> {
45 public:
46         ///
47         GUIAboutlyx(LyXView & lv, Dialogs & d)
48                 : GUI<ControlAboutlyx, GUIview, OkCancelPolicy, GUIbc>(lv, d) {}
49 };
50
51 /** Specialization for Bibitem dialog
52  */
53 class ControlBibitem;
54
55 template <class GUIview, class GUIbc>
56 class GUIBibitem :
57         public GUI<ControlBibitem, GUIview, OkCancelReadOnlyPolicy, GUIbc> {
58 public:
59         ///
60         GUIBibitem(LyXView & lv, Dialogs & d)
61                 : GUI<ControlBibitem, GUIview, OkCancelReadOnlyPolicy, GUIbc>(lv, d) {}
62 };
63
64
65 /** Specialization for Bibtex dialog
66  */
67 class ControlBibtex;
68
69 template <class GUIview, class GUIbc>
70 class GUIBibtex :
71         public GUI<ControlBibtex, GUIview, OkCancelReadOnlyPolicy, GUIbc> {
72 public:
73         ///
74         GUIBibtex(LyXView & lv, Dialogs & d)
75                 : GUI<ControlBibtex, GUIview, OkCancelReadOnlyPolicy, GUIbc>(lv, d) {}
76 };
77
78
79 /** Specialization for Character dialog
80  */
81 class ControlCharacter;
82
83 template <class GUIview, class GUIbc>
84 class GUICharacter : public GUI<ControlCharacter, GUIview,
85                                 OkApplyCancelReadOnlyPolicy, GUIbc>
86 {
87 public:
88         ///
89         GUICharacter(LyXView & lv, Dialogs & d)
90                 : GUI<ControlCharacter, GUIview,
91                       OkApplyCancelReadOnlyPolicy, GUIbc>(lv, d) {}
92 };
93
94
95 /** Specialization for Citation dialog
96  */
97 class ControlCitation;
98
99 template <class GUIview, class GUIbc>
100 class GUICitation : public GUI<ControlCitation, GUIview,
101                                NoRepeatedApplyReadOnlyPolicy, GUIbc>
102 {
103 public:
104         ///
105         GUICitation(LyXView & lv, Dialogs & d)
106                 : GUI<ControlCitation, GUIview,
107                       NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
108 };
109
110
111 /** Specialization for Error dialog
112  */
113 class ControlError;
114
115 template <class GUIview, class GUIbc>
116 class GUIError :
117         public GUI<ControlError, GUIview, OkCancelPolicy, GUIbc> {
118 public:
119         ///
120         GUIError(LyXView & lv, Dialogs & d)
121                 : GUI<ControlError, GUIview, OkCancelPolicy, GUIbc>(lv, d) {}
122 };
123
124
125 /** Specialization for ERT dialog
126  */
127 class ControlERT;
128
129 template <class GUIview, class GUIbc>
130 class GUIERT :
131         public GUI<ControlERT, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
132 public:
133         ///
134         GUIERT(LyXView & lv, Dialogs & d)
135                 : GUI<ControlERT, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
136 };
137
138
139 /** Specialization for External dialog
140  */
141 class ControlExternal;
142
143 template <class GUIview, class GUIbc>
144 class GUIExternal :
145         public GUI<ControlExternal, GUIview, OkApplyCancelReadOnlyPolicy, GUIbc> {
146 public:
147         ///
148         GUIExternal(LyXView & lv, Dialogs & d)
149                 : GUI<ControlExternal, GUIview, OkApplyCancelReadOnlyPolicy, GUIbc>(lv, d) {}
150 };
151
152
153 /** Specialization for Graphics dialog
154  */
155 class ControlGraphics;
156
157 template <class GUIview, class GUIbc>
158 class GUIGraphics :
159         public GUI<ControlGraphics, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
160 public:
161         ///
162         GUIGraphics(LyXView & lv, Dialogs & d)
163                 : GUI<ControlGraphics, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
164 };
165
166
167 /** Specialization for Include dialog
168  */
169 class ControlInclude;
170
171 template <class GUIview, class GUIbc>
172 class GUIInclude :
173         public GUI<ControlInclude, GUIview, OkCancelReadOnlyPolicy, GUIbc> {
174 public:
175         ///
176         GUIInclude(LyXView & lv, Dialogs & d)
177                 : GUI<ControlInclude, GUIview, OkCancelReadOnlyPolicy, GUIbc>(lv, d) {}
178 };
179
180
181 /** Specialization for Index dialog
182  */
183 class ControlIndex;
184
185 template <class GUIview, class GUIbc>
186 class GUIIndex :
187         public GUI<ControlIndex, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
188 public:
189         ///
190         GUIIndex(LyXView & lv, Dialogs & d)
191                 : GUI<ControlIndex, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
192 };
193
194
195 /** Specialization for Log dialog
196  */
197 class ControlLog;
198
199 template <class GUIview, class GUIbc>
200 class GUILog :
201         public GUI<ControlLog, GUIview, OkCancelPolicy, GUIbc> {
202 public:
203         ///
204         GUILog(LyXView & lv, Dialogs & d)
205                 : GUI<ControlLog, GUIview, OkCancelPolicy, GUIbc>(lv, d) {}
206 };
207
208
209 /** Specialization for Minipage dialog
210  */
211 class ControlMinipage;
212
213 template <class GUIview, class GUIbc>
214 class GUIMinipage :
215         public GUI<ControlMinipage, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
216 public:
217         ///
218         GUIMinipage(LyXView & lv, Dialogs & d)
219                 : GUI<ControlMinipage, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
220 };
221
222
223 /** Specialization for Float dialog
224  */
225 class ControlFloat;
226
227 template <class GUIview, class GUIbc>
228 class GUIFloat :
229         public GUI<ControlFloat, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
230 public:
231         ///
232         GUIFloat(LyXView & lv, Dialogs & d)
233                 : GUI<ControlFloat, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
234 };
235
236
237 /** Specialization for Preamble dialog
238  */
239 class ControlPreamble;
240
241 template <class GUIview, class GUIbc>
242 class GUIPreamble :
243         public GUI<ControlPreamble, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
244 public:
245         ///
246         GUIPreamble(LyXView & lv, Dialogs & d)
247                 : GUI<ControlPreamble, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
248 };
249
250
251 /** Specialization for Print dialog
252  */
253 class ControlPrint;
254
255 template <class GUIview, class GUIbc>
256 class GUIPrint :
257         public GUI<ControlPrint, GUIview, OkApplyCancelPolicy, GUIbc> {
258 public:
259         ///
260         GUIPrint(LyXView & lv, Dialogs & d)
261                 : GUI<ControlPrint, GUIview, OkApplyCancelPolicy, GUIbc>(lv, d) {}
262 };
263
264
265 /** Specialization for Ref dialog
266  */
267 class ControlRef;
268
269 template <class GUIview, class GUIbc>
270 class GUIRef :
271         public GUI<ControlRef, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
272 public:
273         ///
274         GUIRef(LyXView & lv, Dialogs & d)
275                 : GUI<ControlRef, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
276 };
277
278
279 /** Specialization for Search dialog
280  */
281 class ControlSearch;
282
283 template <class GUIview, class GUIbc>
284 class GUISearch :
285         public GUI<ControlSearch, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
286 public:
287         ///
288         GUISearch(LyXView & lv, Dialogs & d)
289                 : GUI<ControlSearch, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
290 };
291
292 /** Specialization for Spellchecker dialog
293  */
294 class ControlSpellchecker;
295
296 template <class GUIview, class GUIbc>
297 class GUISpellchecker :
298         public GUI<ControlSpellchecker, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
299 public:
300         ///
301         GUISpellchecker(LyXView & lv, Dialogs & d)
302                 : GUI<ControlSpellchecker, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
303 };
304
305 /** Specialization for Toc dialog
306  */
307 class ControlToc;
308
309 template <class GUIview, class GUIbc>
310 class GUIToc :
311         public GUI<ControlToc, GUIview, OkCancelPolicy, GUIbc> {
312 public:
313         ///
314         GUIToc(LyXView & lv, Dialogs & d)
315                 : GUI<ControlToc, GUIview, OkCancelPolicy, GUIbc>(lv, d) {}
316 };
317
318
319 /** Specialization for TabularCreate dialog
320  */
321 class ControlTabularCreate;
322
323 template <class GUIview, class GUIbc>
324 class GUITabularCreate :
325         public GUI<ControlTabularCreate, GUIview,
326                    OkApplyCancelReadOnlyPolicy, GUIbc> {
327 public:
328         ///
329         GUITabularCreate(LyXView & lv, Dialogs & d)
330                 : GUI<ControlTabularCreate, GUIview,
331                       OkApplyCancelReadOnlyPolicy, GUIbc>(lv, d) {}
332 };
333
334
335 /** Specialization for Thesaurus dialog
336  */
337 class ControlThesaurus;
338
339 template <class GUIview, class GUIbc>
340 class GUIThesaurus :
341         public GUI<ControlThesaurus, GUIview,
342                    OkApplyCancelReadOnlyPolicy, GUIbc> {
343 public:
344         ///
345         GUIThesaurus(LyXView & lv, Dialogs & d)
346                 : GUI<ControlThesaurus, GUIview,
347                       OkApplyCancelReadOnlyPolicy, GUIbc>(lv, d) {}
348 };
349
350  
351 /** Specialization for Url dialog
352  */
353 class ControlUrl;
354
355 template <class GUIview, class GUIbc>
356 class GUIUrl :
357         public GUI<ControlUrl, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
358 public:
359         ///
360         GUIUrl(LyXView & lv, Dialogs & d)
361             : GUI<ControlUrl, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
362 };
363
364
365 /** Specialization for VCLog dialog
366  */
367 class ControlVCLog;
368
369 template <class GUIview, class GUIbc>
370 class GUIVCLog :
371         public GUI<ControlVCLog, GUIview, OkCancelPolicy, GUIbc> {
372 public:
373         ///
374         GUIVCLog(LyXView & lv, Dialogs & d)
375             : GUI<ControlVCLog, GUIview, OkCancelPolicy, GUIbc>(lv, d) {}
376 };
377
378
379 #endif // GUI_H