From: arved Date: Sun, 16 Apr 2000 01:36:26 +0000 (+0000) Subject: initial-page-number for page-sequence X-Git-Tag: pre-columns~536 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=022578c15ef7ac4303934291d85e274f3a48496c;p=xmlgraphics-fop.git initial-page-number for page-sequence git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193328 13f79535-47bb-0310-9956-ffa450edef68 --- 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 {