// longtables and tabular* cannot have a vertical alignment
TableAlignLA->setDisabled(is_tabular_star || longtabular);
TableAlignCO->setDisabled(is_tabular_star || longtabular);
// longtables and tabular* cannot have a vertical alignment
TableAlignLA->setDisabled(is_tabular_star || longtabular);
TableAlignCO->setDisabled(is_tabular_star || longtabular);
+ // longtable cannot be rotated (with rotating package)
+ // FIXME: Add support for [pdf]lscape
+ rotateTabularCB->setDisabled(longtabular);
+ rotateTabularLA->setDisabled(longtabular);
+ // this one would also be disabled with [pdf]lscape
+ rotateTabularAngleSB->setDisabled(longtabular);
// FIXME: This Dialog is really horrible, disabling/enabling a checkbox
// depending on the cursor position is very very unintuitive...
// FIXME: This Dialog is really horrible, disabling/enabling a checkbox
// depending on the cursor position is very very unintuitive...
bool Tabular::needRotating() const
{
bool Tabular::needRotating() const
{
+ if (rotate && !is_long_tabular)
return true;
for (row_type r = 0; r < nrows(); ++r)
for (col_type c = 0; c < ncols(); ++c)
return true;
for (row_type r = 0; r < nrows(); ++r)
for (col_type c = 0; c < ncols(); ++c)
if (!TexRow::isNone(pos))
os.texrow().start(pos);
if (!TexRow::isNone(pos))
os.texrow().start(pos);
+ if (rotate != 0 && !is_long_tabular)
os << "\\begin{turn}{" << convert<string>(rotate) << "}\n";
if (is_long_tabular) {
os << "\\begin{turn}{" << convert<string>(rotate) << "}\n";
if (is_long_tabular) {
os << "\\end{tabular}";
}
os << "\\end{tabular}";
}
+ if (rotate != 0 && !is_long_tabular)
os << breakln << "\\end{turn}";
if (!TexRow::isNone(pos))
os << breakln << "\\end{turn}";
if (!TexRow::isNone(pos))