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"
23 #include "ControlDocument.h"
24 #include "FormDocument.h"
25 #include "forms/form_document.h"
27 #include "ControlForks.h"
28 #include "FormForks.h"
29 #include "forms/form_forks.h"
31 #include "ControlMath.h"
32 #include "FormMathsPanel.h"
33 #include "forms/form_maths_panel.h"
35 #include "ControlPreamble.h"
36 #include "FormPreamble.h"
37 #include "forms/form_preamble.h"
39 #include "ControlPrefs.h"
40 #include "FormPreferences.h"
41 #include "forms/form_preferences.h"
43 #include "ControlPrint.h"
44 #include "FormPrint.h"
45 #include "forms/form_print.h"
47 #include "ControlSearch.h"
48 #include "FormSearch.h"
49 #include "forms/form_search.h"
51 #include "ControlSendto.h"
52 #include "FormSendto.h"
53 #include "forms/form_sendto.h"
55 #include "ControlSpellchecker.h"
56 #include "FormSpellchecker.h"
57 #include "forms/form_spellchecker.h"
59 #include "ControlTexinfo.h"
60 #include "FormTexinfo.h"
61 #include "forms/form_texinfo.h"
63 typedef GUI<ControlDocument, FormDocument, NoRepeatedApplyReadOnlyPolicy, xformsBC>
66 typedef GUI<ControlForks, FormForks, OkApplyCancelPolicy, xformsBC>
69 typedef GUI<ControlMath, FormMathsPanel, OkCancelReadOnlyPolicy, xformsBC>
72 typedef GUI<ControlPreamble, FormPreamble, NoRepeatedApplyReadOnlyPolicy, xformsBC>
75 typedef GUI<ControlPrefs, FormPreferences, OkApplyCancelPolicy, xformsBC>
78 typedef GUI<ControlPrint, FormPrint, OkApplyCancelPolicy, xformsBC>
81 typedef GUI<ControlSearch, FormSearch, NoRepeatedApplyReadOnlyPolicy, xformsBC>
84 typedef GUI<ControlSendto, FormSendto, OkApplyCancelPolicy, xformsBC>
87 typedef GUI<ControlSpellchecker, FormSpellchecker, NoRepeatedApplyReadOnlyPolicy, xformsBC>
90 typedef GUI<ControlTexinfo, FormTexinfo, OkCancelPolicy, xformsBC>
93 struct Dialogs::Impl {
94 Impl(LyXView & lv, Dialogs & d);
96 DocumentDialog document;
98 MathPanelDialog mathpanel;
99 PreambleDialog preamble;
100 PreferencesDialog preferences;
104 SpellcheckerDialog spellchecker;
105 TexinfoDialog texinfo;
109 Dialogs::Impl::Impl(LyXView & lv, Dialogs & d)
123 void Dialogs::init_pimpl()
125 pimpl_ = new Impl(lyxview_, *this);
135 void Dialogs::showDocument()
137 pimpl_->document.controller().show();
141 void Dialogs::showForks()
143 pimpl_->forks.controller().show();
147 void Dialogs::showMathPanel()
149 pimpl_->mathpanel.controller().show();
153 void Dialogs::showPreamble()
155 pimpl_->preamble.controller().show();
159 void Dialogs::showPreferences()
161 pimpl_->preferences.controller().show();
165 void Dialogs::showPrint()
167 pimpl_->print.controller().show();
171 void Dialogs::showSearch()
173 pimpl_->search.controller().show();
177 void Dialogs::showSendto()
179 pimpl_->sendto.controller().show();
183 void Dialogs::showSpellchecker()
185 pimpl_->spellchecker.controller().show();
189 void Dialogs::showTexinfo()
191 pimpl_->texinfo.controller().show();