/**
* \file xforms/Dialogs.C
* Copyright 1995 Matthias Ettrich
- * Copyright 1995-2001 The LyX Team.
- * See the file COPYING.
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
- * \author Allan Rae, rae@lyx.org
+ * \author Allan Rae
+ * \author Angus Leeming
+ *
+ * Full author contact details are available in file CREDITS
*/
#include <config.h>
#pragma implementation
#endif
-#include "Dialogs.h"
-#include "Tooltips.h"
+#include "Dialogs_impl.h"
+
+Dialogs::Dialogs(LyXView & lv)
+ : pimpl_(new Impl(lv, *this))
+{
+ // reduce the number of connections needed in
+ // dialogs by a simple connection here.
+ hideAll.connect(hideBufferDependent);
+}
+
-LyXView * dialogs_lyxview;
+Dialogs::~Dialogs()
+{}
+
+
+void Dialogs::toggleTooltips()
+{
+ Tooltips::toggleEnabled();
+}
/// Are the tooltips on or off?
}
-Dialogs::Dialogs(LyXView * lv)
-{
-#if 1
- dialogs_lyxview = lv;
+Dialogs::Impl::Impl(LyXView & lv, Dialogs & d)
+ : aboutlyx(lv, d),
+ bibitem(lv, d),
+ bibtex(lv, d),
+ character(lv, d),
+ citation(lv, d),
+ document(lv, d),
+ error(lv, d),
+ ert(lv, d),
+ external(lv, d),
+ file(lv, d),
+ floats(lv, d),
+ forks(lv, d),
+ graphics(lv, d),
+ include(lv, d),
+ index(lv, d),
+ logfile(lv, d),
+ mathpanel(lv, d),
+ minipage(lv, d),
+ paragraph(lv, d),
+ preamble(lv, d),
+ preferences(lv, d),
+ print(lv, d),
+ ref(lv, d),
+ search(lv, d),
+ sendto(lv, d),
+ spellchecker(lv, d),
+ tabular(lv, d),
+ tabularcreate(lv, d),
+ texinfo(lv, d),
+
+#ifdef HAVE_LIBAIKSAURUS
+ thesaurus(lv, d),
#endif
- // reduce the number of connections needed in
- // dialogs by a simple connection here.
- hideAll.connect(hideBufferDependent);
-}
+
+ toc(lv, d),
+ url(lv, d),
+ vclogfile(lv, d),
+ wrap(lv, d)
+{}