diff options
author | William Victor Mote <vmote@apache.org> | 2003-10-10 15:40:31 +0000 |
---|---|---|
committer | William Victor Mote <vmote@apache.org> | 2003-10-10 15:40:31 +0000 |
commit | 0b9f02cb3bc69164b856e409f5ad84d80a374a31 (patch) | |
tree | b14d511619386cb440b63ceb510efc8dfecf16b7 /src/java/org/apache/fop/fo/pagination | |
parent | e62784b07a48e34bd3e885a3a55912512ee52717 (diff) | |
download | xmlgraphics-fop-0b9f02cb3bc69164b856e409f5ad84d80a374a31.tar.gz xmlgraphics-fop-0b9f02cb3bc69164b856e409f5ad84d80a374a31.zip |
open up access in misc places by either adding accessor methods or by loosening acess control
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196953 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/LayoutMasterSet.java | 4 | ||||
-rw-r--r-- | src/java/org/apache/fop/fo/pagination/PageSequence.java | 24 |
2 files changed, 14 insertions, 14 deletions
diff --git a/src/java/org/apache/fop/fo/pagination/LayoutMasterSet.java b/src/java/org/apache/fop/fo/pagination/LayoutMasterSet.java index 3f61d658c..5c4cc79a0 100644 --- a/src/java/org/apache/fop/fo/pagination/LayoutMasterSet.java +++ b/src/java/org/apache/fop/fo/pagination/LayoutMasterSet.java @@ -176,7 +176,7 @@ public class LayoutMasterSet extends FObj { * duplicate, that it maps to the same region-class. * @throws FOPException if there's a name duplication */ - protected void checkRegionNames() throws FOPException { + public void checkRegionNames() throws FOPException { Map allRegions = new java.util.HashMap(); for (Iterator spm = simplePageMasters.values().iterator(); spm.hasNext();) { @@ -210,7 +210,7 @@ public class LayoutMasterSet extends FObj { * @param regionName name of the region * @return true when the region name specified has a region in this LayoutMasterSet */ - protected boolean regionNameExists(String regionName) { + public boolean regionNameExists(String regionName) { for (Iterator e = simplePageMasters.values().iterator(); e.hasNext();) { if (((SimplePageMaster)e.next()).regionNameExists(regionName)) { diff --git a/src/java/org/apache/fop/fo/pagination/PageSequence.java b/src/java/org/apache/fop/fo/pagination/PageSequence.java index 31f9cd157..a0c5f017f 100644 --- a/src/java/org/apache/fop/fo/pagination/PageSequence.java +++ b/src/java/org/apache/fop/fo/pagination/PageSequence.java @@ -70,10 +70,10 @@ public class PageSequence extends FObj { // // intial-page-number types // - private static final int EXPLICIT = 0; - private static final int AUTO = 1; - private static final int AUTO_EVEN = 2; - private static final int AUTO_ODD = 3; + public static final int EXPLICIT = 0; + public static final int AUTO = 1; + public static final int AUTO_EVEN = 2; + public static final int AUTO_ODD = 3; // // associations @@ -96,7 +96,7 @@ public class PageSequence extends FObj { /** * Map of flows to their flow name (flow-name, Flow) */ - private HashMap flowMap; + public HashMap flowMap; // according to communication from Paul Grosso (XSL-List, // 001228, Number 406), confusion in spec section 6.4.5 about @@ -113,19 +113,19 @@ public class PageSequence extends FObj { // page number and related formatting variables private String ipnValue; - private int currentPageNumber = 0; + public int currentPageNumber = 0; private int explicitFirstNumber = 0; // explicitly specified - private int firstPageNumber = 0; // actual - private PageNumberGenerator pageNumberGenerator; + public int firstPageNumber = 0; // actual + public PageNumberGenerator pageNumberGenerator; - private int forcePageCount = 0; + public int forcePageCount = 0; private int pageCount = 0; private boolean isForcing = false; /** * specifies page numbering type (auto|auto-even|auto-odd|explicit) */ - private int pageNumberType; + public int pageNumberType; /** * used to determine whether to calculate auto, auto-even, auto-odd @@ -139,8 +139,8 @@ public class PageSequence extends FObj { * The pageSequenceMaster is null if master-reference refers to a * simple-page-master. */ - private SimplePageMaster simplePageMaster; - private PageSequenceMaster pageSequenceMaster; + public SimplePageMaster simplePageMaster; + public PageSequenceMaster pageSequenceMaster; /** * The main content flow for this page-sequence. |