2002-09-05 14:10:50 +00:00
|
|
|
|
/**
|
|
|
|
|
* \file ControlERT.C
|
2002-09-05 15:14:23 +00:00
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
|
* Licence details can be found in the file COPYING.
|
2001-08-06 14:55:02 +00:00
|
|
|
|
*
|
2002-09-05 14:10:50 +00:00
|
|
|
|
* \author J<EFBFBD>rgen Vigna
|
|
|
|
|
* \author Angus Leeming
|
2001-08-06 14:55:02 +00:00
|
|
|
|
*
|
2002-09-05 14:10:50 +00:00
|
|
|
|
* Full author contact details are available in file CREDITS
|
2001-08-06 14:55:02 +00:00
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
|
|
|
|
|
|
#include "ControlERT.h"
|
2003-02-25 14:51:38 +00:00
|
|
|
|
#include "funcrequest.h"
|
2001-08-06 14:55:02 +00:00
|
|
|
|
|
2002-06-18 15:44:30 +00:00
|
|
|
|
|
2003-02-25 14:51:38 +00:00
|
|
|
|
ControlERT::ControlERT(Dialog & parent)
|
|
|
|
|
: Dialog::Controller(parent), status_(InsetERT::Collapsed)
|
2002-06-18 15:44:30 +00:00
|
|
|
|
{}
|
2001-08-06 14:55:02 +00:00
|
|
|
|
|
|
|
|
|
|
2003-03-14 00:20:42 +00:00
|
|
|
|
bool ControlERT::initialiseParams(string const & data)
|
2001-08-06 14:55:02 +00:00
|
|
|
|
{
|
2003-02-25 14:51:38 +00:00
|
|
|
|
InsetERTMailer::string2params(data, status_);
|
2003-03-14 00:20:42 +00:00
|
|
|
|
return true;
|
2001-08-06 14:55:02 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2003-02-25 14:51:38 +00:00
|
|
|
|
void ControlERT::clearParams()
|
2001-08-06 14:55:02 +00:00
|
|
|
|
{
|
2003-02-25 14:51:38 +00:00
|
|
|
|
status_ = InsetERT::Collapsed;
|
2001-08-06 14:55:02 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2003-02-25 14:51:38 +00:00
|
|
|
|
void ControlERT::dispatchParams()
|
2001-08-06 14:55:02 +00:00
|
|
|
|
{
|
2003-03-07 14:08:10 +00:00
|
|
|
|
string const lfun = InsetERTMailer::params2string(status_);
|
2003-02-27 13:26:07 +00:00
|
|
|
|
kernel().dispatch(FuncRequest(LFUN_INSET_APPLY, lfun));
|
2001-08-06 14:55:02 +00:00
|
|
|
|
}
|