]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Support for column breaks
authorarved <arved@unknown>
Wed, 27 Dec 2000 03:50:52 +0000 (03:50 +0000)
committerarved <arved@unknown>
Wed, 27 Dec 2000 03:50:52 +0000 (03:50 +0000)
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

index 63d15d5ccf8e7a98b4d165a5e6c5e6bdd2d4a713..6b261cc73f7ceae7231c863680388b6e7c32c400 100644 (file)
@@ -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);
         }