mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-27 14:29:21 +00:00
f1c24d1009
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4417 a592a061-630c-0410-9148-cb99ea01b6c8
58 lines
1.0 KiB
C
58 lines
1.0 KiB
C
/* This file is part of
|
|
* ======================================================
|
|
*
|
|
* LyX, The Document Processor
|
|
*
|
|
* Copyright 2001 The LyX Team.
|
|
*
|
|
* ======================================================
|
|
*
|
|
* \file ControlTabularCreate.C
|
|
*/
|
|
|
|
#include <config.h>
|
|
|
|
#ifdef __GNUG__
|
|
#pragma implementation
|
|
#endif
|
|
|
|
#include "ControlTabularCreate.h"
|
|
#include "ViewBase.h"
|
|
#include "ButtonControllerBase.h"
|
|
#include "BufferView.h"
|
|
#include "lyxfunc.h"
|
|
|
|
#include "frontends/LyXView.h"
|
|
|
|
#include "support/lstrings.h"
|
|
|
|
|
|
ControlTabularCreate::ControlTabularCreate(LyXView & lv, Dialogs & d)
|
|
: ControlDialogBD(lv, d)
|
|
{}
|
|
|
|
|
|
ControlTabularCreate::rowsCols & ControlTabularCreate::params()
|
|
{
|
|
return params_;
|
|
}
|
|
|
|
|
|
void ControlTabularCreate::setParams()
|
|
{
|
|
bc().valid(); // so that the user can press Ok
|
|
}
|
|
|
|
|
|
void ControlTabularCreate::apply()
|
|
{
|
|
if (!lv_.view()->available())
|
|
return;
|
|
|
|
view().apply();
|
|
|
|
string const val(tostr(params().first) + " " + tostr(params().second));
|
|
|
|
lv_.getLyXFunc()->dispatch(LFUN_INSET_TABULAR, val);
|
|
}
|