]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/Dialogs2.C
The dialogs/guiapi re-working.
[lyx.git] / src / frontends / xforms / 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 #include "combox.h"
20
21 #include "ControlAboutlyx.h"
22 #include "FormAboutlyx.h"
23 #include "forms/form_aboutlyx.h"
24
25 #include "ControlBibitem.h"
26 #include "FormBibitem.h"
27 #include "forms/form_bibitem.h"
28
29 #include "ControlBibtex.h"
30 #include "FormBibtex.h"
31 #include "forms/form_bibtex.h"
32
33 #include "FormBrowser.h"
34 #include "forms/form_browser.h"
35
36 #include "ControlCharacter.h"
37 #include "FormCharacter.h"
38 #include "forms/form_character.h"
39
40 #include "ControlCitation.h"
41 #include "FormCitation.h"
42 #include "forms/form_citation.h"
43
44 #include "FormDocument.h"
45 #include "forms/form_document.h"
46
47 #include "ControlError.h"
48 #include "FormError.h"
49 #include "forms/form_error.h"
50
51 #include "ControlERT.h"
52 #include "FormERT.h"
53 #include "forms/form_ert.h"
54
55 #include "ControlExternal.h"
56 #include "FormExternal.h"
57 #include "forms/form_external.h"
58
59 #include "ControlFloat.h"
60 #include "FormFloat.h"
61 #include "forms/form_float.h"
62
63 #include "ControlForks.h"
64 #include "FormForks.h"
65 #include "forms/form_forks.h"
66
67 #include "ControlGraphics.h"
68 #include "FormGraphics.h"
69 #include "forms/form_graphics.h"
70
71 #include "ControlInclude.h"
72 #include "FormInclude.h"
73 #include "forms/form_include.h"
74
75 #include "ControlIndex.h"
76 #include "FormIndex.h"
77 #include "forms/form_index.h"
78
79 #include "ControlLog.h"
80 #include "FormLog.h"
81
82 #include "ControlShowFile.h"
83 #include "FormShowFile.h"
84
85
86 void Dialogs::showAboutlyx()
87 {
88         pimpl_->dialog(pimpl_->aboutlyx).controller().show();
89 }
90
91
92 void Dialogs::showBibitem(InsetCommand * ic)
93 {
94         pimpl_->dialog(pimpl_->bibitem).controller().showInset(ic);
95 }
96
97
98 void Dialogs::showBibtex(InsetCommand * ic)
99 {
100         pimpl_->dialog(pimpl_->bibtex).controller().showInset(ic);
101 }
102
103
104 void Dialogs::showCharacter()
105 {
106         pimpl_->dialog(pimpl_->character).controller().show();
107 }
108
109
110 void Dialogs::setUserFreeFont()
111 {
112         pimpl_->dialog(pimpl_->character).controller().apply();
113 }
114
115
116 void Dialogs::showCitation(InsetCommand * ic)
117 {
118         pimpl_->dialog(pimpl_->citation).controller().showInset(ic);
119 }
120
121
122 void Dialogs::createCitation(string const & s)
123 {
124         pimpl_->dialog(pimpl_->citation).controller().createInset(s);
125 }
126
127
128 void Dialogs::showDocument()
129 {
130         pimpl_->dialog(pimpl_->document).show();
131 }
132
133
134 void Dialogs::showError(InsetError * ie)
135 {
136         pimpl_->dialog(pimpl_->error).controller().showInset(ie);
137 }
138
139
140 void Dialogs::showERT(InsetERT * ie)
141 {
142         pimpl_->dialog(pimpl_->ert).controller().showInset(ie);
143 }
144
145
146 void Dialogs::updateERT(InsetERT * ie)
147 {
148         pimpl_->dialog(pimpl_->ert).controller().showInset(ie);
149 }
150
151
152 void Dialogs::showExternal(InsetExternal * ie)
153 {
154         pimpl_->dialog(pimpl_->external).controller().showInset(ie);
155 }
156
157
158 void Dialogs::showFile(string const & f)
159 {
160         pimpl_->dialog(pimpl_->file).controller().showFile(f);
161 }
162
163
164 void Dialogs::showFloat(InsetFloat * ifl)
165 {
166         pimpl_->dialog(pimpl_->floats).controller().showInset(ifl);
167 }
168
169
170 void Dialogs::showForks()
171 {
172         pimpl_->dialog(pimpl_->forks).controller().show();
173 }
174
175
176 void Dialogs::showGraphics(InsetGraphics * ig)
177 {
178         pimpl_->dialog(pimpl_->graphics).controller().showInset(ig);
179 }
180
181
182 void Dialogs::showInclude(InsetInclude * ii)
183 {
184         pimpl_->dialog(pimpl_->include).controller().showInset(ii);
185 }
186
187
188 void Dialogs::showIndex(InsetCommand * ic)
189 {
190         pimpl_->dialog(pimpl_->index).controller().showInset(ic);
191 }
192
193
194 void Dialogs::createIndex()
195 {
196         pimpl_->dialog(pimpl_->index).controller().createInset(string());
197 }
198
199
200 void Dialogs::showLogFile()
201 {
202         pimpl_->dialog(pimpl_->logfile).controller().show();
203 }