]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
initial-page-number for page-sequence
authorarved <arved@unknown>
Sun, 16 Apr 2000 01:36:26 +0000 (01:36 +0000)
committerarved <arved@unknown>
Sun, 16 Apr 2000 01:36:26 +0000 (01:36 +0000)
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
src/org/apache/fop/fo/pagination/PageSequence.java

index 4dd71632b881b882f82ec127d96a2c3bba4ebf80..2fac7d7a007b41f497da5c29c6862e0bc969c62b 100644 (file)
@@ -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) {
index 6e8e34622184c49b7ef88a34469912de3e4cc5a3..ce2664c23e6d080ede15a8addb84aaf9841a2c62 100644 (file)
@@ -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 {