From a3a605be6605afc0fd5ba0878f8207fac4d99cc0 Mon Sep 17 00:00:00 2001 From: arved Date: Wed, 27 Dec 2000 03:50:52 +0000 Subject: [PATCH] Support for column breaks git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193923 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/fo/flow/Block.java | 9 +++++++++ 1 file changed, 9 insertions(+) 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); } -- 2.39.5