Edwin Leuven wrote: > at the moment we store line attributes in the cell *and* in the column > and row info. > > i am tempted to remove them from the column and row info because i do > not see what extra info they give on top of the cell attributes > > am i overseeing something?
I don't think so. In general the tabular code is far too close to LaTeX IMHO, and this is just one case where it shows. Another one is the "single cell multicolumn" problem: The fact that you need \multicolumn if you want to change the alignment or border of just one cell is a LaTeX implementation issue, and the user should not need to know that. LyX should create multicolumn cells automatically if needed. I believe that you can simplify the tabular code a lot if you go away from the LaTeX-centric view and implement a more general table model. All the special LaTeX stuff would then be concentrated in the LaTeX export methods. Of course it should still be possible to easily set/unset borders of whole rows/columns, but that is orthogonal to the way how the lines are stored. Georg