#endif
#include "ControlTabular.h"
-
+
#include "QTabular.h"
#include "QTabularDialog.h"
#include "tabular.h"
form_->controller().set(LyXTabular::APPEND_COLUMN);
}
-
+
void QTabularDialog::rowAppend_clicked()
{
form_->controller().set(LyXTabular::APPEND_ROW);
}
-
+
void QTabularDialog::columnDelete_clicked()
{
form_->controller().set(LyXTabular::DELETE_COLUMN);
}
-
+
void QTabularDialog::rowDelete_clicked()
{
form_->controller().set(LyXTabular::DELETE_ROW);
}
-
+
void QTabularDialog::borderSet_clicked()
{
form_->controller().set(LyXTabular::SET_ALL_LINES);
form_->update_borders();
form_->changed();
- //FIXME: qsetborder widget not updated
}
void QTabularDialog::borderUnset_clicked()
form_->controller().set(LyXTabular::UNSET_ALL_LINES);
form_->update_borders();
form_->changed();
- //FIXME: qsetborder widget not updated
}
-
+
void QTabularDialog::leftBorder_changed()
{
void QTabularDialog::width_changed()
{
- string const width =
- LyXLength(widthED->text().toDouble(),
+ string const width =
+ LyXLength(widthED->text().toDouble(),
widthUnit->currentLengthItem()).asString();
if (form_->controller().isMulticolumnCell())
form_->controller().set(LyXTabular::SET_MPWIDTH, width);