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
|
|
|
*
|
2003-08-23 00:17:00 +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"
|
2003-03-05 23:12:19 +00:00
|
|
|
#include "insets/insetfloat.h"
|
2001-07-30 11:56:00 +00:00
|
|
|
|
|
|
|
|
2003-10-06 15:43:21 +00:00
|
|
|
using std::string;
|
|
|
|
|
2004-05-19 15:11:37 +00:00
|
|
|
namespace lyx {
|
|
|
|
namespace frontend {
|
2003-10-06 15:43:21 +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-14 00:20:42 +00:00
|
|
|
bool 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));
|
2003-03-14 00:20:42 +00:00
|
|
|
return true;
|
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-07 14:08:10 +00:00
|
|
|
string const lfun = InsetFloatMailer::params2string(params());
|
2005-04-26 09:37:52 +00:00
|
|
|
kernel().dispatch(FuncRequest(getLfun(), lfun));
|
2001-07-30 11:56:00 +00:00
|
|
|
}
|
2004-05-19 15:11:37 +00:00
|
|
|
|
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|