]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Better support for breaks
authorarved <arved@unknown>
Wed, 27 Dec 2000 03:50:08 +0000 (03:50 +0000)
committerarved <arved@unknown>
Wed, 27 Dec 2000 03:50:08 +0000 (03:50 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193922 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/fo/Status.java

index 2f75c884c41d76ec66b701c5f7a280874ae0b80e..5fdb0566dc58ad5fa13d2143ce73cea4bf20165d 100644 (file)
@@ -64,7 +64,8 @@ public class Status {
     public final static int FORCE_PAGE_BREAK      = 4;
     public final static int FORCE_PAGE_BREAK_EVEN = 5;
     public final static int FORCE_PAGE_BREAK_ODD  = 6;
-    public final static int KEEP_WITH_NEXT        = 7;
+    public final static int FORCE_COLUMN_BREAK = 7;
+    public final static int KEEP_WITH_NEXT        = 8;
 
     public Status(int code) {
        this.code = code;
@@ -81,4 +82,10 @@ public class Status {
     public boolean laidOutNone() {
        return (this.code == AREA_FULL_NONE);
     }
+       
+       public boolean isPageBreak() {
+               return ((this.code == FORCE_PAGE_BREAK)
+               || (this.code == FORCE_PAGE_BREAK_EVEN)
+               || (this.code == FORCE_PAGE_BREAK_ODD));
+       }
 }