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 "ControlPreamble.h"
26 #include "FormPreamble.h"
27 #include "forms/form_preamble.h"
29 #include "ControlPrefs.h"
30 #include "FormPreferences.h"
31 #include "FormColorpicker.h"
32 #include "forms/form_preferences.h"
34 #include "ControlSpellchecker.h"
35 #include "FormSpellchecker.h"
36 #include "forms/form_spellchecker.h"
38 typedef GUI<ControlDocument, FormDocument, NoRepeatedApplyReadOnlyPolicy, xformsBC>
41 typedef GUI<ControlPreamble, FormPreamble, NoRepeatedApplyReadOnlyPolicy, xformsBC>
44 typedef GUI<ControlPrefs, FormPreferences, OkApplyCancelPolicy, xformsBC>
47 typedef GUI<ControlSpellchecker, FormSpellchecker, NoRepeatedApplyReadOnlyPolicy, xformsBC>
51 struct Dialogs::Impl {
52 Impl(LyXView & lv, Dialogs & d);
54 DocumentDialog document;
55 PreambleDialog preamble;
56 PreferencesDialog preferences;
57 SpellcheckerDialog spellchecker;
61 Dialogs::Impl::Impl(LyXView & lv, Dialogs & d)
69 void Dialogs::init_pimpl()
71 pimpl_ = new Impl(lyxview_, *this);
81 void Dialogs::showDocument()
83 pimpl_->document.controller().show();
87 void Dialogs::showPreamble()
89 pimpl_->preamble.controller().show();
93 void Dialogs::showPreferences()
95 pimpl_->preferences.controller().show();
99 void Dialogs::showSpellchecker()
101 pimpl_->spellchecker.controller().show();