From 2068719a604acf7eaccadf185c7112bd2e6e2565 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Fri, 4 Feb 2011 08:14:41 +0000 Subject: [PATCH] Bugzilla #50705: Fix to preserve the order of AFP TLEs and NOPs as given in the XSL-FO document. Submitted by: Mehdi Houshmand git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1067109 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/fop/afp/modca/AbstractPageObject.java | 11 ++++------- src/java/org/apache/fop/afp/modca/Overlay.java | 1 - src/java/org/apache/fop/afp/modca/PageGroup.java | 6 ------ src/java/org/apache/fop/afp/modca/PageObject.java | 1 - status.xml | 3 +++ 5 files changed, 7 insertions(+), 15 deletions(-) diff --git a/src/java/org/apache/fop/afp/modca/AbstractPageObject.java b/src/java/org/apache/fop/afp/modca/AbstractPageObject.java index 1454cf96d..99afd322a 100644 --- a/src/java/org/apache/fop/afp/modca/AbstractPageObject.java +++ b/src/java/org/apache/fop/afp/modca/AbstractPageObject.java @@ -57,11 +57,8 @@ public abstract class AbstractPageObject extends AbstractNamedAFPObject implemen /** The current presentation text object */ private PresentationTextObject currentPresentationTextObject = null; - /** The list of tag logical elements */ - protected List/**/ tagLogicalElements = null; - /** The list of objects within this resource container */ - protected List/**/ objects = new java.util.ArrayList(); + protected List/**/ objects = new java.util.ArrayList(); /** The page width */ private int width; @@ -217,10 +214,10 @@ public abstract class AbstractPageObject extends AbstractNamedAFPObject implemen * @return the TLEs */ protected List getTagLogicalElements() { - if (tagLogicalElements == null) { - this.tagLogicalElements = new java.util.ArrayList/**/(); + if (objects == null) { + this.objects = new java.util.ArrayList/**/(); } - return this.tagLogicalElements; + return this.objects; } /** diff --git a/src/java/org/apache/fop/afp/modca/Overlay.java b/src/java/org/apache/fop/afp/modca/Overlay.java index 0179c94a7..2793e93f5 100644 --- a/src/java/org/apache/fop/afp/modca/Overlay.java +++ b/src/java/org/apache/fop/afp/modca/Overlay.java @@ -72,7 +72,6 @@ public class Overlay extends PageObject { getActiveEnvironmentGroup().writeToStream(os); - writeObjects(tagLogicalElements, os); writeObjects(objects, os); } diff --git a/src/java/org/apache/fop/afp/modca/PageGroup.java b/src/java/org/apache/fop/afp/modca/PageGroup.java index 895ec1259..aceb0ff80 100644 --- a/src/java/org/apache/fop/afp/modca/PageGroup.java +++ b/src/java/org/apache/fop/afp/modca/PageGroup.java @@ -75,12 +75,6 @@ public class PageGroup extends AbstractResourceEnvironmentGroupContainer { complete = true; } - /** {@inheritDoc} */ - protected void writeContent(OutputStream os) throws IOException { - writeObjects(tagLogicalElements, os, true); - super.writeContent(os); - } - /** {@inheritDoc} */ protected void writeStart(OutputStream os) throws IOException { byte[] data = new byte[17]; diff --git a/src/java/org/apache/fop/afp/modca/PageObject.java b/src/java/org/apache/fop/afp/modca/PageObject.java index 6c2547f0b..33bfe0997 100644 --- a/src/java/org/apache/fop/afp/modca/PageObject.java +++ b/src/java/org/apache/fop/afp/modca/PageObject.java @@ -185,7 +185,6 @@ public class PageObject extends AbstractResourceGroupContainer { getActiveEnvironmentGroup().writeToStream(os); - writeObjects(tagLogicalElements, os); writeObjects(objects, os); } diff --git a/status.xml b/status.xml index 2ba48dc80..2a7fe4f12 100644 --- a/status.xml +++ b/status.xml @@ -59,6 +59,9 @@ documents. Example: the fix of marks layering will be such a case when it's done. --> + + Fix to preserve the order of AFP TLEs and NOPs as given in the XSL-FO document. + Added support for lookup of alternative glyphs when additional single-byte encodings are used, ex. replacing "Omegagreek" by "Omega" and vice versa. -- 2.39.5