diff options
author | Jeremias Maerki <jeremias@apache.org> | 2007-12-27 10:34:15 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2007-12-27 10:34:15 +0000 |
commit | 0c87214d3a98d0836083d191b36aa7abf944d0dc (patch) | |
tree | 4a0c8a4abd081996088ad1b3f711ed61aa6ff2f6 /src/java/org/apache/fop/fo/pagination/ConditionalPageMasterReference.java | |
parent | ed61f771c493e86046f3d13e3d6a553d825dd8f3 (diff) | |
download | xmlgraphics-fop-0c87214d3a98d0836083d191b36aa7abf944d0dc.tar.gz xmlgraphics-fop-0c87214d3a98d0836083d191b36aa7abf944d0dc.zip |
Added new extension element: fox:external-document. It allows to add whole documents such as multi-page TIFF images to be inserted as peers to a page-sequence. Each image will make up an entire page. See the documentation for details. ATM, only single pages are possible. Multi-page images will be supported with the new image package.
Some preparations for page-position="only" but the implementation is incomplete and "only" has no effect, yet. (Just uploaded some stuff I once started)
Some javadoc cleanups.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@607032 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo/pagination/ConditionalPageMasterReference.java')
-rw-r--r-- | src/java/org/apache/fop/fo/pagination/ConditionalPageMasterReference.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/fo/pagination/ConditionalPageMasterReference.java b/src/java/org/apache/fop/fo/pagination/ConditionalPageMasterReference.java index c3d705de2..dfb4ba70b 100644 --- a/src/java/org/apache/fop/fo/pagination/ConditionalPageMasterReference.java +++ b/src/java/org/apache/fop/fo/pagination/ConditionalPageMasterReference.java @@ -93,14 +93,20 @@ public class ConditionalPageMasterReference extends FObj { * @param isFirstPage True if page is first page * @param isLastPage True if page is last page * @param isBlankPage True if page is blank + * @param isOnlyPage True if page is the only page * @return True if the conditions for this reference are met */ protected boolean isValid(boolean isOddPage, boolean isFirstPage, boolean isLastPage, + boolean isOnlyPage, boolean isBlankPage) { // page-position - if (isFirstPage) { + if (isOnlyPage) { + if (pagePosition != EN_ONLY) { + return false; + } + } else if (isFirstPage) { if (pagePosition == EN_REST) { return false; } else if (pagePosition == EN_LAST) { |