namespace lyx {
namespace frontend {
-typedef QController<ControlTabular, QView<QTabularDialog> > base_class;
+typedef QController<ControlTabular, QView<QTabularDialog> > tabular_base_class;
QTabular::QTabular(Dialog & parent)
- : base_class(parent, lyx::to_utf8(_("Table Settings")))
+ : tabular_base_class(parent, _("Table Settings"))
{
}
update_borders();
LyXLength pwidth;
- string special;
+ docstring special;
if (multicol) {
special = tabular.getAlignSpecial(cell, LyXTabular::SET_SPECIAL_MULTI);
dialog_->hAlignCB->addItem(qt_("Center"));
dialog_->hAlignCB->addItem(qt_("Right"));
if (!multicol && !pwidth.zero())
- dialog_->hAlignCB->addItem(qt_("Block"));
+ dialog_->hAlignCB->addItem(qt_("Justified"));
int align = 0;
switch (tabular.getAlignment(cell)) {
width2 = llen.asString();
// apply the special alignment
- string const sa1 = fromqstr(dialog_->specialAlignmentED->text());
- string sa2;
+ docstring const sa1 = qstring_to_ucs4(dialog_->specialAlignmentED->text());
+ docstring sa2;
if (multicol)
sa2 = tabular.getAlignSpecial(cell, LyXTabular::SET_SPECIAL_MULTI);
if (sa1 != sa2) {
if (multicol)
- controller().set(LyXTabular::SET_SPECIAL_MULTI, sa1);
+ controller().set(LyXTabular::SET_SPECIAL_MULTI, to_utf8(sa1));
else
- controller().set(LyXTabular::SET_SPECIAL_COLUMN, sa1);
+ controller().set(LyXTabular::SET_SPECIAL_COLUMN, to_utf8(sa1));
}
if (width != width2) {