From 557b67cb247c07988ea3a9418d41380242d7777d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alain=20B=C3=A9arez?= Date: Wed, 27 Nov 2019 04:54:34 +0000 Subject: [PATCH] Add, insert and remove columns on XSLFTable git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1870486 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/poi/xslf/usermodel/XSLFTable.java | 66 +++++++++++++++---- .../poi/xslf/usermodel/TestXSLFTable.java | 24 ++++--- 2 files changed, 68 insertions(+), 22 deletions(-) diff --git a/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFTable.java b/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFTable.java index 5266c13c09..de0ff27bef 100644 --- a/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFTable.java +++ b/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFTable.java @@ -39,6 +39,7 @@ import org.apache.xmlbeans.impl.values.XmlAnyTypeImpl; import org.openxmlformats.schemas.drawingml.x2006.main.CTGraphicalObjectData; import org.openxmlformats.schemas.drawingml.x2006.main.CTNonVisualDrawingProps; import org.openxmlformats.schemas.drawingml.x2006.main.CTTable; +import org.openxmlformats.schemas.drawingml.x2006.main.CTTableCol; import org.openxmlformats.schemas.drawingml.x2006.main.CTTableRow; import org.openxmlformats.schemas.presentationml.x2006.main.CTGraphicalObjectFrame; import org.openxmlformats.schemas.presentationml.x2006.main.CTGraphicalObjectFrameNonVisual; @@ -62,7 +63,7 @@ public class XSLFTable extends XSLFGraphicFrame implements Iterable iterator(){ return _rows.iterator(); } @@ -153,7 +155,7 @@ public class XSLFTable extends XSLFGraphicFrame implements Iterable 50); assertEquals(0, tc0.getLineWidth(), 0); - + ppt.close(); } -- 2.39.5