2002-09-05 14:10:50 +00:00
|
|
|
/**
|
|
|
|
* \file ControlFloat.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-07-30 11:56:00 +00:00
|
|
|
*
|
2002-09-05 14:10:50 +00:00
|
|
|
* \author unknown
|
2001-07-30 11:56:00 +00:00
|
|
|
*
|
2002-09-05 14:10:50 +00:00
|
|
|
* Full author contact details are available in file CREDITS
|
2001-07-30 11:56:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
|
2002-05-29 16:21:03 +00:00
|
|
|
#include "ControlFloat.h"
|
2003-03-05 19:46:08 +00:00
|
|
|
#include "funcrequest.h"
|
2001-07-30 11:56:00 +00:00
|
|
|
|
|
|
|
|
2003-03-05 19:46:08 +00:00
|
|
|
ControlFloat::ControlFloat(Dialog & parent)
|
|
|
|
: Dialog::Controller(parent)
|
2002-06-18 15:44:30 +00:00
|
|
|
{}
|
2001-07-30 11:56:00 +00:00
|
|
|
|
|
|
|
|
2003-03-05 19:46:08 +00:00
|
|
|
void ControlFloat::initialiseParams(string const & data)
|
2001-07-30 11:56:00 +00:00
|
|
|
{
|
2003-03-05 19:46:08 +00:00
|
|
|
InsetFloatParams params;
|
|
|
|
InsetFloatMailer::string2params(data, params);
|
|
|
|
params_.reset(new InsetFloatParams(params));
|
2001-07-30 11:56:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2003-03-05 19:46:08 +00:00
|
|
|
void ControlFloat::clearParams()
|
|
|
|
{
|
|
|
|
params_.reset();
|
|
|
|
}
|
2001-07-30 11:56:00 +00:00
|
|
|
|
|
|
|
|
2003-03-05 19:46:08 +00:00
|
|
|
void ControlFloat::dispatchParams()
|
2001-07-30 11:56:00 +00:00
|
|
|
{
|
2003-03-05 19:46:08 +00:00
|
|
|
string const lfun = InsetFloatMailer::params2string("float", params());
|
|
|
|
kernel().dispatch(FuncRequest(LFUN_INSET_APPLY, lfun));
|
2001-07-30 11:56:00 +00:00
|
|
|
}
|