aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/layoutmgr/AbstractBreaker.java
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2006-08-04 15:13:53 +0000
committerJeremias Maerki <jeremias@apache.org>2006-08-04 15:13:53 +0000
commitc5315f6df87ff9a1c94bf58efe7029078ceb9b08 (patch)
tree863bfc0091ca299ccf6dbf2f80b170c44c2f9a77 /src/java/org/apache/fop/layoutmgr/AbstractBreaker.java
parentde718914ca7a6f6655d227f5ed55b3d32bb6026a (diff)
downloadxmlgraphics-fop-c5315f6df87ff9a1c94bf58efe7029078ceb9b08.tar.gz
xmlgraphics-fop-c5315f6df87ff9a1c94bf58efe7029078ceb9b08.zip
Bugzilla #39840:
Changed the way overflowing pages are handled. The overflow property on region-body is now used to define the behaviour. It removes the "Some content could not fit..." exception that bugged so many. However, the change does not yet change any keep behaviour. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@428750 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/layoutmgr/AbstractBreaker.java')
-rw-r--r--src/java/org/apache/fop/layoutmgr/AbstractBreaker.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/AbstractBreaker.java b/src/java/org/apache/fop/layoutmgr/AbstractBreaker.java
index c549be3ee..24ee2e4da 100644
--- a/src/java/org/apache/fop/layoutmgr/AbstractBreaker.java
+++ b/src/java/org/apache/fop/layoutmgr/AbstractBreaker.java
@@ -196,6 +196,15 @@ public abstract class AbstractBreaker {
return null;
}
+ /**
+ * Returns a PageBreakingLayoutListener for the PageBreakingAlgorithm to notify about layout
+ * problems.
+ * @return the listener instance or null if no notifications are needed
+ */
+ protected PageBreakingAlgorithm.PageBreakingLayoutListener getLayoutListener() {
+ return null;
+ }
+
/*
* This method is to contain the logic to determine the LM's
* getNextKnuthElements() implementation(s) that are to be called.
@@ -310,7 +319,7 @@ public abstract class AbstractBreaker {
log.debug("PLM> start of algorithm (" + this.getClass().getName()
+ "), flow BPD =" + flowBPD);
PageBreakingAlgorithm alg = new PageBreakingAlgorithm(getTopLevelLM(),
- getPageProvider(),
+ getPageProvider(), getLayoutListener(),
alignment, alignmentLast, footnoteSeparatorLength,
isPartOverflowRecoveryActivated(), autoHeight, isSinglePartFavored());
int iOptPageCount;