4 * Copyright 2000-2001 the LyX Team
5 * Read the file COPYING
7 * \author Angus Leeming, a.leeming@ic.ac.uk
10 /* A base class for dialogs connected to insets. This class is temporary in that
11 * it has been superceeded by the controller-view split.
17 #include "FormBaseDeprecated.h"
19 #include "insets/insetcommand.h"
21 #include <boost/signals/connection.hpp>
28 /** This class is an XForms GUI base class to insets
30 class FormInset : public FormBaseBD {
33 FormInset(LyXView *, Dialogs *, string const &);
35 /// Connect signals. Also perform any necessary initialisation.
36 virtual void connect();
37 /// Disconnect signals. Also perform any necessary housekeeping.
38 virtual void disconnect();
40 /// bool indicates if a buffer switch took place
41 virtual void updateSlot(bool);
43 /// inset::hide connection.
44 boost::signals::connection ih_;
48 /** This class is an XForms GUI base class to insets derived from
51 class FormCommand : public FormInset {
54 FormCommand(LyXView *, Dialogs *, string const &);
56 /// Disconnect signals. Also perform any necessary housekeeping.
57 virtual void disconnect();
59 /// Slot launching dialog to (possibly) create a new inset
60 void createInset(string const &);
61 /// Slot launching dialog to an existing inset
62 void showInset(InsetCommand *);
64 /// pointer to the inset passed through showInset
65 InsetCommand * inset_;
66 /// the nitty-griity. What is modified and passed back
67 InsetCommandParams params;