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"
20 #include "ControlDocument.h"
21 #include "FormDocument.h"
22 #include "forms/form_document.h"
24 #include "ControlForks.h"
25 #include "FormForks.h"
26 #include "forms/form_forks.h"
28 #include "ControlPreamble.h"
29 #include "FormPreamble.h"
30 #include "forms/form_preamble.h"
32 #include "ControlPrefs.h"
33 #include "FormPreferences.h"
34 #include "FormColorpicker.h"
35 #include "forms/form_preferences.h"
37 #include "ControlPrint.h"
38 #include "FormPrint.h"
39 #include "forms/form_print.h"
41 #include "ControlSearch.h"
42 #include "FormSearch.h"
43 #include "forms/form_search.h"
45 #include "ControlSendto.h"
46 #include "FormSendto.h"
47 #include "forms/form_sendto.h"
49 #include "ControlSpellchecker.h"
50 #include "FormSpellchecker.h"
51 #include "forms/form_spellchecker.h"
53 typedef GUI<ControlDocument, FormDocument, NoRepeatedApplyReadOnlyPolicy, xformsBC>
56 typedef GUI<ControlForks, FormForks, OkApplyCancelPolicy, xformsBC>
59 typedef GUI<ControlPreamble, FormPreamble, NoRepeatedApplyReadOnlyPolicy, xformsBC>
62 typedef GUI<ControlPrefs, FormPreferences, OkApplyCancelPolicy, xformsBC>
65 typedef GUI<ControlPrint, FormPrint, OkApplyCancelPolicy, xformsBC>
68 typedef GUI<ControlSearch, FormSearch, NoRepeatedApplyReadOnlyPolicy, xformsBC>
71 typedef GUI<ControlSendto, FormSendto, OkApplyCancelPolicy, xformsBC>
74 typedef GUI<ControlSpellchecker, FormSpellchecker, NoRepeatedApplyReadOnlyPolicy, xformsBC>
78 struct Dialogs::Impl {
79 Impl(LyXView & lv, Dialogs & d);
81 DocumentDialog document;
83 PreambleDialog preamble;
84 PreferencesDialog preferences;
88 SpellcheckerDialog spellchecker;
92 Dialogs::Impl::Impl(LyXView & lv, Dialogs & d)
104 void Dialogs::init_pimpl()
106 pimpl_ = new Impl(lyxview_, *this);
116 void Dialogs::showDocument()
118 pimpl_->document.controller().show();
122 void Dialogs::showForks()
124 pimpl_->forks.controller().show();
128 void Dialogs::showPreamble()
130 pimpl_->preamble.controller().show();
134 void Dialogs::showPreferences()
136 pimpl_->preferences.controller().show();
140 void Dialogs::showPrint()
142 pimpl_->print.controller().show();
146 void Dialogs::showSearch()
148 pimpl_->search.controller().show();
152 void Dialogs::showSendto()
154 pimpl_->sendto.controller().show();
158 void Dialogs::showSpellchecker()
160 pimpl_->spellchecker.controller().show();