You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ab...@apache.org on 2018/08/26 21:19:07 UTC
svn commit: r1839256 -
/poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/text/XDDFBodyProperties.java
Author: abearez
Date: Sun Aug 26 21:19:07 2018
New Revision: 1839256
URL: http://svn.apache.org/viewvc?rev=1839256&view=rev
Log:
complete body properties with insets
Modified:
poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/text/XDDFBodyProperties.java
Modified: poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/text/XDDFBodyProperties.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/text/XDDFBodyProperties.java?rev=1839256&r1=1839255&r2=1839256&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/text/XDDFBodyProperties.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xddf/usermodel/text/XDDFBodyProperties.java Sun Aug 26 21:19:07 2018
@@ -19,6 +19,7 @@ package org.apache.poi.xddf.usermodel.te
import org.apache.poi.util.Beta;
import org.apache.poi.util.Internal;
+import org.apache.poi.util.Units;
import org.apache.poi.xddf.usermodel.XDDFExtensionList;
import org.openxmlformats.schemas.drawingml.x2006.main.CTTextBodyProperties;
@@ -75,4 +76,68 @@ public class XDDFBodyProperties {
props.setExtLst(list.getXmlObject());
}
}
+
+ public Double getBottomInset() {
+ if (props.isSetBIns()) {
+ return Units.toPoints(props.getBIns());
+ } else {
+ return null;
+ }
+ }
+
+ public void setBottomInset(Double points) {
+ if (points == null || Double.isNaN(points)) {
+ props.unsetBIns();
+ } else {
+ props.setBIns(Units.toEMU(points));
+ }
+ }
+
+ public Double getLeftInset() {
+ if (props.isSetLIns()) {
+ return Units.toPoints(props.getLIns());
+ } else {
+ return null;
+ }
+ }
+
+ public void setLeftInset(Double points) {
+ if (points == null || Double.isNaN(points)) {
+ props.unsetLIns();
+ } else {
+ props.setLIns(Units.toEMU(points));
+ }
+ }
+
+ public Double getRightInset() {
+ if (props.isSetRIns()) {
+ return Units.toPoints(props.getRIns());
+ } else {
+ return null;
+ }
+ }
+
+ public void setRightInset(Double points) {
+ if (points == null || Double.isNaN(points)) {
+ props.unsetRIns();
+ } else {
+ props.setRIns(Units.toEMU(points));
+ }
+ }
+
+ public Double getTopInset() {
+ if (props.isSetTIns()) {
+ return Units.toPoints(props.getTIns());
+ } else {
+ return null;
+ }
+ }
+
+ public void setTopInset(Double points) {
+ if (points == null || Double.isNaN(points)) {
+ props.unsetTIns();
+ } else {
+ props.setTIns(Units.toEMU(points));
+ }
+ }
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org