3 * \file ControlCommand.h
4 * Read the file COPYING
6 * \author Angus Leeming
8 * Full author contact details are available in file CREDITS
10 * ControlCommand is a controller class for dialogs that create or modify
11 * an inset derived from InsetCommand.
13 * The class is likely to be changed as other Inset controllers are created
14 * and it becomes clear just what functionality can be moved back into
19 #ifndef CONTROLCOMMAND_H
20 #define CONTROLCOMMAND_H
26 #include "ControlInset.h"
27 #include "insets/insetcommand.h"
28 #include "commandtags.h" // kb_action
30 /** The Inset dialog controller. Connects/disconnects signals, launches
31 GUI-dependent View and returns the output from this View to the kernel.
33 class ControlCommand : public ControlInset<InsetCommand, InsetCommandParams>
37 ControlCommand(LyXView &, Dialogs &, kb_action=LFUN_NOACTION);
40 /// Dispatch the changed parameters to the kernel.
41 virtual void applyParamsToInset();
43 virtual void applyParamsNoInset();
44 /// get the parameters from the string passed to createInset.
45 virtual InsetCommandParams const getParams(string const &);
46 /// get the parameters from the inset passed to showInset.
47 virtual InsetCommandParams const getParams(InsetCommand const &);
49 /// Controls what is done in LyXFunc::Dispatch()
50 kb_action const action_;
54 #endif // CONTROLCOMMAND_H