/**
* right now this function takes one parameter: a Word file, and outputs an
* XSL-FO document at c:\test.xml (this is hardcoded)
+ *
+ * @param args The document to read
*/
public static void main(String args[])
{
size = lineHeights.size();
for(int x = 0; x < size; x++)
{
- Integer height = (Integer)lineHeights.get(x);
+ Integer height = lineHeights.get(x);
sum += height.intValue();
}
for(int x = 0; x < size; x++)
{
StringBuffer rowBuffer = tableBodyBuffer;
- TableRow row = (TableRow)_table.get(x);
+ TableRow row = _table.get(x);
TAP tap = row.getTAP();
ArrayList<String> cells = row.getCells();
addBorder(rowBuffer, tc._brcBottom, "bottom");
addBorder(rowBuffer, tc._brcRight, "right");
rowBuffer.append(">");
- rowBuffer.append((String)cells.get(y));
+ rowBuffer.append(cells.get(y));
rowBuffer.append("</fo:table-cell>");
}
rowBuffer.append("</fo:table-row>");