aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fo/pagination
diff options
context:
space:
mode:
authorSimon Pepping <spepping@apache.org>2006-01-06 21:31:02 +0000
committerSimon Pepping <spepping@apache.org>2006-01-06 21:31:02 +0000
commit5c359c10e6131572e46745dfe46c4c556e361ea0 (patch)
tree053cb689ec15010fe4f01fdc489054dddde99299 /src/java/org/apache/fop/fo/pagination
parentee938b7c2361df5ad4629ba6f90d84c74b5278a5 (diff)
downloadxmlgraphics-fop-5c359c10e6131572e46745dfe46c4c556e361ea0.tar.gz
xmlgraphics-fop-5c359c10e6131572e46745dfe46c4c556e361ea0.zip
Implementation of force-page-count property, patch by Gerhard Oettl,
somewhat rearranged by me. See bug 38087. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@366569 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo/pagination')
-rw-r--r--src/java/org/apache/fop/fo/pagination/PageSequence.java18
1 files changed, 15 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/fo/pagination/PageSequence.java b/src/java/org/apache/fop/fo/pagination/PageSequence.java
index 1066b67e1..80006da30 100644
--- a/src/java/org/apache/fop/fo/pagination/PageSequence.java
+++ b/src/java/org/apache/fop/fo/pagination/PageSequence.java
@@ -1,5 +1,5 @@
/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -139,7 +139,6 @@ public class PageSequence extends FObj {
new PageNumberGenerator(format, groupingSeparator, groupingSize, letterValue);
checkId(id);
- initPageNumber();
getFOEventHandler().startPageSequence(this);
}
@@ -235,7 +234,7 @@ public class PageSequence extends FObj {
/**
* Initialize the current page number for the start of the page sequence.
*/
- private void initPageNumber() {
+ public void initPageNumber() {
int pageNumberType = 0;
if (initialPageNumber.getEnum() != 0) {
@@ -511,4 +510,17 @@ public class PageSequence extends FObj {
public int getNameId() {
return FO_PAGE_SEQUENCE;
}
+ /**
+ * get the forcePageCount value
+ */
+ public int getForcePageCount() {
+ return forcePageCount;
+ }
+
+ /**
+ * get the initial pagenumber property value
+ */
+ public Numeric getInitialPageNumber() {
+ return initialPageNumber;
+ }
}