mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 21:49:51 +00:00
a70b4ef051
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9874 a592a061-630c-0410-9148-cb99ea01b6c8
69 lines
1.1 KiB
C
69 lines
1.1 KiB
C
/**
|
|
* \file ControlVSpace.C
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author Edwin Leuven
|
|
* \author Angus Leeming
|
|
*
|
|
* Full author contact details are available in file CREDITS.
|
|
*/
|
|
|
|
#include <config.h>
|
|
|
|
#include "ControlVSpace.h"
|
|
#include "ButtonController.h"
|
|
|
|
#include "funcrequest.h"
|
|
#include "insets/insetvspace.h"
|
|
|
|
|
|
using std::istringstream;
|
|
using std::string;
|
|
|
|
namespace lyx {
|
|
namespace frontend {
|
|
|
|
ControlVSpace::ControlVSpace(Dialog & parent)
|
|
: Dialog::Controller(parent)
|
|
{}
|
|
|
|
|
|
bool ControlVSpace::initialiseParams(string const & data)
|
|
{
|
|
InsetVSpaceMailer::string2params(data, params_);
|
|
|
|
// so that the user can press Ok
|
|
dialog().bc().valid();
|
|
|
|
return true;
|
|
}
|
|
|
|
|
|
void ControlVSpace::clearParams()
|
|
{
|
|
params_ = VSpace();
|
|
}
|
|
|
|
|
|
void ControlVSpace::dispatchParams()
|
|
{
|
|
string const str = InsetVSpaceMailer::params2string(params_);
|
|
kernel().dispatch(FuncRequest(getLfun(), str));
|
|
}
|
|
|
|
|
|
VSpace & ControlVSpace::params()
|
|
{
|
|
return params_;
|
|
}
|
|
|
|
|
|
VSpace const & ControlVSpace::params() const
|
|
{
|
|
return params_;
|
|
}
|
|
|
|
} // namespace frontend
|
|
} // namespace lyx
|