aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorarved <arved@unknown>2000-12-27 03:50:52 +0000
committerarved <arved@unknown>2000-12-27 03:50:52 +0000
commita3a605be6605afc0fd5ba0878f8207fac4d99cc0 (patch)
tree26ecd8c1584b509d27bfe6ee2e7e1535aabad3ad /src
parent7fecf6931aa8013a569926ffbcc43b33a95724d0 (diff)
downloadxmlgraphics-fop-a3a605be6605afc0fd5ba0878f8207fac4d99cc0.tar.gz
xmlgraphics-fop-a3a605be6605afc0fd5ba0878f8207fac4d99cc0.zip
Support for column breaks
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193923 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/org/apache/fop/fo/flow/Block.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/org/apache/fop/fo/flow/Block.java b/src/org/apache/fop/fo/flow/Block.java
index 63d15d5cc..6b261cc73 100644
--- a/src/org/apache/fop/fo/flow/Block.java
+++ b/src/org/apache/fop/fo/flow/Block.java
@@ -275,6 +275,10 @@ public class Block extends FObjMixed {
return new Status(Status.FORCE_PAGE_BREAK_EVEN);
}
+ if (breakBefore == BreakBefore.COLUMN) {
+ return new Status(Status.FORCE_COLUMN_BREAK);
+ }
+
int numChildren = this.children.size();
for (int i = 0; i < numChildren; i++) {
FONode fo = (FONode) children.elementAt(i);
@@ -417,6 +421,11 @@ public class Block extends FObjMixed {
return new Status(Status.FORCE_PAGE_BREAK_EVEN);
}
+ if (breakAfter == BreakAfter.COLUMN) {
+ this.marker = BREAK_AFTER;
+ return new Status(Status.FORCE_COLUMN_BREAK);
+ }
+
if (keepWithNext != 0) {
return new Status(Status.KEEP_WITH_NEXT);
}