lyx_mirror/src/frontends/controllers/ControlFloat.C

41 lines
788 B
C++
Raw Normal View History

/**
* \file ControlFloat.C
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author unknown
*
* Full author contact details are available in file CREDITS
*/
#include <config.h>
#include "ControlFloat.h"
#include "funcrequest.h"
ControlFloat::ControlFloat(Dialog & parent)
: Dialog::Controller(parent)
{}
void ControlFloat::initialiseParams(string const & data)
{
InsetFloatParams params;
InsetFloatMailer::string2params(data, params);
params_.reset(new InsetFloatParams(params));
}
void ControlFloat::clearParams()
{
params_.reset();
}
void ControlFloat::dispatchParams()
{
string const lfun = InsetFloatMailer::params2string("float", params());
kernel().dispatch(FuncRequest(LFUN_INSET_APPLY, lfun));
}