2 * \file xforms/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.
8 * \author Angus Leeming
10 * Full author contact details are available in file CREDITS
16 #include "controllers/GUI.h"
17 #include "ButtonController.h"
22 #include "ControlDocument.h"
23 #include "FormDocument.h"
24 #include "forms/form_document.h"
26 #include "ControlForks.h"
27 #include "FormForks.h"
28 #include "forms/form_forks.h"
30 #include "ControlMath.h"
31 #include "FormMathsPanel.h"
32 #include "forms/form_maths_panel.h"
34 #include "ControlPreamble.h"
35 #include "FormPreamble.h"
36 #include "forms/form_preamble.h"
38 #include "ControlPrefs.h"
39 #include "FormPreferences.h"
40 #include "forms/form_preferences.h"
42 #include "ControlPrint.h"
43 #include "FormPrint.h"
44 #include "forms/form_print.h"
46 #include "ControlSearch.h"
47 #include "FormSearch.h"
48 #include "forms/form_search.h"
50 #include "ControlSendto.h"
51 #include "FormSendto.h"
52 #include "forms/form_sendto.h"
54 #include "ControlSpellchecker.h"
55 #include "FormSpellchecker.h"
56 #include "forms/form_spellchecker.h"
58 #include "ControlTexinfo.h"
59 #include "FormTexinfo.h"
60 #include "forms/form_texinfo.h"
62 typedef GUI<ControlDocument, FormDocument, NoRepeatedApplyReadOnlyPolicy, xformsBC>
65 typedef GUI<ControlForks, FormForks, OkApplyCancelPolicy, xformsBC>
68 typedef GUI<ControlMath, FormMathsPanel, OkCancelReadOnlyPolicy, xformsBC>
71 typedef GUI<ControlPreamble, FormPreamble, NoRepeatedApplyReadOnlyPolicy, xformsBC>
74 typedef GUI<ControlPrefs, FormPreferences, OkApplyCancelPolicy, xformsBC>
77 typedef GUI<ControlPrint, FormPrint, OkApplyCancelPolicy, xformsBC>
80 typedef GUI<ControlSearch, FormSearch, NoRepeatedApplyReadOnlyPolicy, xformsBC>
83 typedef GUI<ControlSendto, FormSendto, OkApplyCancelPolicy, xformsBC>
86 typedef GUI<ControlSpellchecker, FormSpellchecker, NoRepeatedApplyReadOnlyPolicy, xformsBC>
89 typedef GUI<ControlTexinfo, FormTexinfo, OkCancelPolicy, xformsBC>
92 struct Dialogs::Impl {
93 Impl(LyXView & lv, Dialogs & d);
95 DocumentDialog document;
97 MathPanelDialog mathpanel;
98 PreambleDialog preamble;
99 PreferencesDialog preferences;
103 SpellcheckerDialog spellchecker;
104 TexinfoDialog texinfo;
108 Dialogs::Impl::Impl(LyXView & lv, Dialogs & d)
122 void Dialogs::init_pimpl()
124 pimpl_ = new Impl(lyxview_, *this);
134 void Dialogs::showDocument()
136 pimpl_->document.controller().show();
140 void Dialogs::showForks()
142 pimpl_->forks.controller().show();
146 void Dialogs::showMathPanel()
148 pimpl_->mathpanel.controller().show();
152 void Dialogs::showPreamble()
154 pimpl_->preamble.controller().show();
158 void Dialogs::showPreferences()
160 pimpl_->preferences.controller().show();
164 void Dialogs::showPrint()
166 pimpl_->print.controller().show();
170 void Dialogs::showSearch()
172 pimpl_->search.controller().show();
176 void Dialogs::showSendto()
178 pimpl_->sendto.controller().show();
182 void Dialogs::showSpellchecker()
184 pimpl_->spellchecker.controller().show();
188 void Dialogs::showTexinfo()
190 pimpl_->texinfo.controller().show();