]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/Dialogs2.C
build fixes
[lyx.git] / src / frontends / qt2 / Dialogs2.C
1 /**
2  * \file xforms/Dialogs.C
3  * Copyright 1995 Matthias Ettrich
4  * Copyright 1995-2001 The LyX Team.
5  * See the file COPYING.
6  *
7  * \author Allan Rae, rae@lyx.org
8  * \author Angus Leeming <leeming@lyx.org>
9  */
10
11 #include <config.h>
12
13 #ifdef __GNUG__
14 #pragma implementation
15 #endif
16
17 #include "Dialogs_impl.h"
18
19 void Dialogs::showAboutlyx()
20 {
21         pimpl_->aboutlyx.controller().show();
22 }
23
24
25 void Dialogs::showBibitem(InsetCommand * ic)
26 {
27         pimpl_->bibitem.controller().showInset(ic);
28 }
29
30
31 void Dialogs::showBibtex(InsetCommand * ic)
32 {
33         pimpl_->bibtex.controller().showInset(ic);
34 }
35
36
37 void Dialogs::showCharacter()
38 {
39         pimpl_->character.controller().show();
40 }
41
42
43 void Dialogs::setUserFreeFont()
44 {
45         pimpl_->character.controller().apply();
46 }
47
48
49 void Dialogs::showCitation(InsetCommand * ic)
50 {
51         pimpl_->citation.controller().showInset(ic);
52 }
53
54
55 void Dialogs::createCitation(string const & s)
56 {
57         pimpl_->citation.controller().createInset(s);
58 }
59
60
61 void Dialogs::showDocument()
62 {}
63
64
65 void Dialogs::showError(InsetError * ie)
66 {
67         pimpl_->error.controller().showInset(ie);
68 }
69
70
71 void Dialogs::showERT(InsetERT * ie)
72 {
73         pimpl_->ert.controller().showInset(ie);
74 }
75
76
77 void Dialogs::updateERT(InsetERT * ie)
78 {
79         pimpl_->ert.controller().showInset(ie);
80 }
81
82
83 void Dialogs::showExternal(InsetExternal * ie)
84 {
85         pimpl_->external.controller().showInset(ie);
86 }
87
88
89 void Dialogs::showFile(string const & f)
90 {
91         pimpl_->file.controller().showFile(f);
92 }
93
94
95 void Dialogs::showFloat(InsetFloat * ifl)
96 {
97         pimpl_->floats.controller().showInset(ifl);
98 }
99
100
101 void Dialogs::showForks()
102 {}
103
104
105 void Dialogs::showGraphics(InsetGraphics * ig)
106 {
107         pimpl_->graphics.controller().showInset(ig);
108 }
109
110
111 void Dialogs::showInclude(InsetInclude * ii)
112 {
113         pimpl_->include.controller().showInset(ii);
114 }
115
116
117 void Dialogs::showIndex(InsetCommand * ic)
118 {
119         pimpl_->index.controller().showInset(ic);
120 }
121
122
123 void Dialogs::createIndex()
124 {
125         pimpl_->index.controller().createInset(string());
126 }
127
128
129 void Dialogs::showLogFile()
130 {
131         pimpl_->logfile.controller().show();
132 }
133
134
135 void Dialogs::showMathPanel()
136 {
137         // FIXME FIXME FIXME
138         extern void createMathPanel();
139
140         createMathPanel();
141 }
142
143
144 void Dialogs::showMinipage(InsetMinipage * im)
145 {
146         pimpl_->minipage.controller().showInset(im);
147 }
148
149
150 void Dialogs::updateMinipage(InsetMinipage * im)
151 {
152         pimpl_->minipage.controller().showInset(im);
153 }
154
155
156 void Dialogs::showParagraph()
157 {
158         pimpl_->paragraph.controller().show();
159 }
160
161
162 void Dialogs::updateParagraph()
163 {
164         pimpl_->paragraph.controller().changedParagraph();
165 }
166
167
168 void Dialogs::showPreamble()
169 {
170         pimpl_->preamble.controller().show();
171 }
172
173
174 void Dialogs::showPreferences()
175 {}
176
177
178 void Dialogs::showPrint()
179 {
180         pimpl_->print.controller().show();
181 }
182
183
184 void Dialogs::showRef(InsetCommand * ic)
185 {
186         pimpl_->ref.controller().showInset(ic);
187 }
188
189
190 void Dialogs::createRef(string const & s)
191 {
192         pimpl_->ref.controller().createInset(s);
193 }
194
195
196 void Dialogs::showSearch()
197 {
198         pimpl_->search.controller().show();
199 }
200
201
202 void Dialogs::showSendto()
203 {}
204
205
206 void Dialogs::showSpellchecker()
207 {
208         pimpl_->spellchecker.controller().show();
209 }
210
211
212 void Dialogs::showTabular(InsetTabular * it)
213 {}
214
215
216 void Dialogs::updateTabular(InsetTabular * it)
217 {}
218
219
220 void Dialogs::showTabularCreate()
221 {
222         pimpl_->tabularcreate.controller().show();
223 }
224
225
226 void Dialogs::showTexinfo()
227 {
228         pimpl_->texinfo.controller().show();
229 }
230
231
232 #ifdef HAVE_LIBAIKSAURUS
233
234 void Dialogs::showThesaurus(string const & s)
235 {
236         pimpl_->thesaurus.controller().showEntry(s);
237 }
238
239 #else
240
241 void Dialogs::showThesaurus(string const &)
242 {}
243
244 #endif
245
246
247 void Dialogs::showTOC(InsetCommand * ic)
248 {
249         pimpl_->toc.controller().showInset(ic);
250 }
251
252
253 void Dialogs::createTOC(string const & s)
254 {
255         pimpl_->toc.controller().createInset(s);
256 }
257
258
259 void Dialogs::showUrl(InsetCommand * ic)
260 {
261         pimpl_->url.controller().showInset(ic);
262 }
263
264
265 void Dialogs::createUrl(string const & s)
266 {
267         pimpl_->url.controller().createInset(s);
268 }
269
270
271 void Dialogs::showVCLogFile()
272 {
273         pimpl_->vclogfile.controller().show();
274 }
275
276
277 void Dialogs::showWrap(InsetWrap * i)
278 {
279         // FIXME 
280