aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/area/BodyRegion.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/org/apache/fop/area/BodyRegion.java')
-rw-r--r--src/java/org/apache/fop/area/BodyRegion.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/area/BodyRegion.java b/src/java/org/apache/fop/area/BodyRegion.java
index 89bb206f2..df7e914b7 100644
--- a/src/java/org/apache/fop/area/BodyRegion.java
+++ b/src/java/org/apache/fop/area/BodyRegion.java
@@ -81,6 +81,15 @@ public class BodyRegion extends RegionReference {
return this.columnGap;
}
+ int getContentIPD() {
+ RegionViewport rv = getRegionViewport();
+ return getIPD() - rv.getBorderAndPaddingWidthStart() - rv.getBorderAndPaddingWidthEnd();
+ }
+
+ public int getColumnIPD() {
+ return (getContentIPD() - (columnCount - 1) * columnGap) / columnCount;
+ }
+
/**
* Get the main reference area.
*