]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/Dialogs.C
fix crash with "save as"
[lyx.git] / src / frontends / xforms / Dialogs.C
1 /**
2  * \file xforms/Dialogs.C
3  * Copyright 1995 Matthias Ettrich
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Allan Rae
8  * \author Angus Leeming 
9  *
10  * Full author contact details are available in file CREDITS
11  */
12
13 #include <config.h>
14
15 #ifdef __GNUG__
16 #pragma implementation
17 #endif
18
19 #include "Dialogs_impl.h"
20
21 Dialogs::Dialogs(LyXView & lv)
22         : pimpl_(new Impl(lv, *this))
23 {
24         // reduce the number of connections needed in
25         // dialogs by a simple connection here.
26         hideAll.connect(hideBufferDependent);
27 }
28
29
30 Dialogs::~Dialogs()
31 {}
32
33
34 void Dialogs::toggleTooltips()
35 {
36         Tooltips::toggleEnabled();
37 }
38
39
40 /// Are the tooltips on or off?
41 bool Dialogs::tooltipsEnabled()
42 {
43         return Tooltips::enabled();
44 }
45
46
47 Dialogs::Impl::Impl(LyXView & lv, Dialogs & d)
48         : aboutlyx(lv, d),
49           bibitem(lv, d),
50           bibtex(lv, d),
51           character(lv, d),
52           citation(lv, d),
53           document(lv, d),
54           error(lv, d),
55           ert(lv, d),
56           external(lv, d),
57           file(lv, d),
58           floats(lv, d),
59           forks(lv, d),
60           graphics(lv, d),
61           include(lv, d),
62           index(lv, d),
63           logfile(lv, d),
64           mathpanel(lv, d),
65           minipage(lv, d),
66           paragraph(lv, d),
67           preamble(lv, d),
68           preferences(lv, d),
69           print(lv, d),
70           ref(lv, d),
71           search(lv, d),
72           sendto(lv, d),
73           spellchecker(lv, d),
74           tabular(lv, d),
75           tabularcreate(lv, d),
76           texinfo(lv, d),
77
78 #ifdef HAVE_LIBAIKSAURUS
79           thesaurus(lv, d),
80 #endif
81
82           toc(lv, d),
83           url(lv, d),
84           vclogfile(lv, d),
85           wrap(lv, d)
86 {}