org.odftoolkit.simple.table
Class RepeatedNumberUtils

java.lang.Object
  extended by org.odftoolkit.simple.table.RepeatedNumberUtils

public class RepeatedNumberUtils
extends Object

Utility functions to evaluate the "repeated-number"-Attributes of rows, columns and cells.

Author:
raimund

Constructor Summary
RepeatedNumberUtils()
           
 
Method Summary
static void removeDummyCellsFromTable(Table table)
          Remove unused columns and rows from the end of a table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepeatedNumberUtils

public RepeatedNumberUtils()
Method Detail

removeDummyCellsFromTable

public static void removeDummyCellsFromTable(Table table)
Remove unused columns and rows from the end of a table.

This is a workaround for bug ODFTOOLKIT-388. LibreOffice adds two dummy rows with "number-rows-repeated" attribute to "blow up" the sheet to rows as needed by MS Excel 2010.

Files converted from MS Excel binary format (*.xls) contain a similar dummy row to "blow up" the sheet up to rows.

Same is done for columns - one dummy column is added to get a whole column count of .

Parameters:
table - Table to clean.


Copyright © 2010-2017 The Apache Software Foundation. All Rights Reserved.