]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Two new flags for handling keeps.
authorJeremias Maerki <jeremias@apache.org>
Tue, 24 May 2005 09:36:19 +0000 (09:36 +0000)
committerJeremias Maerki <jeremias@apache.org>
Tue, 24 May 2005 09:36:19 +0000 (09:36 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198680 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/layoutmgr/LayoutContext.java

index 6452f75bcb8dd288e9e55cdb061582102d8e0508..b32e830025b1fd4f69a217f2ebdf6a462078d7b9 100644 (file)
@@ -52,6 +52,17 @@ public class LayoutContext {
 
     public static final int RESOLVE_LEADING_SPACE = 0x100;
 
+    /**
+     * This flag indicates that there's a keep-with-next that hasn't
+     * been processed, yet.
+     */
+    public static final int KEEP_WITH_NEXT_PENDING = 0x200;
+    /**
+     * This flag indicates that there's a keep-with-previous that hasn't
+     * been processed, yet.
+     */
+    public static final int KEEP_WITH_PREVIOUS_PENDING = 0x400;
+
 
     public int flags; // Contains some set of flags defined above
     /**
@@ -155,6 +166,14 @@ public class LayoutContext {
         return ((this.flags & SUPPRESS_LEADING_SPACE) != 0);
     }
 
+    public boolean isKeepWithNextPending() {
+        return ((this.flags & KEEP_WITH_NEXT_PENDING) != 0);
+    }
+    
+    public boolean isKeepWithPreviousPending() {
+        return ((this.flags & KEEP_WITH_PREVIOUS_PENDING) != 0);
+    }
+    
     public void setLeadingSpace(SpaceSpecifier space) {
         leadingSpace = space;
     }