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"
18 #include "insets/insetcommand.h"
25 /** This class is an XForms GUI base class to insets
27 class FormInset : public FormBaseBD {
30 FormInset(LyXView *, Dialogs *, string const &);
32 /// Connect signals. Also perform any necessary initialisation.
33 virtual void connect();
34 /// Disconnect signals. Also perform any necessary housekeeping.
35 virtual void disconnect();
37 /// bool indicates if a buffer switch took place
38 virtual void updateSlot(bool);
40 /// inset::hide connection.
45 /** This class is an XForms GUI base class to insets derived from
48 class FormCommand : public FormInset {
51 FormCommand(LyXView *, Dialogs *, string const &);
53 /// Disconnect signals. Also perform any necessary housekeeping.
54 virtual void disconnect();
56 /// Slot launching dialog to (possibly) create a new inset
57 void createInset(string const &);
58 /// Slot launching dialog to an existing inset
59 void showInset(InsetCommand *);
61 /// pointer to the inset passed through showInset
62 InsetCommand * inset_;
63 /// the nitty-griity. What is modified and passed back
64 InsetCommandParams params;