2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 2000 The LyX Team.
9 * ======================================================
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 &,
29 ButtonPolicy * bp = new OkCancelReadOnlyPolicy,
30 char const * close = N_("Close"),
31 char const * cancel = N_("Cancel"));
33 /// Connect signals. Also perform any necessary initialisation.
34 virtual void connect();
35 /// Disconnect signals. Also perform any necessary housekeeping.
36 virtual void disconnect();
38 /// bool indicates if a buffer switch took place
39 virtual void updateSlot(bool);
41 /// inset::hide connection.
46 /** This class is an XForms GUI base class to insets derived from
49 class FormCommand : public FormInset {
52 FormCommand( LyXView *, Dialogs *, string const &,
53 ButtonPolicy * = new OkCancelReadOnlyPolicy,
54 char const * close = N_("Close"),
55 char const * cancel = N_("Cancel"));
57 /// Disconnect signals. Also perform any necessary housekeeping.
58 virtual void disconnect();
60 /// Slot launching dialog to (possibly) create a new inset
61 void createInset( string const & );
62 /// Slot launching dialog to an existing inset
63 void showInset( InsetCommand * );
65 /// pointer to the inset passed through showInset
66 InsetCommand * inset_;
67 /// the nitty-griity. What is modified and passed back
68 InsetCommandParams params;