On 01/15/2010 06:19 PM, Vincent van Ravesteijn wrote:
Uwe Stöhr schreef:
I made progress with the multirow support, but there is one thing I
cannot figure out:
Where in the code are the cells merged when I e.g. select 2 cells and
press the multicolumn button? I a 2x2 table I have after this action
only 1 cell in the first row and 2 in the second one. I'm looking for
the code where the cell number of the former second cell in the first
row is erased.
thanks in advance
Uwe
I think the cells aren't really merged. It is only that the
"cellInfo(cell).multicolumn" is set to one of these values:
///
enum {
///
CELL_NORMAL = 0,
///
CELL_BEGIN_OF_MULTICOLUMN,
///
CELL_PART_OF_MULTICOLUMN
};
So, If cell 1 and 2 are merged, the first one sets the multicolumn to
.._BEGIN_... the second one to .._PART_...
That's all. You can probably rename this enum to be used with rows as
well.
This is correct. The old cell is still there, and I think it may even
still have its old contents. It's just that it doesn't appear, because
it has CELL_PART_OF_MULTICOLUMN set. So the multicolumn stretches from
BEGIN through all the PARTs until you hit another NORMAL.
rh