]> git.lyx.org Git - lyx.git/blob - src/frontends/Dialogs.C
* Throw out DialogBase.h
[lyx.git] / src / frontends / Dialogs.C
1 /* This file is part of
2  * ======================================================
3  *
4  *           LyX, The Document Processor
5  *
6  *           Copyright 1995 Matthias Ettrich
7  *           Copyright 1995-2001 The LyX Team.
8  *
9  * ======================================================
10  *
11  * \file Dialogs.C
12  * \author Angus Leeming <a.leeming@ic.ac.uk>
13  *
14  * Methods common to all frontends' Dialogs that should not be inline
15  */
16
17 #include <config.h>
18
19 #ifdef __GNUG__
20 #pragma implementation
21 #endif
22
23 #include "Dialogs.h"
24
25 #include "support/LAssert.h"
26
27 #include "guiapi.h"
28
29 // Signal enabling all visible dialogs to be redrawn if so desired.
30 // E.g., when the GUI colours have been remapped.
31 //boost::signal0<void> Dialogs::redrawGUI;
32
33 extern LyXView * dialogs_lyxview;
34
35
36 // toggle tooltips on/off in all dialogs.
37 //boost::signal0<void> Dialogs::toggleTooltips;
38
39 void Dialogs::showAboutlyx()
40 {
41         gui_ShowAboutlyx(*dialogs_lyxview, *this);
42 }
43
44
45 void Dialogs::showBibitem(InsetCommand * ic)
46 {
47         gui_ShowBibitem(ic, *dialogs_lyxview, *this);
48 }
49
50
51 void Dialogs::showBibtex(InsetCommand * ic)
52 {
53         gui_ShowBibtex(ic, *dialogs_lyxview, *this);
54 }
55
56
57 void Dialogs::showCharacter()
58 {
59         gui_ShowCharacter(*dialogs_lyxview, *this);
60 }
61
62
63 void Dialogs::setUserFreeFont()
64 {
65         gui_SetUserFreeFont(*dialogs_lyxview, *this);
66 }
67
68
69 void Dialogs::showCitation(InsetCommand * ic)
70 {
71         gui_ShowCitation(ic, *dialogs_lyxview, *this);
72 }
73
74
75 void Dialogs::createCitation(string const & s)
76 {
77         gui_CreateCitation(s, *dialogs_lyxview, *this);
78 }
79
80
81 void Dialogs::showDocument()
82 {
83         gui_ShowDocument(*dialogs_lyxview, *this);
84 }
85
86
87 void Dialogs::showError(InsetError * ie)
88 {
89         gui_ShowError(ie, *dialogs_lyxview, *this);
90 }
91
92
93 void Dialogs::showERT(InsetERT * ie)
94 {
95         gui_ShowERT(ie, *dialogs_lyxview, *this);
96 }
97
98
99 void Dialogs::updateERT(InsetERT * ie)
100 {
101         gui_UpdateERT(ie, *dialogs_lyxview, *this);
102 }
103
104
105 void Dialogs::showExternal(InsetExternal * ie)
106 {
107         gui_ShowExternal(ie, *dialogs_lyxview, *this);
108 }
109
110
111 void Dialogs::showFile(string const & f)
112 {
113         gui_ShowFile(f, *dialogs_lyxview, *this);
114 }
115
116
117 void Dialogs::showFloat(InsetFloat * ifl)
118 {
119         gui_ShowFloat(ifl, *dialogs_lyxview, *this);
120 }
121
122
123 void Dialogs::showForks()
124 {
125         gui_ShowForks(*dialogs_lyxview, *this);
126 }
127
128
129 void Dialogs::showGraphics(InsetGraphics * ig)
130 {
131         gui_ShowGraphics(ig, *dialogs_lyxview, *this);
132 }
133
134
135 void Dialogs::showInclude(InsetInclude * ii)
136 {
137         gui_ShowInclude(ii, *dialogs_lyxview, *this);
138 }
139
140
141 void Dialogs::showIndex(InsetCommand * ic)
142 {
143         gui_ShowIndex(ic, *dialogs_lyxview, *this);
144 }
145
146
147 void Dialogs::createIndex()
148 {
149         gui_CreateIndex(*dialogs_lyxview, *this);
150 }
151
152
153 void Dialogs::showLogFile()
154 {
155         gui_ShowLogFile(*dialogs_lyxview, *this);
156 }
157
158
159 void Dialogs::showMathPanel()
160 {
161         gui_ShowMathPanel(*dialogs_lyxview, *this);
162 }
163
164
165 void Dialogs::showMinipage(InsetMinipage * im)
166 {
167         gui_ShowMinipage(im, *dialogs_lyxview, *this);
168 }
169
170
171 void Dialogs::updateMinipage(InsetMinipage * im)
172 {
173         gui_UpdateMinipage(im, *dialogs_lyxview, *this);
174 }
175
176
177 void Dialogs::showParagraph()
178 {
179         gui_ShowParagraph(*dialogs_lyxview, *this);
180 }
181
182
183 void Dialogs::showPreamble()
184 {
185         gui_ShowPreamble(*dialogs_lyxview, *this);
186 }
187
188
189 void Dialogs::showPreferences()
190 {
191         gui_ShowPreferences(*dialogs_lyxview, *this);
192 }
193
194
195 void Dialogs::showPrint()
196 {
197         gui_ShowPrint(*dialogs_lyxview, *this);
198 }
199
200
201 void Dialogs::showRef(InsetCommand * ic)
202 {
203         gui_ShowRef(ic, *dialogs_lyxview, *this);
204 }
205
206
207 void Dialogs::createRef(string const & s)
208 {
209         gui_CreateRef(s, *dialogs_lyxview, *this);
210 }
211
212
213 void Dialogs::showSearch()
214 {
215         gui_ShowSearch(*dialogs_lyxview, *this);
216 }
217
218
219 void Dialogs::showSendto()
220 {
221         gui_ShowSendto(*dialogs_lyxview, *this);
222 }
223
224
225 void Dialogs::showSpellchecker()
226 {
227         gui_ShowSpellchecker(*dialogs_lyxview, *this);
228 }
229
230
231 void Dialogs::showTabular(InsetTabular * it)
232 {
233         gui_ShowTabular(it, *dialogs_lyxview, *this);
234 }
235
236
237 void Dialogs::updateTabular(InsetTabular * it)
238 {
239         gui_UpdateTabular(it, *dialogs_lyxview, *this);
240 }
241
242
243 void Dialogs::showTabularCreate()
244 {
245         gui_ShowTabularCreate(*dialogs_lyxview, *this);
246 }
247
248
249 void Dialogs::showThesaurus(string const & s)
250 {
251         gui_ShowThesaurus(s, *dialogs_lyxview, *this);
252 }
253
254
255 void Dialogs::showTexinfo()
256 {
257         gui_ShowTexinfo(*dialogs_lyxview, *this);
258 }
259
260
261 void Dialogs::showTOC(InsetCommand * ic)
262 {
263         gui_ShowTOC(ic, *dialogs_lyxview, *this);
264 }
265
266
267 void Dialogs::createTOC(string const & s)
268 {
269         gui_CreateTOC(s, *dialogs_lyxview, *this);
270 }
271
272
273 void Dialogs::showUrl(InsetCommand * ic)
274 {
275         gui_ShowUrl(ic, *dialogs_lyxview, *this);
276 }
277
278
279 void Dialogs::createUrl(string const & s)
280 {
281         gui_CreateUrl(s, *dialogs_lyxview, *this);
282 }
283
284
285 void Dialogs::showVCLogFile()
286 {
287         gui_ShowVCLogFile(*dialogs_lyxview, *this);
288 }
289
290
291 //void Dialogs::add(DialogBase * ptr)
292 //{
293 //      lyx::Assert(ptr);
294 //      dialogs_.push_back(db_ptr(ptr));
295 //}