Bug 56799 - [PATCH] CTTblGrid classes missing from poi-ooxml-schemas
Summary: [PATCH] CTTblGrid classes missing from poi-ooxml-schemas
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: XWPF (show other bugs)
Version: 3.10-FINAL
Hardware: Macintosh All
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords: PatchAvailable
Depends on:
Blocks:
 
Reported: 2014-08-01 00:16 UTC by tntim96
Modified: 2015-03-05 06:31 UTC (History)
1 user (show)



Attachments
Test for CTTblGrid to ensure inclusion in poi-ooxml-schemas JAR (1.68 KB, patch)
2014-08-01 00:16 UTC, tntim96
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.