]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormInset.C
Really dull and boring header shit
[lyx.git] / src / frontends / xforms / FormInset.C
1 /**
2  * \file FormInset.C
3  * See the file COPYING.
4  *
5  * \author Angus Leeming 
6  *
7  * Full author contact details are available in file CREDITS
8  */
9
10 #include <config.h>
11
12 #include FORMS_H_LOCATION
13
14 #ifdef __GNUG__
15 #pragma implementation
16 #endif
17
18 #include "FormInset.h"
19
20 #include "frontends/Dialogs.h"
21
22 #include <boost/bind.hpp>
23
24 FormInset::FormInset(LyXView & lv, Dialogs & d, string const & t)
25         : FormBaseBD(lv, d, t)
26 {}
27
28
29 void FormInset::connect()
30 {
31         u_ = d_.updateBufferDependent.
32                 connect(boost::bind(&FormInset::updateSlot, this, _1));
33         h_ = d_.hideBufferDependent.
34                 connect(boost::bind(&FormInset::hide, this));
35         FormBaseDeprecated::connect();
36 }
37
38
39 void FormInset::disconnect()
40 {
41         ih_.disconnect();
42         FormBaseBD::disconnect();
43 }
44
45
46 void FormInset::updateSlot(bool switched)
47 {
48         if (switched)
49                 hide();
50         else
51                 update();
52 }