// Currently, we're in a table-body element, and expect rows to follow.
// Stupid user gave us something else instead, so we have to autogenerate
// a row and a cell..
// Autogenerate the table-row ..
final StyleResolver styleResolver = layoutProcess.getStyleResolver();
final ContextId id = new ContextId(ContextId.SOURCE_DISPLAY_MODEL, -1, 0);
final LayoutContext rowContext =
styleResolver.createAnonymousContext(id, layoutContext);
fc.addElement(MODEL_TABLE_ROW, FLAG_AUTOGENERATED | TYPE_TABLE_ROW, rowContext);
contentGenerator.startedTableRow(rowContext);
final LayoutContext cellContext =
styleResolver.createAnonymousContext(id, rowContext);
fc.addElement(MODEL_BLOCK_INSIDE, FLAG_AUTOGENERATED | TYPE_TABLE_CELL, cellContext);
contentGenerator.startedTableCell(cellContext);
addToBlockLevelBox(layoutContext);
return;
}
case MODEL_TABLE_ROW:
{
final StyleResolver styleResolver = layoutProcess.getStyleResolver();
final ContextId id = new ContextId(ContextId.SOURCE_DISPLAY_MODEL, -1, 0);
final LayoutContext cellContext =
styleResolver.createAnonymousContext(id, layoutContext);
fc.addElement(MODEL_BLOCK_INSIDE, FLAG_AUTOGENERATED | TYPE_TABLE_CELL, cellContext);
contentGenerator.startedTableCell(cellContext);