Bugzilla 54099 - Ensure that CTHMerge and CTTcBorders go to poi-ooxml-schemas jar
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1407242 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e68f4e043d
commit
e2c597c016
@ -34,6 +34,7 @@
|
|||||||
|
|
||||||
<changes>
|
<changes>
|
||||||
<release version="3.9-beta1" date="2012-??-??">
|
<release version="3.9-beta1" date="2012-??-??">
|
||||||
|
<action dev="poi-developers" type="fix">54099 - Ensure that CTHMerge and CTTcBorders go to poi-ooxml-schemas jar</action>
|
||||||
<action dev="poi-developers" type="fix">54111 - Fixed extracting text from table cells in HSLF</action>
|
<action dev="poi-developers" type="fix">54111 - Fixed extracting text from table cells in HSLF</action>
|
||||||
<action dev="poi-developers" type="add">52583 - add support for drop-down lists in doc to html convertion</action>
|
<action dev="poi-developers" type="add">52583 - add support for drop-down lists in doc to html convertion</action>
|
||||||
<action dev="poi-developers" type="add">52863 - add workaround for files with broken CHP SPRMs</action>
|
<action dev="poi-developers" type="add">52863 - add workaround for files with broken CHP SPRMs</action>
|
||||||
|
@ -22,11 +22,7 @@ package org.apache.poi.xwpf.usermodel;
|
|||||||
import junit.framework.TestCase;
|
import junit.framework.TestCase;
|
||||||
|
|
||||||
import org.apache.poi.xwpf.usermodel.XWPFTableCell.XWPFVertAlign;
|
import org.apache.poi.xwpf.usermodel.XWPFTableCell.XWPFVertAlign;
|
||||||
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTShd;
|
import org.openxmlformats.schemas.wordprocessingml.x2006.main.*;
|
||||||
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTbl;
|
|
||||||
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTVerticalJc;
|
|
||||||
import org.openxmlformats.schemas.wordprocessingml.x2006.main.STShd;
|
|
||||||
import org.openxmlformats.schemas.wordprocessingml.x2006.main.STVerticalJc;
|
|
||||||
|
|
||||||
public class TestXWPFTableCell extends TestCase {
|
public class TestXWPFTableCell extends TestCase {
|
||||||
|
|
||||||
@ -79,9 +75,20 @@ public class TestXWPFTableCell extends TestCase {
|
|||||||
assertEquals("F0000F", clr);
|
assertEquals("F0000F", clr);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
/**
|
||||||
protected void tearDown() throws Exception {
|
* ensure that CTHMerge & CTTcBorders go in poi-ooxml.jar
|
||||||
super.tearDown();
|
*/
|
||||||
}
|
public void test54099(){
|
||||||
|
XWPFDocument doc = new XWPFDocument();
|
||||||
|
CTTbl ctTable = CTTbl.Factory.newInstance();
|
||||||
|
XWPFTable table = new XWPFTable(ctTable, doc);
|
||||||
|
XWPFTableRow tr = table.getRow(0);
|
||||||
|
XWPFTableCell cell = tr.getCell(0);
|
||||||
|
|
||||||
|
CTTc ctTc = cell.getCTTc();
|
||||||
|
CTTcPr tcPr = ctTc.addNewTcPr();
|
||||||
|
CTHMerge hMerge = tcPr.addNewHMerge();
|
||||||
|
|
||||||
|
CTTcBorders tblBorders = tcPr.addNewTcBorders();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user