2002-03-11 17:00:41 +00:00
|
|
|
/**
|
2002-03-11 22:47:41 +00:00
|
|
|
* \file xforms/Dialogs.C
|
2002-03-11 17:00:41 +00:00
|
|
|
* Copyright 1995 Matthias Ettrich
|
|
|
|
* Copyright 1995-2001 The LyX Team.
|
|
|
|
* See the file COPYING.
|
2000-11-13 10:35:02 +00:00
|
|
|
*
|
2002-03-11 17:00:41 +00:00
|
|
|
* \author Allan Rae, rae@lyx.org
|
2002-08-15 17:48:53 +00:00
|
|
|
* \author Angus Leeming <leeming@lyx.org>
|
2000-11-13 10:35:02 +00:00
|
|
|
*/
|
|
|
|
|
2000-06-12 11:55:12 +00:00
|
|
|
#include <config.h>
|
2001-03-15 13:37:04 +00:00
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma implementation
|
|
|
|
#endif
|
2000-06-12 11:55:12 +00:00
|
|
|
|
2002-08-15 17:48:53 +00:00
|
|
|
#include "Dialogs_impl.h"
|
|
|
|
|
2002-06-18 15:44:30 +00:00
|
|
|
#include "Tooltips.h"
|
2002-08-15 17:48:53 +00:00
|
|
|
#include "xformsBC.h"
|
|
|
|
#include "combox.h"
|
2001-03-15 13:37:04 +00:00
|
|
|
|
2002-08-15 17:48:53 +00:00
|
|
|
#include "ControlAboutlyx.h"
|
|
|
|
#include "FormAboutlyx.h"
|
|
|
|
#include "forms/form_aboutlyx.h"
|
2002-08-12 14:28:43 +00:00
|
|
|
|
2002-08-15 17:48:53 +00:00
|
|
|
#include "ControlBibitem.h"
|
|
|
|
#include "FormBibitem.h"
|
|
|
|
#include "forms/form_bibitem.h"
|
2001-03-20 10:14:03 +00:00
|
|
|
|
2002-08-15 17:48:53 +00:00
|
|
|
#include "ControlBibtex.h"
|
|
|
|
#include "FormBibtex.h"
|
|
|
|
#include "forms/form_bibtex.h"
|
2002-03-11 09:54:42 +00:00
|
|
|
|
2002-08-15 17:48:53 +00:00
|
|
|
#include "FormBrowser.h"
|
|
|
|
#include "forms/form_browser.h"
|
2002-03-11 09:54:42 +00:00
|
|
|
|
2002-08-15 17:48:53 +00:00
|
|
|
#include "ControlCharacter.h"
|
|
|
|
#include "FormCharacter.h"
|
|
|
|
#include "forms/form_character.h"
|
2000-11-10 17:29:47 +00:00
|
|
|
|
2002-08-15 17:48:53 +00:00
|
|
|
#include "ControlCitation.h"
|
|
|
|
#include "FormCitation.h"
|
|
|
|
#include "forms/form_citation.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 "FormMathsBitmap.h"
|
|
|
|
|
|
|
|
#include "FormMathsPanel.h"
|
|
|
|
#include "forms/form_maths_panel.h"
|
|
|
|
|
|
|
|
#include "FormMathsDeco.h"
|
|
|
|
#include "forms/form_maths_deco.h"
|
|
|
|
|
|
|
|
#include "FormMathsDelim.h"
|
|
|
|
#include "forms/form_maths_delim.h"
|
|
|
|
|
|
|
|
#include "FormMathsMatrix.h"
|
|
|
|
#include "forms/form_maths_matrix.h"
|
|
|
|
|
|
|
|
#include "FormMathsSpace.h"
|
|
|
|
#include "forms/form_maths_space.h"
|
|
|
|
|
|
|
|
#include "FormMathsStyle.h"
|
|
|
|
#include "forms/form_maths_style.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 "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 "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
|
|
|
|
#include "ControlThesaurus.h"
|
|
|
|
#include "FormThesaurus.h"
|
|
|
|
#include "forms/form_thesaurus.h"
|
2001-07-29 10:42:11 +00:00
|
|
|
#endif
|
2002-08-15 17:48:53 +00:00
|
|
|
|
|
|
|
#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"
|
|
|
|
|
|
|
|
|
2002-08-16 07:00:35 +00:00
|
|
|
Dialogs::Impl::Impl(LyXView & lv, Dialogs & d)
|
|
|
|
: lv_(lv), d_(d)
|
|
|
|
{}
|
|
|
|
|
|
|
|
|
2002-08-15 17:48:53 +00:00
|
|
|
Dialogs::Dialogs(LyXView & lv)
|
|
|
|
: pimpl_(new Impl(lv, *this))
|
|
|
|
{
|
2000-06-12 11:55:12 +00:00
|
|
|
// reduce the number of connections needed in
|
|
|
|
// dialogs by a simple connection here.
|
2002-05-29 16:21:03 +00:00
|
|
|
hideAll.connect(hideBufferDependent);
|
2000-06-12 11:55:12 +00:00
|
|
|
}
|
2002-08-15 17:48:53 +00:00
|
|
|
|
|
|
|
|
|
|
|
Dialogs::~Dialogs()
|
|
|
|
{}
|
|
|
|
|
|
|
|
|
|
|
|
void Dialogs::toggleTooltips()
|
|
|
|
{
|
|
|
|
Tooltips::toggleEnabled();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// Are the tooltips on or off?
|
|
|
|
bool Dialogs::tooltipsEnabled()
|
|
|
|
{
|
|
|
|
return Tooltips::enabled();
|
|
|
|
}
|