// Get the name of the WorkBook from the ConvertData.
String[] worksheetNames = getWorksheetNames(cd);
String workbookName = getWorkbookName(cd);
// Create a document
SxcDocument sxcDoc = new SxcDocument(workbookName);
sxcDoc.initContentDOM();
sxcDoc.initSettingsDOM();
// Default to an initial 5 entries in the catalog.
styleCat = new StyleCatalog(5);
doc = sxcDoc.getContentDOM();
settings = sxcDoc.getSettingsDOM();
initFontTable();
// Little fact for the curious reader: workbookName should
// be the name of the StarCalc file minus the file extension suffix.
// Create a Decoder to decode the DeviceContent to a spreadsheet document