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 /// 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 &,
50 ButtonPolicy * = new OkCancelReadOnlyPolicy,
51 char const * close = N_("Close"),
52 char const * cancel = N_("Cancel"));
54 /// Disconnect signals. Also perform any necessary housekeeping.
55 virtual void disconnect();
57 /// Slot launching dialog to (possibly) create a new inset
58 void createInset( string const & );
59 /// Slot launching dialog to an existing inset
60 void showInset( InsetCommand * );
62 /// pointer to the inset passed through showInset
63 InsetCommand * inset_;
64 /// the nitty-griity. What is modified and passed back
65 InsetCommandParams params;