/** * \file xforms/Dialogs2.C * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * * \author Allan Rae * \author Angus Leeming * * Full author contact details are available in file CREDITS. */ #include #include "Dialogs.h" #include "controllers/GUI.h" #include "ButtonController.h" #include "xformsBC.h" #include "ControlDocument.h" #include "FormDocument.h" #include "forms/form_document.h" #include "ControlForks.h" #include "FormForks.h" #include "forms/form_forks.h" #include "ControlPreamble.h" #include "FormPreamble.h" #include "forms/form_preamble.h" #include "ControlPrefs.h" #include "FormPreferences.h" #include "FormColorpicker.h" #include "forms/form_preferences.h" #include "ControlPrint.h" #include "FormPrint.h" #include "forms/form_print.h" #include "ControlSearch.h" #include "FormSearch.h" #include "forms/form_search.h" #include "ControlSendto.h" #include "FormSendto.h" #include "forms/form_sendto.h" #include "ControlSpellchecker.h" #include "FormSpellchecker.h" #include "forms/form_spellchecker.h" typedef GUI DocumentDialog; typedef GUI ForksDialog; typedef GUI PreambleDialog; typedef GUI PreferencesDialog; typedef GUI PrintDialog; typedef GUI SearchDialog; typedef GUI SendtoDialog; typedef GUI SpellcheckerDialog; struct Dialogs::Impl { Impl(LyXView & lv, Dialogs & d); DocumentDialog document; ForksDialog forks; PreambleDialog preamble; PreferencesDialog preferences; PrintDialog print; SearchDialog search; SendtoDialog sendto; SpellcheckerDialog spellchecker; }; Dialogs::Impl::Impl(LyXView & lv, Dialogs & d) : document(lv, d), forks(lv, d), preamble(lv, d), preferences(lv, d), print(lv, d), search(lv, d), sendto(lv, d), spellchecker(lv, d) {} void Dialogs::init_pimpl() { pimpl_ = new Impl(lyxview_, *this); } Dialogs::~Dialogs() { delete pimpl_; } void Dialogs::showDocument() { pimpl_->document.controller().show(); } void Dialogs::showForks() { pimpl_->forks.controller().show(); } void Dialogs::showPreamble() { pimpl_->preamble.controller().show(); } void Dialogs::showPreferences() { pimpl_->preferences.controller().show(); } void Dialogs::showPrint() { pimpl_->print.controller().show(); } void Dialogs::showSearch() { pimpl_->search.controller().show(); } void Dialogs::showSendto() { pimpl_->sendto.controller().show(); } void Dialogs::showSpellchecker() { pimpl_->spellchecker.controller().show(); }