2 * \file ControlCommand.C
3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Angus Leeming
8 * Full author contact details are available in file CREDITS
13 #include "ControlCommand.h"
16 #include "funcrequest.h"
17 #include "insets/insetcommand.h"
20 ControlCommand::ControlCommand(Dialog & dialog, kb_action ac)
21 : Dialog::Controller(dialog),
26 void ControlCommand::initialiseParams(string const & data)
28 InsetCommandMailer::string2params(data, params_);
32 void ControlCommand::clearParams()
34 params_.setCmdName(string());
35 params_.setOptions(string());
36 params_.setContents(string());
40 void ControlCommand::dispatchParams()
42 if (action_ == LFUN_NOACTION)
45 FuncRequest fr(action_, InsetCommandMailer::params2string(params_));
46 kernel().dispatch(fr);