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"
19 #include "xforms_helpers.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 "ControlSendto.h"
43 #include "FormSendto.h"
44 #include "forms/form_sendto.h"
46 #include "ControlSpellchecker.h"
47 #include "FormSpellchecker.h"
48 #include "forms/form_spellchecker.h"
50 typedef GUI<ControlDocument, FormDocument, NoRepeatedApplyReadOnlyPolicy, xformsBC>
53 typedef GUI<ControlForks, FormForks, OkApplyCancelPolicy, xformsBC>
56 typedef GUI<ControlPreamble, FormPreamble, NoRepeatedApplyReadOnlyPolicy, xformsBC>
59 typedef GUI<ControlPrefs, FormPreferences, OkApplyCancelPolicy, xformsBC>
62 typedef GUI<ControlPrint, FormPrint, OkApplyCancelPolicy, xformsBC>
65 typedef GUI<ControlSendto, FormSendto, OkApplyCancelPolicy, xformsBC>
68 typedef GUI<ControlSpellchecker, FormSpellchecker, NoRepeatedApplyReadOnlyPolicy, xformsBC>
72 struct Dialogs::Impl {
73 Impl(LyXView & lv, Dialogs & d);
75 DocumentDialog document;
77 PreambleDialog preamble;
78 PreferencesDialog preferences;
81 SpellcheckerDialog spellchecker;
85 Dialogs::Impl::Impl(LyXView & lv, Dialogs & d)
96 void Dialogs::init_pimpl()
98 pimpl_ = new Impl(lyxview_, *this);
108 void Dialogs::showDocument()
110 pimpl_->document.controller().show();
114 void Dialogs::showForks()
116 pimpl_->forks.controller().show();
120 void Dialogs::showPreamble()
122 pimpl_->preamble.controller().show();
126 void Dialogs::showPreferences()
128 pimpl_->preferences.controller().show();
132 void Dialogs::showPrint()
134 pimpl_->print.controller().show();
138 void Dialogs::showSendto()
140 pimpl_->sendto.controller().show();
144 void Dialogs::showSpellchecker()
146 pimpl_->spellchecker.controller().show();