aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKaren Lease <klease@apache.org>2001-11-11 14:10:29 +0000
committerKaren Lease <klease@apache.org>2001-11-11 14:10:29 +0000
commitb36d96ca65dfe216087a1684d14b16a3eab5a500 (patch)
tree1adc10044e1cd6df1feda68c64ba17cc5b3d5bdc /src
parentaf32d52f3d0d482ca55cf83ec980b69b2cd487e3 (diff)
downloadxmlgraphics-fop-b36d96ca65dfe216087a1684d14b16a3eab5a500.tar.gz
xmlgraphics-fop-b36d96ca65dfe216087a1684d14b16a3eab5a500.zip
A few changes to tie in some more LayoutManager classes
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194555 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/org/apache/fop/area/MainReference.java1
-rw-r--r--src/org/apache/fop/area/MinOptMax.java2
-rw-r--r--src/org/apache/fop/area/Span.java1
-rw-r--r--src/org/apache/fop/area/inline/InlineArea.java7
4 files changed, 10 insertions, 1 deletions
diff --git a/src/org/apache/fop/area/MainReference.java b/src/org/apache/fop/area/MainReference.java
index 95b3bd82a..b18401995 100644
--- a/src/org/apache/fop/area/MainReference.java
+++ b/src/org/apache/fop/area/MainReference.java
@@ -19,6 +19,7 @@ public class MainReference extends Area implements Serializable {
public void addSpan(Span span) {
spanAreas.add(span);
+ span.setParent(this);
}
public List getSpans() {
diff --git a/src/org/apache/fop/area/MinOptMax.java b/src/org/apache/fop/area/MinOptMax.java
index e7ed4add5..8a6684cd1 100644
--- a/src/org/apache/fop/area/MinOptMax.java
+++ b/src/org/apache/fop/area/MinOptMax.java
@@ -14,7 +14,7 @@ package org.apache.fop.area;
* variables are package visible.
*/
-public class MinOptMax {
+public class MinOptMax implements java.io.Serializable {
/** Publicly visible min(imum), opt(imum) and max(imum) values.*/
public int min;
diff --git a/src/org/apache/fop/area/Span.java b/src/org/apache/fop/area/Span.java
index 85012cdb9..20661dad7 100644
--- a/src/org/apache/fop/area/Span.java
+++ b/src/org/apache/fop/area/Span.java
@@ -22,6 +22,7 @@ public class Span extends Area {
public void addFlow(Flow flow) {
flowAreas.add(flow);
+ flow.setParent(this);
}
public int getColumnCount() {
diff --git a/src/org/apache/fop/area/inline/InlineArea.java b/src/org/apache/fop/area/inline/InlineArea.java
index d688ae038..5a63ef0ed 100644
--- a/src/org/apache/fop/area/inline/InlineArea.java
+++ b/src/org/apache/fop/area/inline/InlineArea.java
@@ -8,6 +8,7 @@
package org.apache.fop.area.inline;
import org.apache.fop.area.Area;
+import org.apache.fop.area.MinOptMax;
import org.apache.fop.area.Property;
import org.apache.fop.render.Renderer;
@@ -45,6 +46,12 @@ public class InlineArea extends Area {
return width;
}
+ public MinOptMax getAllocationIPD() {
+ // Should also account for any borders and padding in the
+ // inline progression dimension
+ return new MinOptMax(width);
+ }
+
public void setOffset(int v) {
verticalPosition = v;
}