2 * \file xforms/Dialogs2.C
3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
7 * \author Angus Leeming
9 * Full author contact details are available in file CREDITS
15 #include "controllers/GUI.h"
16 #include "ButtonController.h"
21 #include "ControlDocument.h"
22 #include "FormDocument.h"
23 #include "forms/form_document.h"
25 #include "ControlForks.h"
26 #include "FormForks.h"
27 #include "forms/form_forks.h"
29 #include "ControlPreamble.h"
30 #include "FormPreamble.h"
31 #include "forms/form_preamble.h"
33 #include "ControlPrefs.h"
34 #include "FormPreferences.h"
35 #include "FormColorpicker.h"
36 #include "forms/form_preferences.h"
38 #include "ControlPrint.h"
39 #include "FormPrint.h"
40 #include "forms/form_print.h"
42 #include "ControlSearch.h"
43 #include "FormSearch.h"
44 #include "forms/form_search.h"
46 #include "ControlSendto.h"
47 #include "FormSendto.h"
48 #include "forms/form_sendto.h"
50 #include "ControlSpellchecker.h"
51 #include "FormSpellchecker.h"
52 #include "forms/form_spellchecker.h"
54 typedef GUI<ControlDocument, FormDocument, NoRepeatedApplyReadOnlyPolicy, xformsBC>
57 typedef GUI<ControlForks, FormForks, OkApplyCancelPolicy, xformsBC>
60 typedef GUI<ControlPreamble, FormPreamble, NoRepeatedApplyReadOnlyPolicy, xformsBC>
63 typedef GUI<ControlPrefs, FormPreferences, OkApplyCancelPolicy, xformsBC>
66 typedef GUI<ControlPrint, FormPrint, OkApplyCancelPolicy, xformsBC>
69 typedef GUI<ControlSearch, FormSearch, NoRepeatedApplyReadOnlyPolicy, xformsBC>
72 typedef GUI<ControlSendto, FormSendto, OkApplyCancelPolicy, xformsBC>
75 typedef GUI<ControlSpellchecker, FormSpellchecker, NoRepeatedApplyReadOnlyPolicy, xformsBC>
79 struct Dialogs::Impl {
80 Impl(LyXView & lv, Dialogs & d);
82 DocumentDialog document;
84 PreambleDialog preamble;
85 PreferencesDialog preferences;
89 SpellcheckerDialog spellchecker;
93 Dialogs::Impl::Impl(LyXView & lv, Dialogs & d)
105 void Dialogs::init_pimpl()
107 pimpl_ = new Impl(lyxview_, *this);
117 void Dialogs::showDocument()
119 pimpl_->document.controller().show();
123 void Dialogs::showForks()
125 pimpl_->forks.controller().show();
129 void Dialogs::showPreamble()
131 pimpl_->preamble.controller().show();
135 void Dialogs::showPreferences()
137 pimpl_->preferences.controller().show();
141 void Dialogs::showPrint()
143 pimpl_->print.controller().show();
147 void Dialogs::showSearch()
149 pimpl_->search.controller().show();
153 void Dialogs::showSendto()
155 pimpl_->sendto.controller().show();
159 void Dialogs::showSpellchecker()
161 pimpl_->spellchecker.controller().show();