]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormInset.h
Yet more dialog tweaking from Rob.
[lyx.git] / src / frontends / xforms / FormInset.h
1 // -*- C++ -*-
2 /**
3  * \file FormInset.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Angus Leeming 
8  *
9  * Full author contact details are available in file CREDITS
10  */
11
12 /* A base class for dialogs connected to insets. This class is temporary in that
13  * it has been superceeded by the controller-view split.
14  */
15
16 #ifndef FORMCOMMAND_H
17 #define FORMCOMMAND_H
18
19 #include "FormBaseDeprecated.h"
20 #include "insets/insetcommandparams.h"
21
22 #include <boost/signals/connection.hpp>
23
24 #ifdef __GNUG__
25 #pragma interface
26 #endif
27
28 class InsetCommand;
29
30 /** This class is an XForms GUI base class to insets
31  */
32 class FormInset : public FormBaseBD {
33 protected:
34         /// Constructor
35         FormInset(LyXView &, Dialogs &, string const &);
36
37         /// Connect signals. Also perform any necessary initialisation.
38         virtual void connect();
39         /// Disconnect signals. Also perform any necessary housekeeping.
40         virtual void disconnect();
41
42         /// bool indicates if a buffer switch took place
43         virtual void updateSlot(bool);
44
45         /// inset::hide connection.
46         boost::signals::connection ih_;
47 };
48
49 #endif