Bug 56799

Summary: [PATCH] CTTblGrid classes missing from poi-ooxml-schemas
Product: POI Reporter: tntim96
Component: XWPFAssignee: POI Developers List <dev>
Status: RESOLVED FIXED    
Severity: normal CC: lamakazzz
Priority: P2 Keywords: PatchAvailable
Version: 3.10-FINAL   
Target Milestone: ---   
Hardware: Macintosh   
OS: All   
Attachments: Test for CTTblGrid to ensure inclusion in poi-ooxml-schemas JAR

Description tntim96 2014-08-01 00:16:54 UTC
Created attachment 31864 [details]
Test for CTTblGrid to ensure inclusion in poi-ooxml-schemas JAR

We've found that the following is needed in the docx tables for compatibility with apple iWorks Pages (https://www.apple.com/mac/pages/) (or at least some versions).
        CTTblGrid cttblgrid = cttbl.addNewTblGrid();
        cttblgrid.addNewGridCol().setW(BIGINT_2000);
        cttblgrid.addNewGridCol().setW(BIGINT_6000);
...which results in...
            <w:tblGrid>
                <w:gridCol w:w="2000"/>
                <w:gridCol w:w="6000"/>
            </w:tblGrid>
...in the 'w:tbl' element, however, the relevant classes are not included in the poi-ooxml-schemas JAR.

Attached is a patch that ensures the relevant classes are loaded for inclusion in the poi-ooxml-schemas JAR.
Comment 1 tntim96 2014-08-01 00:35:02 UTC
Extra classes are:
CTTblGridImpl.class
CTTblGridBaseImpl.class
CTTblGridBase.class
CTTblGridBase$Factory.class
CTTblGrid.class
CTTblGrid$Factory.class
Comment 2 Nick Burch 2015-03-05 06:31:54 UTC
Thanks for this, patch applied in r1664236. The class should be in the poi-ooxml-schemas jar from 3.12 beta 2 onwards.