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"));
34 /// Connect signals. Also perform any necessary initialisation.
35 virtual void connect();
36 /// Disconnect signals. Also perform any necessary housekeeping.
37 virtual void disconnect();
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 &,
52 ButtonPolicy * = new OkCancelReadOnlyPolicy,
53 char const * close = N_("Close"),
54 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;