From 022578c15ef7ac4303934291d85e274f3a48496c Mon Sep 17 00:00:00 2001 From: arved Date: Sun, 16 Apr 2000 01:36:26 +0000 Subject: [PATCH] initial-page-number for page-sequence git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193328 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/fo/PropertyListBuilder.java | 1 + src/org/apache/fop/fo/pagination/PageSequence.java | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/org/apache/fop/fo/PropertyListBuilder.java b/src/org/apache/fop/fo/PropertyListBuilder.java index 4dd71632b..2fac7d7a0 100644 --- a/src/org/apache/fop/fo/PropertyListBuilder.java +++ b/src/org/apache/fop/fo/PropertyListBuilder.java @@ -162,6 +162,7 @@ public class PropertyListBuilder { propertyTable.put("right",Right.maker()); propertyTable.put("top",Top.maker()); propertyTable.put("width",Width.maker()); + propertyTable.put("initial-page-number",InitialPageNumber.maker()); } public Property computeProperty(PropertyList propertyList, String propertyName) { diff --git a/src/org/apache/fop/fo/pagination/PageSequence.java b/src/org/apache/fop/fo/pagination/PageSequence.java index 6e8e34622..ce2664c23 100644 --- a/src/org/apache/fop/fo/pagination/PageSequence.java +++ b/src/org/apache/fop/fo/pagination/PageSequence.java @@ -105,6 +105,9 @@ public class PageSequence extends FObj { + parent.getName()); } layoutMasterSet = root.getLayoutMasterSet(); + + InitialPageNumber ipn = (InitialPageNumber) this.properties.get("initial-page-number"); + this.currentPageNumber = ipn.getInitialPageNumber() - 1; } protected Page makePage(AreaTree areaTree) throws FOPException { -- 2.39.5