2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 2000-2001 The LyX Team.
9 * ======================================================
15 #include "FormBaseDeprecated.h"
16 #include "insets/insetcommand.h"
23 /** This class is an XForms GUI base class to insets
25 class FormInset : public FormBaseBD {
28 FormInset(LyXView *, Dialogs *, string const &);
30 /// Connect signals. Also perform any necessary initialisation.
31 virtual void connect();
32 /// Disconnect signals. Also perform any necessary housekeeping.
33 virtual void disconnect();
35 /// bool indicates if a buffer switch took place
36 virtual void updateSlot(bool);
38 /// inset::hide connection.
43 /** This class is an XForms GUI base class to insets derived from
46 class FormCommand : public FormInset {
49 FormCommand(LyXView *, Dialogs *, string const &);
51 /// Disconnect signals. Also perform any necessary housekeeping.
52 virtual void disconnect();
54 /// Slot launching dialog to (possibly) create a new inset
55 void createInset(string const &);
56 /// Slot launching dialog to an existing inset
57 void showInset(InsetCommand *);
59 /// pointer to the inset passed through showInset
60 InsetCommand * inset_;
61 /// the nitty-griity. What is modified and passed back
62 InsetCommandParams params;