2002-09-05 14:10:50 +00:00
|
|
|
/**
|
|
|
|
* \file ControlTabularCreate.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-03-26 14:33:58 +00:00
|
|
|
*
|
2002-09-05 14:10:50 +00:00
|
|
|
* \author unknown
|
2001-03-26 14:33:58 +00:00
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
* Full author contact details are available in file CREDITS.
|
2001-03-26 14:33:58 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
|
2002-05-29 16:21:03 +00:00
|
|
|
#include "ControlTabularCreate.h"
|
2002-08-07 08:11:41 +00:00
|
|
|
#include "funcrequest.h"
|
2003-05-13 14:36:24 +00:00
|
|
|
|
2005-01-06 16:39:35 +00:00
|
|
|
#include "support/convert.h"
|
2001-03-26 14:33:58 +00:00
|
|
|
|
2002-05-29 16:21:03 +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-09 19:34:46 +00:00
|
|
|
ControlTabularCreate::ControlTabularCreate(Dialog & parent)
|
|
|
|
: Dialog::Controller(parent)
|
2002-06-18 15:44:30 +00:00
|
|
|
{}
|
2001-03-26 14:33:58 +00:00
|
|
|
|
|
|
|
|
2003-03-14 00:20:42 +00:00
|
|
|
bool ControlTabularCreate::initialiseParams(string const &)
|
2001-03-26 14:33:58 +00:00
|
|
|
{
|
2003-05-13 14:36:24 +00:00
|
|
|
params_.first = 5;
|
|
|
|
params_.second = 5;
|
2003-03-14 00:20:42 +00:00
|
|
|
return true;
|
2001-03-26 14:33:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2003-03-09 19:34:46 +00:00
|
|
|
void ControlTabularCreate::clearParams()
|
2001-03-26 14:33:58 +00:00
|
|
|
{
|
2003-05-13 14:36:24 +00:00
|
|
|
params_.first = 0;
|
|
|
|
params_.second = 0;
|
2001-03-26 14:33:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2003-03-09 19:34:46 +00:00
|
|
|
void ControlTabularCreate::dispatchParams()
|
2001-03-26 14:33:58 +00:00
|
|
|
{
|
2005-01-06 16:39:35 +00:00
|
|
|
string const data = convert<string>(params().first) + ' ' + convert<string>(params().second);
|
2003-03-09 19:34:46 +00:00
|
|
|
kernel().dispatch(FuncRequest(LFUN_TABULAR_INSERT, data));
|
2001-03-26 14:33:58 +00:00
|
|
|
}
|
2004-05-19 15:11:37 +00:00
|
|
|
|
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|