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, string const & lfun_name)
21 : Dialog::Controller(dialog),
26 bool ControlCommand::initialiseParams(string const & data)
28 InsetCommandMailer::string2params(data, params_);
33 void ControlCommand::clearParams()
35 params_.setCmdName(string());
36 params_.setOptions(string());
37 params_.setContents(string());
41 void ControlCommand::dispatchParams()
43 if (lfun_name_.empty())
46 string const lfun = InsetCommandMailer::params2string(lfun_name_,
48 kernel().dispatch(FuncRequest(LFUN_INSET_APPLY, lfun));