2 * \file ControlCommand.cpp
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"
24 ControlCommand::ControlCommand(Dialog & dialog, string const & insetType)
25 : Controller(dialog), params_(insetType), lfun_name_(insetType)
29 bool ControlCommand::initialiseParams(string const & data)
31 // The name passed with LFUN_INSET_APPLY is also the name
32 // used to identify the mailer.
33 InsetCommandMailer::string2params(lfun_name_, data, params_);
38 void ControlCommand::clearParams()
44 void ControlCommand::dispatchParams()
46 if (lfun_name_.empty())
50 InsetCommandMailer::params2string(lfun_name_, params_);
51 dispatch(FuncRequest(getLfun(), lfun));
54 } // namespace frontend