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