|| this.tocPosition == TOC_NONE )
{
return;
}
DocumentTOC toc = docModel.getToc();
writeln( "<fo:page-sequence master-reference=\"toc\" initial-page-number=\"1\" format=\"i\">" );
regionBefore( toc.getName() );
regionAfter( getFooterText() );
writeStartTag( FLOW_TAG, "flow-name", "xsl-region-body" );
writeStartTag( BLOCK_TAG, "id", "./toc" );
chapterHeading( toc.getName(), false );
writeln( "<fo:table table-layout=\"fixed\" width=\"100%\" >" );
writeEmptyTag( TABLE_COLUMN_TAG, "column-width", "0.45in" );
writeEmptyTag( TABLE_COLUMN_TAG, "column-width", "0.4in" );
writeEmptyTag( TABLE_COLUMN_TAG, "column-width", "0.4in" );
writeEmptyTag( TABLE_COLUMN_TAG, "column-width", "5in" ); // TODO {$maxBodyWidth - 1.25}in
writeStartTag( TABLE_BODY_TAG );
writeTocItems( toc.getItems(), 1 );
writeEndTag( TABLE_BODY_TAG );
writeEndTag( TABLE_TAG );
writeEndTag( BLOCK_TAG );
writeEndTag( FLOW_TAG );