diff options
author | Jeremias Maerki <jeremias@apache.org> | 2005-05-24 09:36:19 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2005-05-24 09:36:19 +0000 |
commit | fba3e382230a6cd4d0fd16e16ab945526290608e (patch) | |
tree | 3ff2f280acbca0ab05e1ab1c1f1fb4d4fa02ef5c /src/java | |
parent | 8990025f3a6772e20f7d31eee59fb078e98a50f7 (diff) | |
download | xmlgraphics-fop-fba3e382230a6cd4d0fd16e16ab945526290608e.tar.gz xmlgraphics-fop-fba3e382230a6cd4d0fd16e16ab945526290608e.zip |
Two new flags for handling keeps.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198680 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java')
-rw-r--r-- | src/java/org/apache/fop/layoutmgr/LayoutContext.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/LayoutContext.java b/src/java/org/apache/fop/layoutmgr/LayoutContext.java index 6452f75bc..b32e83002 100644 --- a/src/java/org/apache/fop/layoutmgr/LayoutContext.java +++ b/src/java/org/apache/fop/layoutmgr/LayoutContext.java @@ -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; } |