{
if (log.isTraceEnabled())
{
log.trace("Creating workbook settings from #0", uiWorkbook);
}
WorkbookSettings workbookSettings = new WorkbookSettings();
if (uiWorkbook.getArrayGrowSize() != null)
{
workbookSettings.setArrayGrowSize(uiWorkbook.getArrayGrowSize());
}
if (uiWorkbook.getAutoFilterDisabled() != null)
{
workbookSettings.setAutoFilterDisabled(uiWorkbook.getAutoFilterDisabled());
}
if (uiWorkbook.getAutoFilterDisabled() != null)
{
workbookSettings.setCellValidationDisabled(uiWorkbook.getAutoFilterDisabled());
}
if (uiWorkbook.getCharacterSet() != null)
{
workbookSettings.setCharacterSet(uiWorkbook.getCharacterSet());
}
if (uiWorkbook.getDrawingsDisabled() != null)
{
workbookSettings.setDrawingsDisabled(uiWorkbook.getDrawingsDisabled());
}
if (uiWorkbook.getEncoding() != null)
{
workbookSettings.setEncoding(uiWorkbook.getEncoding());
}
if (uiWorkbook.getExcelDisplayLanguage() != null)
{
workbookSettings.setExcelDisplayLanguage(uiWorkbook.getExcelDisplayLanguage());
}
if (uiWorkbook.getExcelRegionalSettings() != null)
{
workbookSettings.setExcelRegionalSettings(uiWorkbook.getExcelRegionalSettings());
}
if (uiWorkbook.getFormulaAdjust() != null)
{
workbookSettings.setFormulaAdjust(uiWorkbook.getFormulaAdjust());
}
if (uiWorkbook.getGcDisabled() != null)
{
workbookSettings.setGCDisabled(uiWorkbook.getGcDisabled());
}
if (uiWorkbook.getIgnoreBlanks() != null)
{
workbookSettings.setIgnoreBlanks(uiWorkbook.getIgnoreBlanks());
}
if (uiWorkbook.getLocale() != null)
{
workbookSettings.setLocale(new Locale(uiWorkbook.getLocale()));
}
if (uiWorkbook.getMergedCellCheckingDisabled() != null)
{
workbookSettings.setMergedCellChecking(uiWorkbook.getMergedCellCheckingDisabled());
}
if (uiWorkbook.getNamesDisabled() != null)
{
workbookSettings.setNamesDisabled(uiWorkbook.getNamesDisabled());
}
if (uiWorkbook.getPropertySets() != null)
{
workbookSettings.setPropertySets(uiWorkbook.getPropertySets());
}
if (uiWorkbook.getRationalization() != null)
{
workbookSettings.setRationalization(uiWorkbook.getRationalization());
}
if (uiWorkbook.getSupressWarnings() != null)
{
workbookSettings.setSuppressWarnings(uiWorkbook.getSupressWarnings());
}
if (uiWorkbook.getTemporaryFileDuringWriteDirectory() != null)
{
workbookSettings.setTemporaryFileDuringWriteDirectory(new File(uiWorkbook.getTemporaryFileDuringWriteDirectory()));
}
if (uiWorkbook.getUseTemporaryFileDuringWrite() != null)
{
workbookSettings.setUseTemporaryFileDuringWrite(uiWorkbook.getUseTemporaryFileDuringWrite());
}
return workbookSettings;
}