https://issues.apache.org/bugzilla/show_bug.cgi?id=51955

--- Comment #2 from [email protected] 2011-10-05 20:05:06 UTC ---
Thanks, Nick. Now I know how to fix my problem. It looks like we need to add a
getThemesTable method to the XSSFReader class. The method returns a ThemesTable
type. Then I can call setTheme() for the styles table. 

The getThemesTable() method can be copied from getStylesTable() with a slight
change. I will see if I can create a patch later.

    public ThemesTable getThemesTable() throws IOException,
InvalidFormatException {
        ArrayList<PackagePart> parts = pkg.getPartsByContentType(
XSSFRelation.THEME.getContentType());
        return parts.size() == 0 ? null : new ThemesTable(parts.get(0), null);
    }

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to