diff options
Diffstat (limited to 'src/java/org/apache/fop/layoutmgr/PageSequenceLayoutManager.java')
-rw-r--r-- | src/java/org/apache/fop/layoutmgr/PageSequenceLayoutManager.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/PageSequenceLayoutManager.java b/src/java/org/apache/fop/layoutmgr/PageSequenceLayoutManager.java index 2e2bd0a22..0ee7121af 100644 --- a/src/java/org/apache/fop/layoutmgr/PageSequenceLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/PageSequenceLayoutManager.java @@ -254,6 +254,16 @@ public class PageSequenceLayoutManager extends AbstractPageSequenceLayoutManager return pageProvider.isOnFirstPage(partIndex); } + protected int getLastPageNumber() { + return pageProvider.getLastPageIndex(); + } + + protected int getWidthOfCurrentPage() { + if (curPage != null) { + return (int) curPage.getPageViewport().getViewArea().getWidth(); + } + return 0; + } /** * Registers the given footnotes so that they can be added to the current page, before any other footnote. * |