// -*- C++ -*-
/**
- * \file Dialogs_impl.h
- * Copyright 1995-2002 The LyX Team.
- * See the file COPYING.
- * \author Angus Leeming <leeming@lyx.org>
+ * \file xforms/Dialogs_impl.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ * \author Angus Leeming
+ *
+ * Full author contact details are available in file CREDITS
*/
#ifndef DIALOGS_IMPL_H
#endif
#include "Dialogs.h"
-#include "GUI.h"
-
-#include <boost/scoped_ptr.hpp>
-
-
-class ControlAboutlyx;
-class ControlBibitem;
-class ControlBibtex;
-class ControlCharacter;
-class ControlCitation;
-class ControlError;
-class ControlERT;
-class ControlExternal;
-class ControlShowFile;
-class ControlFloat;
-class ControlForks;
-class ControlGraphics;
-class ControlInclude;
-class ControlIndex;
-class ControlLog;
-class ControlMinipage;
-class ControlParagraph;
-class ControlPreamble;
-class ControlPrint;
-class ControlRef;
-class ControlSearch;
-class ControlSendto;
-class ControlSpellchecker;
-class ControlTabularCreate;
-class ControlTexinfo;
-class ControlToc;
-class ControlUrl;
-class ControlVCLog;
-
-class FormAboutlyx;
-class FormBibitem;
-class FormBibtex;
-class FormCharacter;
-class FormCitation;
-class FormDocument;
-class FormError;
-class FormERT;
-class FormExternal;
-class FormShowFile;
-class FormFloat;
-class FormForks;
-class FormGraphics;
-class FormInclude;
-class FormIndex;
-class FormLog;
-class FormMathsPanel;
-class FormMinipage;
-class FormParagraph;
-class FormPreamble;
-class FormPreferences;
-class FormPrint;
-class FormRef;
-class FormSearch;
-class FormSendto;
-class FormSpellchecker;
-class FormTabular;
-class FormTabularCreate;
-class FormTexinfo;
-class FormToc;
-class FormUrl;
-class FormVCLog;
+#include "controllers/GUI.h"
+
+#include "Tooltips.h"
+#include "xformsBC.h"
+#include "combox.h"
+
+#include "ControlAboutlyx.h"
+#include "FormAboutlyx.h"
+#include "forms/form_aboutlyx.h"
+
+#include "ControlBibitem.h"
+#include "FormBibitem.h"
+#include "forms/form_bibitem.h"
+
+#include "ControlBibtex.h"
+#include "FormBibtex.h"
+#include "forms/form_bibtex.h"
+
+#include "FormBrowser.h"
+#include "forms/form_browser.h"
+
+#include "ControlCharacter.h"
+#include "FormCharacter.h"
+#include "forms/form_character.h"
+
+#include "ControlCitation.h"
+#include "FormCitation.h"
+#include "forms/form_citation.h"
+
+#include "ControlDocument.h"
+#include "FormDocument.h"
+#include "forms/form_document.h"
+
+#include "ControlError.h"
+#include "FormError.h"
+#include "forms/form_error.h"
+
+#include "ControlERT.h"
+#include "FormERT.h"
+#include "forms/form_ert.h"
+
+#include "ControlExternal.h"
+#include "FormExternal.h"
+#include "forms/form_external.h"
+
+#include "ControlFloat.h"
+#include "FormFloat.h"
+#include "forms/form_float.h"
+
+#include "ControlForks.h"
+#include "FormForks.h"
+#include "forms/form_forks.h"
+
+#include "ControlGraphics.h"
+#include "FormGraphics.h"
+#include "forms/form_graphics.h"
+
+#include "ControlInclude.h"
+#include "FormInclude.h"
+#include "forms/form_include.h"
+
+#include "ControlIndex.h"
+#include "FormIndex.h"
+#include "forms/form_index.h"
+
+#include "ControlLog.h"
+#include "FormLog.h"
+
+#include "ControlShowFile.h"
+#include "FormShowFile.h"
+
+#include "ControlMath.h"
+#include "FormMathsPanel.h"
+#include "forms/form_maths_panel.h"
+
+#include "ControlMinipage.h"
+#include "FormMinipage.h"
+#include "forms/form_minipage.h"
+
+#include "ControlParagraph.h"
+#include "FormParagraph.h"
+#include "forms/form_paragraph.h"
+
+#include "ControlPreamble.h"
+#include "FormPreamble.h"
+#include "forms/form_preamble.h"
+
+#include "ControlPrefs.h"
+#include "FormPreferences.h"
+#include "forms/form_preferences.h"
+
+#include "ControlPrint.h"
+#include "FormPrint.h"
+#include "forms/form_print.h"
+
+#include "ControlRef.h"
+#include "FormRef.h"
+#include "forms/form_ref.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"
+
+#include "ControlTabular.h"
+#include "FormTabular.h"
+#include "forms/form_tabular.h"
+
+#include "ControlTabularCreate.h"
+#include "FormTabularCreate.h"
+#include "forms/form_tabular_create.h"
+
+#include "ControlTexinfo.h"
+#include "FormTexinfo.h"
+#include "forms/form_texinfo.h"
#ifdef HAVE_LIBAIKSAURUS
-class ControlThesaurus;
-class FormThesaurus;
+#include "ControlThesaurus.h"
+#include "FormThesaurus.h"
+#include "forms/form_thesaurus.h"
#endif
-class OkCancelPolicy;
-class OkApplyCancelPolicy;
-class OkCancelReadOnlyPolicy;
-class OkApplyCancelReadOnlyPolicy;
-class NoRepeatedApplyReadOnlyPolicy;
-class xformsBC;
+#include "ControlToc.h"
+#include "FormToc.h"
+#include "forms/form_toc.h"
+
+#include "ControlUrl.h"
+#include "FormUrl.h"
+#include "forms/form_url.h"
+
+#include "ControlVCLog.h"
+#include "FormVCLog.h"
+
+#include "ControlWrap.h"
+#include "FormWrap.h"
+#include "forms/form_wrap.h"
typedef GUI<ControlAboutlyx, FormAboutlyx, OkCancelPolicy, xformsBC>
typedef GUI<ControlBibitem, FormBibitem, OkCancelReadOnlyPolicy, xformsBC>
BibitemDialog;
-typedef GUI<ControlBibtex, FormBibtex, OkCancelReadOnlyPolicy, xformsBC>
+typedef GUI<ControlBibtex, FormBibtex, NoRepeatedApplyReadOnlyPolicy, xformsBC>
BibtexDialog;
-typedef GUI<ControlCharacter, FormCharacter,
- OkApplyCancelReadOnlyPolicy, xformsBC>
+typedef GUI<ControlCharacter, FormCharacter, OkApplyCancelReadOnlyPolicy, xformsBC>
CharacterDialog;
-typedef GUI<ControlCitation, FormCitation,
- NoRepeatedApplyReadOnlyPolicy, xformsBC>
+typedef GUI<ControlCitation, FormCitation, NoRepeatedApplyReadOnlyPolicy, xformsBC>
CitationDialog;
-typedef FormDocument DocumentDialog;
+typedef GUI<ControlDocument, FormDocument, NoRepeatedApplyReadOnlyPolicy, xformsBC>
+DocumentDialog;
typedef GUI<ControlError, FormError, OkCancelPolicy, xformsBC>
ErrorDialog;
typedef GUI<ControlERT, FormERT, NoRepeatedApplyReadOnlyPolicy, xformsBC>
ERTDialog;
-typedef GUI<ControlExternal, FormExternal,
- OkApplyCancelReadOnlyPolicy, xformsBC>
+typedef GUI<ControlExternal, FormExternal, OkApplyCancelReadOnlyPolicy, xformsBC>
ExternalDialog;
typedef GUI<ControlShowFile, FormShowFile, OkCancelPolicy, xformsBC>
typedef GUI<ControlForks, FormForks, OkApplyCancelPolicy, xformsBC>
ForksDialog;
-typedef GUI<ControlGraphics, FormGraphics,
- NoRepeatedApplyReadOnlyPolicy, xformsBC>
+typedef GUI<ControlGraphics, FormGraphics, NoRepeatedApplyReadOnlyPolicy, xformsBC>
GraphicsDialog;
typedef GUI<ControlInclude, FormInclude, OkCancelReadOnlyPolicy, xformsBC>
typedef GUI<ControlLog, FormLog, OkCancelPolicy, xformsBC>
LogFileDialog;
-typedef FormMathsPanel MathPanelDialog;
+typedef GUI<ControlMath, FormMathsPanel, OkCancelReadOnlyPolicy, xformsBC>
+MathPanelDialog;
-typedef GUI<ControlMinipage, FormMinipage,
- NoRepeatedApplyReadOnlyPolicy, xformsBC>
+typedef GUI<ControlMinipage, FormMinipage, NoRepeatedApplyReadOnlyPolicy, xformsBC>
MinipageDialog;
-typedef GUI<ControlParagraph, FormParagraph,
- OkApplyCancelReadOnlyPolicy, xformsBC>
+typedef GUI<ControlParagraph, FormParagraph, OkApplyCancelReadOnlyPolicy, xformsBC>
ParagraphDialog;
-typedef GUI<ControlPreamble, FormPreamble,
- NoRepeatedApplyReadOnlyPolicy, xformsBC>
+typedef GUI<ControlPreamble, FormPreamble, NoRepeatedApplyReadOnlyPolicy, xformsBC>
PreambleDialog;
-typedef FormPreferences PreferencesDialog;
+typedef GUI<ControlPrefs, FormPreferences, OkApplyCancelPolicy, xformsBC>
+PreferencesDialog;
typedef GUI<ControlPrint, FormPrint, OkApplyCancelPolicy, xformsBC>
PrintDialog;
typedef GUI<ControlSendto, FormSendto, OkApplyCancelPolicy, xformsBC>
SendtoDialog;
-typedef GUI<ControlSpellchecker, FormSpellchecker,
- NoRepeatedApplyReadOnlyPolicy, xformsBC>
+typedef GUI<ControlSpellchecker, FormSpellchecker, NoRepeatedApplyReadOnlyPolicy, xformsBC>
SpellcheckerDialog;
-typedef FormTabular TabularDialog;
+typedef GUI<ControlTabular, FormTabular, NoRepeatedApplyReadOnlyPolicy, xformsBC>
+TabularDialog;
-typedef GUI<ControlTabularCreate, FormTabularCreate,
- OkApplyCancelReadOnlyPolicy, xformsBC>
+typedef GUI<ControlTabularCreate, FormTabularCreate, OkApplyCancelReadOnlyPolicy, xformsBC>
TabularCreateDialog;
typedef GUI<ControlTexinfo, FormTexinfo, OkCancelPolicy, xformsBC>
TexinfoDialog;
#ifdef HAVE_LIBAIKSAURUS
-typedef GUI<ControlThesaurus, FormThesaurus,
- OkApplyCancelReadOnlyPolicy, xformsBC>
+typedef GUI<ControlThesaurus, FormThesaurus, OkApplyCancelReadOnlyPolicy, xformsBC>
ThesaurusDialog;
#endif
typedef GUI<ControlVCLog, FormVCLog, OkCancelPolicy, xformsBC>
VCLogFileDialog;
+typedef GUI<ControlWrap, FormWrap, NoRepeatedApplyReadOnlyPolicy, xformsBC>
+WrapDialog;
+
struct Dialogs::Impl {
- Impl(LyXView & lv, Dialogs & d) : lv_(lv), d_(d) {}
-
- template <typename T>
- T & dialog(boost::scoped_ptr<T> & var)
- {
- if (!var.get())
- var.reset(new T(lv_, d_));
- return *var;
- }
-
- boost::scoped_ptr<AboutlyxDialog> aboutlyx;
- boost::scoped_ptr<BibitemDialog> bibitem;
- boost::scoped_ptr<BibtexDialog> bibtex;
- boost::scoped_ptr<CharacterDialog> character;
- boost::scoped_ptr<CitationDialog> citation;
- boost::scoped_ptr<DocumentDialog> document;
- boost::scoped_ptr<ErrorDialog> error;
- boost::scoped_ptr<ERTDialog> ert;
- boost::scoped_ptr<ExternalDialog> external;
- boost::scoped_ptr<FileDialog> file;
- boost::scoped_ptr<FloatDialog> floats;
- boost::scoped_ptr<ForksDialog> forks;
- boost::scoped_ptr<GraphicsDialog> graphics;
- boost::scoped_ptr<IncludeDialog> include;
- boost::scoped_ptr<IndexDialog> index;
- boost::scoped_ptr<LogFileDialog> logfile;
- boost::scoped_ptr<MathPanelDialog> mathpanel;
- boost::scoped_ptr<MinipageDialog> minipage;
- boost::scoped_ptr<ParagraphDialog> paragraph;
- boost::scoped_ptr<PreambleDialog> preamble;
- boost::scoped_ptr<PreferencesDialog> preferences;
- boost::scoped_ptr<PrintDialog> print;
- boost::scoped_ptr<RefDialog> ref;
- boost::scoped_ptr<SearchDialog> search;
- boost::scoped_ptr<SendtoDialog> sendto;
- boost::scoped_ptr<SpellcheckerDialog> spellchecker;
- boost::scoped_ptr<TabularDialog> tabular;
- boost::scoped_ptr<TabularCreateDialog> tabularcreate;
- boost::scoped_ptr<TexinfoDialog> texinfo;
+ Impl(LyXView & lv, Dialogs & d);
+
+ AboutlyxDialog aboutlyx;
+ BibitemDialog bibitem;
+ BibtexDialog bibtex;
+ CharacterDialog character;
+ CitationDialog citation;
+ DocumentDialog document;
+ ErrorDialog error;
+ ERTDialog ert;
+ ExternalDialog external;
+ FileDialog file;
+ FloatDialog floats;
+ ForksDialog forks;
+ GraphicsDialog graphics;
+ IncludeDialog include;
+ IndexDialog index;
+ LogFileDialog logfile;
+ MathPanelDialog mathpanel;
+ MinipageDialog minipage;
+ ParagraphDialog paragraph;
+ PreambleDialog preamble;
+ PreferencesDialog preferences;
+ PrintDialog print;
+ RefDialog ref;
+ SearchDialog search;
+ SendtoDialog sendto;
+ SpellcheckerDialog spellchecker;
+ TabularDialog tabular;
+ TabularCreateDialog tabularcreate;
+ TexinfoDialog texinfo;
#ifdef HAVE_LIBAIKSAURUS
- boost::scoped_ptr<ThesaurusDialog> thesaurus;
+ ThesaurusDialog thesaurus;
#endif
- boost::scoped_ptr<TocDialog> toc;
- boost::scoped_ptr<UrlDialog> url;
- boost::scoped_ptr<VCLogFileDialog> vclogfile;
-
-private:
- LyXView & lv_;
- Dialogs & d_;
+ TocDialog toc;
+ UrlDialog url;
+ VCLogFileDialog vclogfile;
+ WrapDialog wrap;
};
#endif // DIALOGS_IMPL_H