{
throw new InvalidReportStateException("Uncommited content encountered");
}
final long contentOffset = contentProducer.getContentOffset(row, col);
final TableRectangle rectangle = sheetLayout.getTableBounds
(content.getX(), content.getY() + contentOffset, content.getWidth(), content.getHeight(), null);
if (rectangle.isOrigin(col, row) == false)
{
// A spanned cell ..
xmlWriter.writeTag(XmlDocumentWriter.LAYOUT_OUTPUT_NAMESPACE, "spanned-cell", XmlWriter.CLOSE);
continue;
}
final CellMarker.SectionType sectionType = contentProducer.getSectionType(row, col);
final CellBackground realBackground = cellBackgroundProducer.getBackgroundForBox
(logicalPageBox, sheetLayout, rectangle.getX1(), rectangle.getY1(), rectangle.getColumnSpan(),
rectangle.getRowSpan(), false, sectionType, content);
final AttributeList attributeList;
if (realBackground != null)
{
attributeList = createCellAttributes(realBackground);
}
else
{
attributeList = new AttributeList();
}
attributeList.setAttribute(XmlDocumentWriter.LAYOUT_OUTPUT_NAMESPACE, "row-span",
pointIntConverter.format(rectangle.getRowSpan()));
attributeList.setAttribute(XmlDocumentWriter.LAYOUT_OUTPUT_NAMESPACE, "col-span",
pointIntConverter.format(rectangle.getColumnSpan()));
attributeList.setAttribute(XmlDocumentWriter.LAYOUT_OUTPUT_NAMESPACE, "href",
(String) content.getStyleSheet().getStyleProperty(ElementStyleKeys.HREF_TARGET));
attributeList.setAttribute(XmlDocumentWriter.LAYOUT_OUTPUT_NAMESPACE, "href-window",
(String) content.getStyleSheet().getStyleProperty(ElementStyleKeys.HREF_WINDOW));
attributeList.setAttribute(XmlDocumentWriter.LAYOUT_OUTPUT_NAMESPACE, "href-title",