2 * \file xforms/Dialogs.C
3 * Copyright 1995 Matthias Ettrich
4 * Copyright 1995-2001 The LyX Team.
5 * See the file COPYING.
7 * \author Allan Rae, rae@lyx.org
13 #pragma implementation
21 #include "combox.h" // needed for clean destruction of boost::scoped_ptr
22 #include "form_aboutlyx.h"
23 #include "form_bibitem.h"
24 #include "form_bibtex.h"
25 #include "form_browser.h"
26 #include "form_character.h"
27 #include "form_citation.h"
28 #include "form_error.h"
30 #include "form_external.h"
31 #include "form_float.h"
32 #include "form_forks.h"
33 #include "form_graphics.h"
34 #include "form_include.h"
35 #include "form_index.h"
36 #include "form_minipage.h"
37 #include "form_preamble.h"
38 #include "form_print.h"
40 #include "form_search.h"
41 #include "form_sendto.h"
42 #include "form_spellchecker.h"
43 #include "form_tabular_create.h"
44 #include "form_texinfo.h"
45 #include "form_thesaurus.h"
49 #include "FormAboutlyx.h"
50 #include "FormBibitem.h"
51 #include "FormBibtex.h"
52 #include "FormCharacter.h"
53 #include "FormCitation.h"
54 #include "FormError.h"
56 #include "FormExternal.h"
57 #include "FormFloat.h"
58 #include "FormForks.h"
59 #include "FormGraphics.h"
60 #include "FormInclude.h"
61 #include "FormIndex.h"
63 #include "FormMinipage.h"
64 #include "FormPreamble.h"
65 #include "FormPrint.h"
67 #include "FormSearch.h"
68 #include "FormSendto.h"
69 #include "FormShowFile.h"
70 #include "FormSpellchecker.h"
71 #include "FormTabularCreate.h"
72 #include "FormTexinfo.h"
73 #include "FormThesaurus.h"
76 #include "FormVCLog.h"
78 #include "FormDocument.h"
79 #include "FormMathsPanel.h"
80 #include "FormParagraph.h"
81 #include "FormPreferences.h"
82 #include "FormTabular.h"
86 /// Are the tooltips on or off?
87 bool Dialogs::tooltipsEnabled()
89 return Tooltips::enabled();
93 Dialogs::Dialogs(LyXView * lv)
95 add(new GUIAboutlyx<FormAboutlyx, xformsBC>(*lv, *this));
96 add(new GUIBibitem<FormBibitem, xformsBC>(*lv, *this));
97 add(new GUIBibtex<FormBibtex, xformsBC>(*lv, *this));
98 add(new GUICharacter<FormCharacter, xformsBC>(*lv, *this));
99 add(new GUICitation<FormCitation, xformsBC>(*lv, *this));
100 add(new GUIError<FormError, xformsBC>(*lv, *this));
101 add(new GUIERT<FormERT, xformsBC>(*lv, *this));
102 add(new GUIExternal<FormExternal, xformsBC>(*lv, *this));
103 add(new GUIForks<FormForks, xformsBC>(*lv, *this));
104 add(new GUIGraphics<FormGraphics, xformsBC>(*lv, *this));
105 add(new GUIInclude<FormInclude, xformsBC>(*lv, *this));
106 add(new GUIIndex<FormIndex, xformsBC>(*lv, *this));
107 add(new GUILog<FormLog, xformsBC>(*lv, *this));
108 add(new GUIMinipage<FormMinipage, xformsBC>(*lv, *this));
109 add(new GUIFloat<FormFloat, xformsBC>(*lv, *this));
110 add(new GUIPreamble<FormPreamble, xformsBC>(*lv, *this));
111 add(new GUIPrint<FormPrint, xformsBC>(*lv, *this));
112 add(new GUIRef<FormRef, xformsBC>(*lv, *this));
113 add(new GUISearch<FormSearch, xformsBC>(*lv, *this));
114 add(new GUISendto<FormSendto, xformsBC>(*lv, *this));
115 add(new GUIShowFile<FormShowFile, xformsBC>(*lv, *this));
116 add(new GUISpellchecker<FormSpellchecker, xformsBC>(*lv, *this));
117 add(new GUITabularCreate<FormTabularCreate, xformsBC>(*lv, *this));
118 #ifdef HAVE_LIBAIKSAURUS
119 add(new GUIThesaurus<FormThesaurus, xformsBC>(*lv, *this));
121 add(new GUITexinfo<FormTexinfo, xformsBC>(*lv, *this));
122 add(new GUIToc<FormToc, xformsBC>(*lv, *this));
123 add(new GUIUrl<FormUrl, xformsBC>(*lv, *this));
124 add(new GUIVCLog<FormVCLog, xformsBC>(*lv, *this));
126 add(new FormDocument(lv, this));
127 add(new FormMathsPanel(lv, this));
128 add(new FormParagraph(lv, this));
129 add(new FormPreferences(lv, this));
130 add(new FormTabular(lv, this));
132 // reduce the number of connections needed in
133 // dialogs by a simple connection here.
134 hideAll.connect(hideBufferDependent.slot());