diff options
Diffstat (limited to 'src/java/org/apache/fop/fo/pagination/SubSequenceSpecifier.java')
-rw-r--r-- | src/java/org/apache/fop/fo/pagination/SubSequenceSpecifier.java | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/fo/pagination/SubSequenceSpecifier.java b/src/java/org/apache/fop/fo/pagination/SubSequenceSpecifier.java index 2bb891cd9..330db3b94 100644 --- a/src/java/org/apache/fop/fo/pagination/SubSequenceSpecifier.java +++ b/src/java/org/apache/fop/fo/pagination/SubSequenceSpecifier.java @@ -19,6 +19,7 @@ package org.apache.fop.fo.pagination; +import org.apache.fop.fo.ValidationException; /** * Classes that implement this interface can be added to a {@link PageSequenceMaster}, @@ -36,7 +37,7 @@ public interface SubSequenceSpecifier { * @return the page master name * @throws PageProductionException if there's a problem determining the next page master */ - String getNextPageMasterName(boolean isOddPage, + SimplePageMaster getNextPageMaster(boolean isOddPage, boolean isFirstPage, boolean isLastPage, boolean isBlankPage) @@ -60,5 +61,26 @@ public interface SubSequenceSpecifier { /** @return true if the subsequence has a page master for page-position "only" */ boolean hasPagePositionOnly(); + /** + * called by the parent LayoutMasterSet to resolve object references + * from simple page master reference names + * @param layoutMasterSet the layout-master-set + * @throws ValidationException when a named reference cannot be resolved + * */ + void resolveReferences(LayoutMasterSet layoutMasterSet) throws ValidationException; + + /** + * + * @param flowName name of the main flow + * @return true iff page sequence is a finite sequence or can process the entire main flow + */ + boolean canProcess(String flowName); + + /** + * Test that this is a finite sequence + * @return true iff this is a finite sequence + */ + boolean isInfinite(); + } |