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"
15 #include "funcrequest.h"
16 #include "insets/insetcommand.h"
19 ControlCommand::ControlCommand(Dialog & dialog, string const & lfun_name)
20 : Dialog::Controller(dialog),
25 bool ControlCommand::initialiseParams(string const & data)
27 InsetCommandMailer::string2params(data, params_);
32 void ControlCommand::clearParams()
34 params_ = InsetCommandParams();
38 void ControlCommand::dispatchParams()
40 if (lfun_name_.empty())
43 string const lfun = InsetCommandMailer::params2string(lfun_name_,
45 kernel().dispatch(FuncRequest(LFUN_INSET_APPLY, lfun));