mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
* src/insets/InsetTabular.{cpp,h}:
- improve updating of on-screen alignment git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26406 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
a89ab325ef
commit
7bbb01f8b6
@ -775,6 +775,7 @@ void Tabular::updateIndexes()
|
||||
rowofcell[i] = row;
|
||||
columnofcell[i] = column;
|
||||
setFixedWidth(row, column);
|
||||
updateContentAlignment(row, column);
|
||||
++i;
|
||||
}
|
||||
}
|
||||
@ -1022,6 +1023,13 @@ bool Tabular::setFixedWidth(row_type r, col_type c)
|
||||
}
|
||||
|
||||
|
||||
void Tabular::updateContentAlignment(row_type r, col_type c)
|
||||
{
|
||||
cell_info[r][c].inset->setContentAlignment(
|
||||
getAlignment(cellIndex(r, c)));
|
||||
}
|
||||
|
||||
|
||||
bool Tabular::setMColumnPWidth(Cursor & cur, idx_type cell,
|
||||
Length const & width)
|
||||
{
|
||||
@ -1424,8 +1432,6 @@ void Tabular::read(Lexer & lex)
|
||||
}
|
||||
getTokenValue(line, "multicolumn", cell_info[i][j].multicolumn);
|
||||
getTokenValue(line, "alignment", cell_info[i][j].alignment);
|
||||
cellInset(cellIndex(i, j)).get()->setContentAlignment(
|
||||
cell_info[i][j].alignment);
|
||||
getTokenValue(line, "valignment", cell_info[i][j].valignment);
|
||||
getTokenValue(line, "topline", cell_info[i][j].top_line);
|
||||
getTokenValue(line, "bottomline", cell_info[i][j].bottom_line);
|
||||
|
@ -577,6 +577,8 @@ public:
|
||||
void updateIndexes();
|
||||
///
|
||||
bool setFixedWidth(row_type r, col_type c);
|
||||
///
|
||||
void updateContentAlignment(row_type r, col_type c);
|
||||
/// return true of update is needed
|
||||
bool updateColumnWidths();
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user