]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/Dialogs2.C
Brand new qt document dialog. Not finished yet though. TODO is updated and lists
[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         pimpl_->document.controller().show();
66 }
67
68
69 void Dialogs::showError(InsetError * ie)
70 {
71         pimpl_->error.controller().showInset(ie);
72 }
73
74
75 void Dialogs::showERT(InsetERT * ie)
76 {
77         pimpl_->ert.controller().showInset(ie);
78 }
79
80
81 void Dialogs::updateERT(InsetERT * ie)
82 {
83         pimpl_->ert.controller().showInset(ie);
84 }
85
86
87 void Dialogs::showExternal(InsetExternal * ie)
88 {
89         pimpl_->external.controller().showInset(ie);
90 }
91
92
93 void Dialogs::showFile(string const & f)
94 {
95         pimpl_->file.controller().showFile(f);
96 }
97
98
99 void Dialogs::showFloat(InsetFloat * ifl)
100 {
101         pimpl_->floats.controller().showInset(ifl);
102 }
103
104
105 void Dialogs::showForks()
106 {}
107
108
109 void Dialogs::showGraphics(InsetGraphics * ig)
110 {
111         pimpl_->graphics.controller().showInset(ig);
112 }
113
114
115 void Dialogs::showInclude(InsetInclude * ii)
116 {
117         pimpl_->include.controller().showInset(ii);
118 }
119
120
121 void Dialogs::showIndex(InsetCommand * ic)
122 {
123         pimpl_->index.controller().showInset(ic);
124 }
125
126
127 void Dialogs::createIndex()
128 {
129         pimpl_->index.controller().createInset(string());
130 }
131
132
133 void Dialogs::showLogFile()
134 {
135         pimpl_->logfile.controller().show();
136 }
137
138
139 void Dialogs::showMathPanel()
140 {
141         // FIXME FIXME FIXME
142         extern void createMathPanel();
143
144         createMathPanel();
145 }
146
147
148 void Dialogs::showMinipage(InsetMinipage * im)
149 {
150         pimpl_->minipage.controller().showInset(im);
151 }
152
153
154 void Dialogs::updateMinipage(InsetMinipage * im)
155 {
156         pimpl_->minipage.controller().showInset(im);
157 }
158
159
160 void Dialogs::showParagraph()
161 {
162         pimpl_->paragraph.controller().show();
163 }
164
165
166 void Dialogs::updateParagraph()
167 {
168         pimpl_->paragraph.controller().changedParagraph();
169 }
170
171
172 void Dialogs::showPreamble()
173 {
174         pimpl_->document.controller().showPreamble();
175 }
176
177
178 void Dialogs::showPreferences()
179 {}
180
181
182 void Dialogs::showPrint()
183 {
184         pimpl_->print.controller().show();
185 }
186
187
188 void Dialogs::showRef(InsetCommand * ic)
189 {
190         pimpl_->ref.controller().showInset(ic);
191 }
192
193
194 void Dialogs::createRef(string const & s)
195 {
196         pimpl_->ref.controller().createInset(s);
197 }
198
199
200 void Dialogs::showSearch()
201 {
202         pimpl_->search.controller().show();
203 }
204
205
206 void Dialogs::showSendto()
207 {}
208
209
210 void Dialogs::showSpellchecker()
211 {
212         pimpl_->spellchecker.controller().show();
213 }
214
215
216 void Dialogs::showTabular(InsetTabular * it)
217 {}
218
219
220 void Dialogs::updateTabular(InsetTabular * it)
221 {}
222
223
224 void Dialogs::showTabularCreate()
225 {
226         pimpl_->tabularcreate.controller().show();
227 }
228
229
230 void Dialogs::showTexinfo()
231 {
232         pimpl_->texinfo.controller().show();
233 }
234
235
236 #ifdef HAVE_LIBAIKSAURUS
237
238 void Dialogs::showThesaurus(string const & s)
239 {
240         pimpl_->thesaurus.controller().showEntry(s);
241 }
242
243 #else
244
245 void Dialogs::showThesaurus(string const &)
246 {}
247
248 #endif
249
250
251 void Dialogs::showTOC(InsetCommand * ic)
252 {
253         pimpl_->toc.controller().showInset(ic);
254 }
255
256
257 void Dialogs::createTOC(string const & s)
258 {
259         pimpl_->toc.controller().createInset(s);
260 }
261
262
263 void Dialogs::showUrl(InsetCommand * ic)
264 {
265         pimpl_->url.controller().showInset(ic);
266 }
267
268
269 void Dialogs::createUrl(string const & s)
270 {
271         pimpl_->url.controller().createInset(s);
272 }
273
274
275 void Dialogs::showVCLogFile()
276 {
277         pimpl_->vclogfile.controller().show();
278 }
279
280
281 void Dialogs::showWrap(InsetWrap * iw)
282 {
283         pimpl_->wrap.controller().showInset(iw);
284 }