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 /// Disconnect signals. Also perform any necessary housekeeping.
34 virtual void disconnect();
36 /// bool indicates if a buffer switch took place
37 virtual void updateSlot(bool);
39 /// inset::hide connection.
44 /** This class is an XForms GUI base class to insets derived from
47 class FormCommand : public FormInset {
50 FormCommand( LyXView *, Dialogs *, string const &,
51 ButtonPolicy * = new OkCancelReadOnlyPolicy,
52 char const * close = N_("Close"),
53 char const * cancel = N_("Cancel"));
55 /// Disconnect signals. Also perform any necessary housekeeping.
56 virtual void disconnect();
58 /// Slot launching dialog to (possibly) create a new inset
59 void createInset( string const & );
60 /// Slot launching dialog to an existing inset
61 void showInset( InsetCommand * );
63 /// pointer to the inset passed through showInset
64 InsetCommand * inset_;
65 /// the nitty-griity. What is modified and passed back
66 InsetCommandParams params;