3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
7 * \author Angus Leeming
9 * Full author contact details are available in file CREDITS.
14 #include "ControlERT.h"
15 #include "funcrequest.h"
21 ControlERT::ControlERT(Dialog & parent)
22 : Dialog::Controller(parent), status_(InsetERT::Collapsed)
26 bool ControlERT::initialiseParams(string const & data)
28 InsetERTMailer::string2params(data, status_);
33 void ControlERT::clearParams()
35 status_ = InsetERT::Collapsed;
39 void ControlERT::dispatchParams()
41 string const lfun = InsetERTMailer::params2string(status_);
42 kernel().dispatch(FuncRequest(LFUN_INSET_APPLY, lfun));