From: arved Date: Wed, 27 Dec 2000 03:50:52 +0000 (+0000) Subject: Support for column breaks X-Git-Tag: fop-0_17_0~138 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a3a605be6605afc0fd5ba0878f8207fac4d99cc0;p=xmlgraphics-fop.git Support for column breaks git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193923 13f79535-47bb-0310-9956-ffa450edef68 --- 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); }