From 8e50d92e22db64b098f7b601b6980719d8df1862 Mon Sep 17 00:00:00 2001 From: Steve Coffman Date: Thu, 12 Oct 2000 22:11:33 +0000 Subject: [PATCH] Christian Geisert's patch to allow JDK 1.1 people to use no images. Doesn't hurt on 1.2, but haven't tested on 1.1 system. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193724 13f79535-47bb-0310-9956-ffa450edef68 --- build.xml | 28 +++++++++++++++++++ docs/examples/fo/images.fo | 2 +- lib/Compare.java | 2 +- src/codegen/properties.xml | 4 +-- .../fop/fo/pagination/PageSequenceMaster.java | 5 ++-- .../RepeatablePageMasterAlternatives.java | 2 +- src/org/apache/fop/pdf/PDFBinaryStream.java | 6 ++-- 7 files changed, 39 insertions(+), 10 deletions(-) diff --git a/build.xml b/build.xml index de82dedf5..0247fd7b2 100644 --- a/build.xml +++ b/build.xml @@ -155,6 +155,14 @@ Sometimes ant gives out this warnings, but the build is finished without any pro + + @@ -317,6 +325,19 @@ Sometimes ant gives out this warnings, but the build is finished without any pro excludes="**/${ignore_this},${jimi}"/> + + + + + + + + @@ -327,6 +348,13 @@ Sometimes ant gives out this warnings, but the build is finished without any pro includes="org/**"/> + + + + + diff --git a/docs/examples/fo/images.fo b/docs/examples/fo/images.fo index 4d2b4209f..ae57bbd77 100644 --- a/docs/examples/fo/images.fo +++ b/docs/examples/fo/images.fo @@ -1,6 +1,6 @@ - + true - start + center end + start justify - center start diff --git a/src/org/apache/fop/fo/pagination/PageSequenceMaster.java b/src/org/apache/fop/fo/pagination/PageSequenceMaster.java index 1090d9f3e..068e71bc7 100644 --- a/src/org/apache/fop/fo/pagination/PageSequenceMaster.java +++ b/src/org/apache/fop/fo/pagination/PageSequenceMaster.java @@ -109,12 +109,13 @@ public class PageSequenceMaster extends FObj { protected void addSubsequenceSpecifier( SubSequenceSpecifier pageMasterReference ) { - subSequenceSpecifiers.add( pageMasterReference ); + subSequenceSpecifiers.addElement( pageMasterReference ); } protected SubSequenceSpecifier getNextSubsequenceSpecifier() { - currentPmr = (SubSequenceSpecifier)subSequenceSpecifiers.remove( 0 ); + currentPmr = (SubSequenceSpecifier)subSequenceSpecifiers.elementAt( 0 ); + subSequenceSpecifiers.removeElementAt(0); return currentPmr; } diff --git a/src/org/apache/fop/fo/pagination/RepeatablePageMasterAlternatives.java b/src/org/apache/fop/fo/pagination/RepeatablePageMasterAlternatives.java index 358536e40..891e91cf3 100644 --- a/src/org/apache/fop/fo/pagination/RepeatablePageMasterAlternatives.java +++ b/src/org/apache/fop/fo/pagination/RepeatablePageMasterAlternatives.java @@ -129,7 +129,7 @@ public class RepeatablePageMasterAlternatives extends FObj for (int i = 0; i < conditionalPageMasterRefs.size(); i++) { ConditionalPageMasterReference cpmr = - (ConditionalPageMasterReference)conditionalPageMasterRefs.get(i); + (ConditionalPageMasterReference)conditionalPageMasterRefs.elementAt(i); // 0-indexed page number if (cpmr.isValid(currentPageNumber + 1, thisIsFirstPage)) diff --git a/src/org/apache/fop/pdf/PDFBinaryStream.java b/src/org/apache/fop/pdf/PDFBinaryStream.java index 3e8320f59..3383bfc28 100644 --- a/src/org/apache/fop/pdf/PDFBinaryStream.java +++ b/src/org/apache/fop/pdf/PDFBinaryStream.java @@ -124,7 +124,7 @@ if (i % 75 == 0) buffer.append("\n"); throw new PDFFilterException("filter not supported"); } - this.m_filters.add(filter); + this.m_filters.addElement(filter); } public String toPDF() { @@ -135,7 +135,7 @@ if (i % 75 == 0) buffer.append("\n"); buffer.append("\n"); buffer.append("/Filter ["); for (int i = this.m_filters.size(); i > 0; i--) { - PDFFilter filter = (PDFFilter) this.m_filters.get(i - 1); + PDFFilter filter = (PDFFilter) this.m_filters.elementAt(i - 1); buffer.append(filter.toPDF()); if (i > 1) buffer.append(" "); } @@ -161,7 +161,7 @@ if (i % 75 == 0) buffer.append("\n"); if (this.m_filters.size() > 0) { buffer.append("/Filter ["); for (int i = this.m_filters.size(); i > 0; i--) { - PDFFilter filter = (PDFFilter) this.m_filters.get(i - 1); + PDFFilter filter = (PDFFilter) this.m_filters.elementAt(i - 1); buffer.append(filter.toPDF()); if (i > 1) buffer.append(" "); } -- 2.39.5