diff options
author | Jeremias Maerki <jeremias@apache.org> | 2008-04-15 19:18:46 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2008-04-15 19:18:46 +0000 |
commit | 01a9c273a28516c5850b5d3044e801603158b76b (patch) | |
tree | 2be12c77e61d02e3053372ad321c914f5f31db68 /src/java/org/apache/fop/layoutmgr/BlockLevelLayoutManager.java | |
parent | f993b978c0dfc1ed4c336c97b29eef9b80caf187 (diff) | |
download | xmlgraphics-fop-01a9c273a28516c5850b5d3044e801603158b76b.tar.gz xmlgraphics-fop-01a9c273a28516c5850b5d3044e801603158b76b.zip |
First part of the implementation of stage 1 for advanced keeps (see Wiki): Integer values are treated differently from "always" values in keep-together.within-column for all block-level FOs.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@648381 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/layoutmgr/BlockLevelLayoutManager.java')
-rw-r--r-- | src/java/org/apache/fop/layoutmgr/BlockLevelLayoutManager.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/BlockLevelLayoutManager.java b/src/java/org/apache/fop/layoutmgr/BlockLevelLayoutManager.java index 7e0e9e50e..3dc7ed46e 100644 --- a/src/java/org/apache/fop/layoutmgr/BlockLevelLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/BlockLevelLayoutManager.java @@ -35,11 +35,22 @@ public interface BlockLevelLayoutManager extends LayoutManager { /** Adjustment class: adjustment for line height */ int LINE_HEIGHT_ADJUSTMENT = 3; + /** The integer value for "auto" keep strength */ + int KEEP_AUTO = Integer.MIN_VALUE; + /** The integer value for "always" keep strength */ + int KEEP_ALWAYS = Integer.MAX_VALUE; + int negotiateBPDAdjustment(int adj, KnuthElement lastElement); void discardSpace(KnuthGlue spaceGlue); /** + * Returns the keep-together strength for this element. + * @return the keep-together strength + */ + int getKeepTogetherStrength(); + + /** * @return true if this element must be kept together */ boolean mustKeepTogether(); |