]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
1. For maintenance and accuracy, centralized the setupID() functionality
authorGlen Mazza <gmazza@apache.org>
Wed, 11 Aug 2004 04:15:28 +0000 (04:15 +0000)
committerGlen Mazza <gmazza@apache.org>
Wed, 11 Aug 2004 04:15:28 +0000 (04:15 +0000)
from the various FO's to the FObj base class.

2. Created a lookup bitset in PropertySets to help accomplish the above.

3. Generally moved initialization code from the setup() methods to the
addProperties() methods in the various FO subclasses.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197865 13f79535-47bb-0310-9956-ffa450edef68

32 files changed:
src/java/org/apache/fop/fo/FObj.java
src/java/org/apache/fop/fo/FObjMixed.java
src/java/org/apache/fop/fo/PropertySets.java
src/java/org/apache/fop/fo/flow/BasicLink.java
src/java/org/apache/fop/fo/flow/BidiOverride.java
src/java/org/apache/fop/fo/flow/Block.java
src/java/org/apache/fop/fo/flow/BlockContainer.java
src/java/org/apache/fop/fo/flow/Character.java
src/java/org/apache/fop/fo/flow/ExternalGraphic.java
src/java/org/apache/fop/fo/flow/InitialPropertySet.java
src/java/org/apache/fop/fo/flow/Inline.java
src/java/org/apache/fop/fo/flow/InlineContainer.java
src/java/org/apache/fop/fo/flow/Leader.java
src/java/org/apache/fop/fo/flow/ListBlock.java
src/java/org/apache/fop/fo/flow/ListItem.java
src/java/org/apache/fop/fo/flow/ListItemBody.java
src/java/org/apache/fop/fo/flow/ListItemLabel.java
src/java/org/apache/fop/fo/flow/MultiCase.java
src/java/org/apache/fop/fo/flow/MultiProperties.java
src/java/org/apache/fop/fo/flow/MultiPropertySet.java
src/java/org/apache/fop/fo/flow/MultiSwitch.java
src/java/org/apache/fop/fo/flow/MultiToggle.java
src/java/org/apache/fop/fo/flow/PageNumber.java
src/java/org/apache/fop/fo/flow/PageNumberCitation.java
src/java/org/apache/fop/fo/flow/Table.java
src/java/org/apache/fop/fo/flow/TableAndCaption.java
src/java/org/apache/fop/fo/flow/TableBody.java
src/java/org/apache/fop/fo/flow/TableCaption.java
src/java/org/apache/fop/fo/flow/TableCell.java
src/java/org/apache/fop/fo/flow/TableColumn.java
src/java/org/apache/fop/fo/flow/TableRow.java
src/java/org/apache/fop/fo/pagination/PageSequence.java

index ec12e84d50ea5590296d1c368cd55b2e16924132..68089e7f18ae691bea1504a28eb0117bbdc15139 100644 (file)
@@ -121,6 +121,33 @@ public class FObj extends FONode implements Constants {
         propertyList.addAttributesToList(attlist);
         propMgr = new PropertyManager(propertyList);
         setWritingMode();
+        
+        // if this FO can have a PR_ID, make sure it is unique
+        if (PropertySets.canHaveId(getNameId())) {
+            setupID();
+        }
+    }
+
+    /**
+     * Setup the id for this formatting object.
+     * Most formatting objects can have an id that can be referenced.
+     * This methods checks that the id isn't already used by another
+     * fo and sets the id attribute of this object.
+     */
+    private void setupID() {
+        Property prop = this.propertyList.get(PR_ID);
+        if (prop != null) {
+            String str = prop.getString();
+            if (str != null && !str.equals("")) {
+                Set idrefs = getFOInputHandler().getIDReferences();
+                if (!idrefs.contains(str)) {
+                    id = str;
+                    idrefs.add(id);
+                } else {
+                    getLogger().warn("duplicate id:" + str + " ignored");
+                }
+            }
+        }
     }
 
     /**
@@ -285,28 +312,6 @@ public class FObj extends FONode implements Constants {
         return new Integer(0);
     }
 
-    /**
-     * Setup the id for this formatting object.
-     * Most formatting objects can have an id that can be referenced.
-     * This methods checks that the id isn't already used by another
-     * fo and sets the id attribute of this object.
-     */
-    public void setupID() {
-        Property prop = this.propertyList.get(PR_ID);
-        if (prop != null) {
-            String str = prop.getString();
-            if (str != null && !str.equals("")) {
-                Set idrefs = getFOInputHandler().getIDReferences();
-                if (!idrefs.contains(str)) {
-                    id = str;
-                    idrefs.add(id);
-                } else {
-                    getLogger().warn("duplicate id:" + str + " ignored");
-                }
-            }
-        }
-    }
-
     /**
      * Get the id string for this formatting object.
      * This will be unique for the fo document.
index b6c6f6f9bafbe476c6eb8b38d6fb9e6b6779d4f4..d5d272f6ee596450ae392476395d20d097e0b72d 100644 (file)
@@ -62,12 +62,6 @@ public class FObjMixed extends FObj {
         addChildNode(ft);
     }
 
-    private void setup() {
-        if (this.propertyList != null) {
-            setupID();
-        }
-    }
-
     /**
      * @return iterator for this object
      */
index e48381e856aab4febf49793f2738b1f6dcfde66a..0bb9f56f7656724d5d347ef95c21dc5ef00a215f 100644 (file)
@@ -26,6 +26,7 @@ import java.util.ArrayList;
 public class PropertySets {
     private static short[][] mapping = null;
     private static BitSet can_have_markers = null;
+    private static BitSet can_have_id = null;
 
     private Element[] elements = new Element[Constants.ELEMENT_COUNT+1];
     private BitSet block_elems = new BitSet();
@@ -968,8 +969,6 @@ public class PropertySets {
         elem.addProperty(Constants.PR_RETRIEVE_POSITION);
         elem.addProperty(Constants.PR_RETRIEVE_BOUNDARY);
 
-
-
         // Merge the attributes from the children into the parent.
         for (boolean dirty = true; dirty; ) {
             dirty = false;
@@ -1039,6 +1038,53 @@ public class PropertySets {
         return can_have_markers.get(elementId);
     }
     
+    /**
+     * Determines if the XSL "id" property is applicable for this FO
+     * @param elementId Constants enumeration ID of the FO (e.g., FO_ROOT)
+     * @return true if id property is applicable, false otherwise
+     * @todo see if we can stop merging properties applicable for the children
+     *   of an FO into the FO in the mapping[] array above.  If so, we can
+     *   rely on getPropertySet() instead of this method.
+     */
+    public static boolean canHaveId(int elementId) {
+        if (can_have_id == null) {
+            can_have_id = new BitSet();
+            can_have_id.set(Constants.FO_BASIC_LINK);
+            can_have_id.set(Constants.FO_BIDI_OVERRIDE);
+            can_have_id.set(Constants.FO_BLOCK);
+            can_have_id.set(Constants.FO_BLOCK_CONTAINER);
+            can_have_id.set(Constants.FO_CHARACTER);
+            can_have_id.set(Constants.FO_EXTERNAL_GRAPHIC);
+            can_have_id.set(Constants.FO_INITIAL_PROPERTY_SET);
+            can_have_id.set(Constants.FO_INLINE);
+            can_have_id.set(Constants.FO_INLINE_CONTAINER);
+            can_have_id.set(Constants.FO_INSTREAM_FOREIGN_OBJECT);
+            can_have_id.set(Constants.FO_LEADER);
+            can_have_id.set(Constants.FO_LIST_BLOCK);
+            can_have_id.set(Constants.FO_LIST_ITEM);
+            can_have_id.set(Constants.FO_LIST_ITEM_BODY);
+            can_have_id.set(Constants.FO_LIST_ITEM_LABEL);
+            can_have_id.set(Constants.FO_MULTI_CASE);
+            can_have_id.set(Constants.FO_MULTI_PROPERTIES);
+            can_have_id.set(Constants.FO_MULTI_PROPERTY_SET);
+            can_have_id.set(Constants.FO_MULTI_SWITCH);
+            can_have_id.set(Constants.FO_MULTI_TOGGLE);
+            can_have_id.set(Constants.FO_PAGE_NUMBER);
+            can_have_id.set(Constants.FO_PAGE_NUMBER_CITATION);
+            can_have_id.set(Constants.FO_PAGE_SEQUENCE);
+            can_have_id.set(Constants.FO_TABLE_AND_CAPTION);
+            can_have_id.set(Constants.FO_TABLE);
+            can_have_id.set(Constants.FO_TABLE_BODY);
+            can_have_id.set(Constants.FO_TABLE_CAPTION);
+            can_have_id.set(Constants.FO_TABLE_CELL);
+            can_have_id.set(Constants.FO_TABLE_FOOTER);
+            can_have_id.set(Constants.FO_TABLE_HEADER);
+            can_have_id.set(Constants.FO_TABLE_ROW);
+            can_have_id.set(Constants.FO_WRAPPER);
+        }
+        return can_have_id.get(elementId);
+    }
+
     /**
      * An object that represent the properties and contents of a fo element
      */
index 2c5d29abf7dd635d2cd8237ce023c6b313733d39..d8cd6775aa328c3648fc3ee9cd026b822e333a37 100644 (file)
@@ -60,7 +60,6 @@ public class BasicLink extends Inline {
      */
     protected void addProperties(Attributes attlist) throws SAXParseException {
         super.addProperties(attlist);
-        setupID();
         
         // This logic is for determining the link represented by this FO.
         String ext =  propertyList.get(PR_EXTERNAL_DESTINATION).getString();
index f942fa4d46de43269b790a2cae15c1f2cb21d52d..0e97b6d836c05d939d9586ffc6ce72466a9a9074 100644 (file)
@@ -78,7 +78,6 @@ public class BidiOverride extends FObjMixed {
      */
     protected void addProperties(Attributes attlist) throws SAXParseException {
         super.addProperties(attlist);
-        setupID();
     }
 
     /**
index 8839fc9d04f888b8d413be1baecb670b0c17c5e1..537a0f553a5a2f1dad363840b431d3798ce6e0e5 100644 (file)
@@ -110,7 +110,6 @@ public class Block extends FObjMixed {
         this.lfTreatment =
           this.propertyList.get(PR_LINEFEED_TREATMENT).getEnum();
 
-        setupID();
         this.align = this.propertyList.get(PR_TEXT_ALIGN).getEnum();
         this.alignLast =
           this.propertyList.get(PR_TEXT_ALIGN_LAST).getEnum();
index d6562e78f3adb8c413a4054357bafdfbe4803e2d..2f2813db589aad3750d24315111d1d0a3d83e40f 100644 (file)
@@ -25,10 +25,6 @@ import java.util.List;
 import org.apache.fop.datatypes.ColorType;
 import org.apache.fop.fo.FONode;
 import org.apache.fop.fo.FObj;
-import org.apache.fop.fo.properties.CommonAbsolutePosition;
-import org.apache.fop.fo.properties.CommonBackground;
-import org.apache.fop.fo.properties.CommonBorderAndPadding;
-import org.apache.fop.fo.properties.CommonMarginBlock;
 import org.apache.fop.layoutmgr.BlockContainerLayoutManager;
 
 import org.xml.sax.Attributes;
@@ -65,44 +61,11 @@ public class BlockContainer extends FObj {
     protected void addProperties(Attributes attlist) throws SAXParseException {
         super.addProperties(attlist);
         this.span = this.propertyList.get(PR_SPAN).getEnum();
-        setupID();
-    }
-
-    private void setup() {
-
-            // Common Accessibility Properties
-            CommonAbsolutePosition mAbsProps = propMgr.getAbsolutePositionProps();
-
-            // Common Border, Padding, and Background Properties
-            CommonBorderAndPadding bap = propMgr.getBorderAndPadding();
-            CommonBackground bProps = propMgr.getBackgroundProps();
-
-            // Common Margin-Block Properties
-            CommonMarginBlock mProps = propMgr.getMarginProps();
-
-            // this.propertyList.get("block-progression-dimension");
-            // this.propertyList.get("break-after");
-            // this.propertyList.get("break-before");
-            // this.propertyList.get("clip");
-            // this.propertyList.get("display-align");
-            // this.propertyList.get("height");
-            setupID();
-            // this.propertyList.get("keep-together");
-            // this.propertyList.get("keep-with-next");
-            // this.propertyList.get("keep-with-previous");
-            // this.propertyList.get("overflow");
-            // this.propertyList.get("reference-orientation");
-            // this.propertyList.get("span");
-            // this.propertyList.get("width");
-            // this.propertyList.get("writing-mode");
-
-            this.backgroundColor =
-                this.propertyList.get(PR_BACKGROUND_COLOR).getColorType();
-
-            this.width = this.propertyList.get(PR_WIDTH).getLength().getValue();
-            this.height = this.propertyList.get(PR_HEIGHT).getLength().getValue();
-            span = this.propertyList.get(PR_SPAN).getEnum();
+        this.backgroundColor =
+            this.propertyList.get(PR_BACKGROUND_COLOR).getColorType();
 
+        this.width = this.propertyList.get(PR_WIDTH).getLength().getValue();
+        this.height = this.propertyList.get(PR_HEIGHT).getLength().getValue();
     }
 
     /**
index f3c76f504c0a6218a1bddeca02636809978b0b51..681bbfaf3dfe562a31b2c7bb66a25c58a56b10e0 100644 (file)
@@ -29,13 +29,6 @@ import org.apache.fop.fo.FONode;
 import org.apache.fop.fo.FObj;
 import org.apache.fop.fo.OneCharIterator;
 import org.apache.fop.layoutmgr.AddLMVisitor;
-import org.apache.fop.fo.properties.CommonAural;
-import org.apache.fop.fo.properties.CommonBorderAndPadding;
-import org.apache.fop.fo.properties.CommonBackground;
-import org.apache.fop.fo.properties.CommonHyphenation;
-import org.apache.fop.fo.properties.CommonMarginInline;
-import org.apache.fop.fo.properties.CommonRelativePosition;
-import org.apache.fop.apps.FOPException;
 import org.apache.fop.fo.LMVisited;
 
 /**
@@ -76,53 +69,6 @@ public class Character extends FObj implements LMVisited {
             invalidChildError(loc, nsURI, localName);
     }
 
-    private void setup() throws FOPException {
-
-        // Common Aural Properties
-        CommonAural mAurProps = propMgr.getAuralProps();
-
-        // Common Border, Padding, and Background Properties
-        CommonBorderAndPadding bap = propMgr.getBorderAndPadding();
-        CommonBackground bProps = propMgr.getBackgroundProps();
-
-        // Common Font Properties
-        //this.fontState = propMgr.getFontState(area.getFontInfo());
-
-        // Common Hyphenation Properties
-        CommonHyphenation mHyphProps = propMgr.getHyphenationProps();
-
-        // Common Margin Properties-Inline
-        CommonMarginInline mProps = propMgr.getMarginInlineProps();
-
-        // Common Relative Position Properties
-        CommonRelativePosition mRelProps =
-          propMgr.getRelativePositionProps();
-
-        // this.propertyList.get("alignment-adjust");
-        // this.propertyList.get("treat-as-word-space");
-        // this.propertyList.get("alignment-baseline");
-        // this.propertyList.get("baseline-shift");
-        // this.propertyList.get("character");
-        // this.propertyList.get("color");
-        // this.propertyList.get("dominant-baseline");
-        // this.propertyList.get("text-depth");
-        // this.propertyList.get("text-altitude");
-        // this.propertyList.get("glyph-orientation-horizontal");
-        // this.propertyList.get("glyph-orientation-vertical");
-        setupID();
-        // this.propertyList.get("keep-with-next");
-        // this.propertyList.get("keep-with-previous");
-        // this.propertyList.get("letter-spacing");
-        // this.propertyList.get("line-height");
-        // this.propertyList.get("line-height-shift-adjustment");
-        // this.propertyList.get("score-spaces");
-        // this.propertyList.get("suppress-at-line-break");
-        // this.propertyList.get("text-decoration");
-        // this.propertyList.get("text-shadow");
-        // this.propertyList.get("text-transform");
-        // this.propertyList.get("word-spacing");
-    }
-
     /**
      * @see org.apache.fop.fo.FObj#charIterator
      */
index 53dcc67c6689e4d3018fa8d91b9ec108f639fce3..82ff0cfff9ea38734e5b1c2731b3450e73721811 100644 (file)
@@ -90,7 +90,6 @@ public class ExternalGraphic extends FObj {
      * This gets the sizes for the image and the dimensions and clipping.
      */
     private void setup() {
-        setupID();
         url = this.propertyList.get(PR_SRC).getString();
         if (url == null) {
             return;
index e27399b8cb97e0bc66d96da8a43eda4cd8bc7f7e..982d1b434c0ba41bb7a24229ee794f4878eb6869 100644 (file)
@@ -26,11 +26,6 @@ import org.xml.sax.SAXParseException;
 // FOP
 import org.apache.fop.fo.FONode;
 import org.apache.fop.fo.ToBeImplementedElement;
-import org.apache.fop.fo.properties.CommonAccessibility;
-import org.apache.fop.fo.properties.CommonAural;
-import org.apache.fop.fo.properties.CommonBackground;
-import org.apache.fop.fo.properties.CommonBorderAndPadding;
-import org.apache.fop.fo.properties.CommonRelativePosition;
 
 /**
  * Class modelling the fo:initial-property-set object. See Sec. 6.6.4 of the
@@ -54,37 +49,6 @@ public class InitialPropertySet extends ToBeImplementedElement {
             invalidChildError(loc, nsURI, localName);
     }
 
-    private void setup() {
-
-        // Common Accessibility Properties
-        CommonAccessibility mAccProps = propMgr.getAccessibilityProps();
-
-        // Common Aural Properties
-        CommonAural mAurProps = propMgr.getAuralProps();
-
-        // Common Border, Padding, and Background Properties
-        CommonBorderAndPadding bap = propMgr.getBorderAndPadding();
-        CommonBackground bProps = propMgr.getBackgroundProps();
-
-        // Common Font Properties
-        //this.fontState = propMgr.getFontState(area.getFontInfo());
-
-        // Common Relative Position Properties
-        CommonRelativePosition mRelProps = propMgr.getRelativePositionProps();
-
-        // this.propertyList.get("color");
-        setupID();
-        // this.propertyList.get("letter-spacing");
-        // this.propertyList.get("line-height");
-        // this.propertyList.get("line-height-shift-adjustment");
-        // this.propertyList.get("score-spaces");
-        // this.propertyList.get("text-decoration");
-        // this.propertyList.get("text-shadow");
-        // this.propertyList.get("text-transform");
-        // this.propertyList.get("word-spacing");
-
-    }
-
     public String getName() {
         return "fo:initial-property-set";
     }
index e8077de836f660c0e5dc2d94f2e5ba734247d927..4e97670dc298da9b3c280bdddd97a14ee5c20059 100644 (file)
@@ -67,8 +67,6 @@ public class Inline extends FObjMixed {
                                    + " be directly under flow", locator);
         }
 
-        setupID();
-
         int textDecoration = this.propertyList.get(PR_TEXT_DECORATION).getEnum();
 
         if (textDecoration == TextDecoration.UNDERLINE) {
index 602b617eb035ad5adf67d9bc09f5797e56d92d05..c5251f63b45eb58e81500048c77b6cf684f4ef23 100644 (file)
@@ -31,10 +31,6 @@ import org.apache.fop.layoutmgr.LayoutManager;
 import org.apache.fop.layoutmgr.ICLayoutManager;
 import org.apache.fop.fo.FONode;
 import org.apache.fop.fo.FObj;
-import org.apache.fop.fo.properties.CommonBackground;
-import org.apache.fop.fo.properties.CommonBorderAndPadding;
-import org.apache.fop.fo.properties.CommonMarginInline;
-import org.apache.fop.fo.properties.CommonRelativePosition;
 
 /**
  * Class modelling the fo:inline-container object. See Sec. 6.6.8 of the XSL-FO
@@ -54,36 +50,6 @@ public class InlineContainer extends FObj {
      */
     protected void addProperties(Attributes attlist) throws SAXParseException {
         super.addProperties(attlist);
-        // Common Border, Padding, and Background Properties
-        CommonBorderAndPadding bap = propMgr.getBorderAndPadding();
-        CommonBackground bProps = propMgr.getBackgroundProps();
-
-        // Common Margin Properties-Inline
-        CommonMarginInline mProps = propMgr.getMarginInlineProps();
-
-        // Common Relative Position Properties
-        CommonRelativePosition mRelProps =
-          propMgr.getRelativePositionProps();
-
-        // this.propertyList.get("alignment-adjust");
-        // this.propertyList.get("alignment-baseline");
-        // this.propertyList.get("baseline-shift");
-        // this.propertyList.get("block-progression-dimension");
-        // this.propertyList.get("clip");
-        // this.propertyList.get("display-align");
-        // this.propertyList.get("dominant-baseline");
-        // this.propertyList.get("height");
-        setupID();
-        // this.propertyList.get("inline-progression-dimension");
-        // this.propertyList.get("keep-together");
-        // this.propertyList.get("keep-with-next");
-        // this.propertyList.get("keep-with-previous");
-        // this.propertyList.get("line-height");
-        // this.propertyList.get("line-height-shift-adjustment");
-        // this.propertyList.get("overflow");
-        // this.propertyList.get("reference-orientation");
-        // this.propertyList.get("width");
-        // this.propertyList.get("writing-mode");
     }
 
     /**
index da38974c5cba5861652fe57667cc9fe93cb53d0b..77c8e4c3fe7c989b9eea6a20f04e1ca7a9fa221f 100644 (file)
@@ -23,12 +23,6 @@ import org.apache.fop.datatypes.Length;
 import org.apache.fop.fo.FONode;
 import org.apache.fop.layoutmgr.AddLMVisitor;
 import org.apache.fop.fo.FObjMixed;
-import org.apache.fop.fo.properties.CommonAccessibility;
-import org.apache.fop.fo.properties.CommonAural;
-import org.apache.fop.fo.properties.CommonBackground;
-import org.apache.fop.fo.properties.CommonBorderAndPadding;
-import org.apache.fop.fo.properties.CommonMarginInline;
-import org.apache.fop.fo.properties.CommonRelativePosition;
 import org.apache.fop.fo.properties.PercentLength;
 import org.apache.fop.fonts.Font;
 import org.apache.fop.fo.LMVisited;
@@ -54,49 +48,13 @@ public class Leader extends FObjMixed implements LMVisited {
         super(parent);
     }
 
+    /**
+     * @todo convert to addProperties()
+     */
     private void setup() {
-
-        // Common Accessibility Properties
-        CommonAccessibility mAccProps = propMgr.getAccessibilityProps();
-
-        // Common Aural Properties
-        CommonAural mAurProps = propMgr.getAuralProps();
-
-        // Common Border, Padding, and Background Properties
-        CommonBorderAndPadding bap = propMgr.getBorderAndPadding();
-        CommonBackground bProps = propMgr.getBackgroundProps();
-
         // Common Font Properties
         this.fontState = propMgr.getFontState(getFOInputHandler().getFontInfo());
 
-        // Common Margin Properties-Inline
-        CommonMarginInline mProps = propMgr.getMarginInlineProps();
-
-        // Common Relative Position Properties
-        CommonRelativePosition mRelProps = propMgr.getRelativePositionProps();
-
-        // this.propertyList.get("alignment-adjust");
-        // this.propertyList.get("alignment-baseline");
-        // this.propertyList.get("baseline-shift");
-        // this.propertyList.get("color");
-        // this.propertyList.get("dominant-baseline");
-        // this.propertyList.get("text-depth");
-        // this.propertyList.get("text-altitude");
-        setupID();
-        // this.propertyList.get("leader-alignment");
-        // this.propertyList.get("leader-length");
-        // this.propertyList.get("leader-pattern");
-        // this.propertyList.get("leader-pattern-width");
-        // this.propertyList.get("rule-style");
-        // this.propertyList.get("rule-thickness");
-        // this.propertyList.get("letter-spacing");
-        // this.propertyList.get("line-height");
-        // this.propertyList.get("line-height-shift-adjustment");
-        // this.propertyList.get("text-shadow");
-        // this.propertyList.get("visibility");
-        // this.propertyList.get("word-spacing");
-        // this.propertyList.get("z-index");
-
         // color properties
         ColorType c = this.propertyList.get(PR_COLOR).getColorType();
         float red = c.getRed();
index b58226aa1858e73c898b2c16cf73c714c622553e..e16d39ce73208c792dcbb9e60bf04bc7e3256196 100644 (file)
@@ -67,7 +67,6 @@ public class ListBlock extends FObj {
      */
     protected void addProperties(Attributes attlist) throws SAXParseException {
         super.addProperties(attlist);
-        setupID();
 
         this.align = this.propertyList.get(PR_TEXT_ALIGN).getEnum();
         this.alignLast = this.propertyList.get(PR_TEXT_ALIGN_LAST).getEnum();
index 85b0528cb1c9a853484d45d507e83db9f70f26a8..49aaf4fe295c439cbaa26db677cce40865bee627 100644 (file)
@@ -62,10 +62,6 @@ public class ListItem extends FObj {
     protected void addProperties(Attributes attlist) throws SAXParseException {
         super.addProperties(attlist);
         getFOInputHandler().startListItem(this);
-    }
-
-    private void setup() {
-        setupID();
         this.align = this.propertyList.get(PR_TEXT_ALIGN).getEnum();
         this.alignLast = this.propertyList.get(PR_TEXT_ALIGN_LAST).getEnum();
         this.lineHeight =
index 4e7c277f53d7777d99f04945560617b0742ee687..0c68947cbb6fa22f97cc81422d6345d35c28a754 100644 (file)
@@ -21,7 +21,6 @@ package org.apache.fop.fo.flow;
 // FOP
 import org.apache.fop.fo.FONode;
 import org.apache.fop.fo.FObj;
-import org.apache.fop.fo.properties.CommonAccessibility;
 
 /**
  * Class modelling the fo:list-item-body object. See Sec. 6.8.4 of the XSL-FO
@@ -36,21 +35,16 @@ public class ListItemBody extends FObj {
         super(parent);
     }
 
+    /**
+     * @todo convert to addProperties()
+     */
     private void setup() {
-
-            // Common Accessibility Properties
-            CommonAccessibility mAccProps = propMgr.getAccessibilityProps();
-
-            setupID();
-            // this.propertyList.get("keep-together");
-
         /*
          * For calculating the lineage - The fo:list-item-body formatting object
          * does not generate any areas. The fo:list-item-body formatting object
          * returns the sequence of areas created by concatenating the sequences
          * of areas returned by each of the child nodes of the fo:list-item-body.
          */
-
     }
 
     public String getName() {
index 0980b766e17dcbe716657962fb4576de2d2db4ef..5b313f305e8f9bb69efffd3c12876caa6bfaf6bc 100644 (file)
@@ -25,7 +25,6 @@ import org.xml.sax.SAXParseException;
 // FOP
 import org.apache.fop.fo.FONode;
 import org.apache.fop.fo.FObj;
-import org.apache.fop.fo.properties.CommonAccessibility;
 
 /**
  * Class modelling the fo:list-item-label object. See Sec. 6.8.5 of the XSL-FO
@@ -46,23 +45,12 @@ public class ListItemLabel extends FObj {
     protected void addProperties(Attributes attlist) throws SAXParseException {
         super.addProperties(attlist);
         getFOInputHandler().startListLabel();
-    }
-
-    private void setup() {
-
-        // Common Accessibility Properties
-        CommonAccessibility mAccProps = propMgr.getAccessibilityProps();
-
-        setupID();
-        // this.propertyList.get("keep-together");
-
         /*
          * For calculating the lineage - The fo:list-item-label formatting object
          * does not generate any areas. The fo:list-item-label formatting object
          * returns the sequence of areas created by concatenating the sequences
          * of areas returned by each of the child nodes of the fo:list-item-label.
          */
-
     }
 
     protected void endOfNode() throws SAXParseException {
index d15e3112021509db5df310fa85a30b360603278f..2a5b24e0f189476e6a83647695e72057e77c1bc7 100644 (file)
@@ -21,7 +21,6 @@ package org.apache.fop.fo.flow;
 // FOP
 import org.apache.fop.fo.FONode;
 import org.apache.fop.fo.ToBeImplementedElement;
-import org.apache.fop.fo.properties.CommonAccessibility;
 
 /**
  * Class modelling the fo:multi-case object. See Sec. 6.9.4 of the XSL-FO
@@ -36,18 +35,6 @@ public class MultiCase extends ToBeImplementedElement {
         super(parent);
     }
 
-    private void setup() {
-
-        // Common Accessibility Properties
-        CommonAccessibility mAccProps = propMgr.getAccessibilityProps();
-
-        setupID();
-        // this.propertyList.get("starting-state");
-        // this.propertyList.get("case-name");
-        // this.propertyList.get("case-title");
-
-    }
-
     public String getName() {
         return "fo:multi-case";
     }
index f241a5902627bb5402b86483c6f4c8a7ddd083cd..130dda6f06f478d421002c729bc6dcef1389fa1f 100644 (file)
@@ -21,7 +21,6 @@ package org.apache.fop.fo.flow;
 // FOP
 import org.apache.fop.fo.FONode;
 import org.apache.fop.fo.ToBeImplementedElement;
-import org.apache.fop.fo.properties.CommonAccessibility;
 
 /**
  * Class modelling the fo:multi-properties object. See Sec. 6.9.6 of the XSL-FO
@@ -36,15 +35,6 @@ public class MultiProperties extends ToBeImplementedElement {
         super(parent);
     }
 
-    private void setup() {
-
-        // Common Accessibility Properties
-        CommonAccessibility mAccProps = propMgr.getAccessibilityProps();
-
-        setupID();
-
-    }
-
     public String getName() {
         return "fo:multi-properties";
     }
index f4ebb74078c16d02a6e37b55763a9a644a6b5884..17dcaf54368ab5754bc367d1c2b1eecfe3fc12ca 100644 (file)
@@ -49,11 +49,9 @@ public class MultiPropertySet extends ToBeImplementedElement {
             invalidChildError(loc, nsURI, localName);
     }
 
-    private void setup() {
-        setupID();
-        // this.propertyList.get("active-state");
-    }
-
+    /**
+     * @see org.apache.fop.fo.FObj#getName()
+     */
     public String getName() {
         return "fo:multi-property-set";
     }
index f14a155e93dee2bcd21c2a3d81bd21280eb767ba..3cf02c82107d8a3abce7fd8e300dba6e35c0f976 100644 (file)
@@ -21,7 +21,6 @@ package org.apache.fop.fo.flow;
 // FOP
 import org.apache.fop.fo.FONode;
 import org.apache.fop.fo.ToBeImplementedElement;
-import org.apache.fop.fo.properties.CommonAccessibility;
 
 /**
  * Class modelling the fo:multi-switch object. See Sec. 6.9.3 of the XSL-FO
@@ -36,16 +35,6 @@ public class MultiSwitch extends ToBeImplementedElement {
         super(parent);
     }
 
-    private void setup() {
-
-        // Common Accessibility Properties
-        CommonAccessibility mAccProps = propMgr.getAccessibilityProps();
-
-        // this.propertyList.get("auto-restore");
-        setupID();
-
-    }
-
     public String getName() {
         return "fo:multi-switch";
     }
index 25034ca26bf84e898f1d8067f9bb220dcbfb255c..60e42d1b3e0c1254b33989d0357d9df21780f74f 100644 (file)
@@ -21,7 +21,6 @@ package org.apache.fop.fo.flow;
 // FOP
 import org.apache.fop.fo.FONode;
 import org.apache.fop.fo.ToBeImplementedElement;
-import org.apache.fop.fo.properties.CommonAccessibility;
 
 /**
  * Class modelling the fo:multi-toggle property. See Sec. 6.9.5 of the XSL-FO
@@ -36,16 +35,9 @@ public class MultiToggle extends ToBeImplementedElement {
         super(parent);
     }
 
-    private void setup() {
-
-        // Common Accessibility Properties
-        CommonAccessibility mAccProps = propMgr.getAccessibilityProps();
-
-        setupID();
-        // this.propertyList.get("switch-to");
-
-    }
-
+    /**
+     * @see org.apache.fop.fo.FObj#getName()
+     */
     public String getName() {
         return "fo:multi-toggle";
     }
index dfee543bdcc6cc0fb8d6e136c63419c0f3114e42..dd69e26d7e69c128871c67bedbbc11e7897e12fa 100644 (file)
@@ -67,22 +67,18 @@ public class PageNumber extends FObj {
      */
     protected void addProperties(Attributes attlist) throws SAXParseException {
         super.addProperties(attlist);
-        setup();
-        getFOInputHandler().startPageNumber(this);
-    }
 
-    private void setup() {
         // Common Font Properties
         this.fontState = propMgr.getFontState(getFOInputHandler().getFontInfo());
 
-        setupID();
-
         ColorType c = this.propertyList.get(PR_COLOR).getColorType();
         this.red = c.getRed();
         this.green = c.getGreen();
         this.blue = c.getBlue();
 
         this.wrapOption = this.propertyList.get(PR_WRAP_OPTION).getEnum();
+
+        getFOInputHandler().startPageNumber(this);
     }
 
     /**
index 9249d34614551a25b10ad87fd314baba2b6274bf..57bb11d25b7b6846a55b591ab5e038fe32c17ada 100644 (file)
@@ -75,8 +75,6 @@ public class PageNumberCitation extends FObj {
         // Common Font Properties
         this.fontState = propMgr.getFontState(getFOInputHandler().getFontInfo());
 
-        setupID();
-
         ColorType c = this.propertyList.get(PR_COLOR).getColorType();
         this.red = c.getRed();
         this.green = c.getGreen();
index e78274576d275d12087154cebbdd13d6f775a72c..b28fea9826aed4792c894bc03e5c63cb0866cc51 100644 (file)
@@ -81,68 +81,6 @@ public class Table extends FObj implements LMVisited {
      */
     protected void addProperties(Attributes attlist) throws SAXParseException {
         super.addProperties(attlist);
-        setupID();
-        getFOInputHandler().startTable(this);
-    }
-
-    /**
-     * @see org.apache.fop.fo.FONode#addChildNode(FONode)
-     */
-    protected void addChildNode(FONode child) {
-        if (child.getName().equals("fo:table-column")) {
-            if (columns == null) {
-                columns = new ArrayList();
-            }
-            columns.add(((TableColumn)child));
-        } else if (child.getName().equals("fo:table-footer")) {
-            tableFooter = (TableBody)child;
-        } else if (child.getName().equals("fo:table-header")) {
-            tableHeader = (TableBody)child;
-        } else {
-            // add bodies
-            super.addChildNode(child);
-        }
-    }
-
-    private void setup() {
-        // Common Accessibility Properties
-        CommonAccessibility mAccProps = propMgr.getAccessibilityProps();
-
-        // Common Aural Properties
-        CommonAural mAurProps = propMgr.getAuralProps();
-
-        // Common Border, Padding, and Background Properties
-        CommonBorderAndPadding bap = propMgr.getBorderAndPadding();
-        CommonBackground bProps = propMgr.getBackgroundProps();
-
-        // Common Margin Properties-Block
-        CommonMarginBlock mProps = propMgr.getMarginProps();
-
-        // Common Relative Position Properties
-        CommonRelativePosition mRelProps =
-                propMgr.getRelativePositionProps();
-
-        // this.propertyList.get("block-progression-dimension");
-        // this.propertyList.get("border-after-precendence");
-        // this.propertyList.get("border-before-precedence");
-        // this.propertyList.get("border-collapse");
-        // this.propertyList.get("border-end-precendence");
-        // this.propertyList.get("border-separation");
-        // this.propertyList.get("border-start-precendence");
-        // this.propertyList.get("break-after");
-        // this.propertyList.get("break-before");
-        setupID();
-        // this.propertyList.get("inline-progression-dimension");
-        // this.propertyList.get("height");
-        // this.propertyList.get("keep-together");
-        // this.propertyList.get("keep-with-next");
-        // this.propertyList.get("keep-with-previous");
-        // this.propertyList.get("table-layout");
-        // this.propertyList.get("table-omit-footer-at-break");
-        // this.propertyList.get("table-omit-header-at-break");
-        // this.propertyList.get("width");
-        // this.propertyList.get("writing-mode");
-
         this.breakBefore = this.propertyList.get(PR_BREAK_BEFORE).getEnum();
         this.breakAfter = this.propertyList.get(PR_BREAK_AFTER).getEnum();
         this.spaceBefore = this.propertyList.get(
@@ -163,7 +101,26 @@ public class Table extends FObj implements LMVisited {
         this.omitFooterAtBreak = this.propertyList.get(
                 PR_TABLE_OMIT_FOOTER_AT_BREAK).getEnum()
                                             == TableOmitFooterAtBreak.TRUE;
+        getFOInputHandler().startTable(this);
+    }
 
+    /**
+     * @see org.apache.fop.fo.FONode#addChildNode(FONode)
+     */
+    protected void addChildNode(FONode child) {
+        if (child.getName().equals("fo:table-column")) {
+            if (columns == null) {
+                columns = new ArrayList();
+            }
+            columns.add(((TableColumn)child));
+        } else if (child.getName().equals("fo:table-footer")) {
+            tableFooter = (TableBody)child;
+        } else if (child.getName().equals("fo:table-header")) {
+            tableHeader = (TableBody)child;
+        } else {
+            // add bodies
+            super.addChildNode(child);
+        }
     }
 
     /**
index 7f2b671db6b415663d95b2ec534ff884d9a94940..caa8ee1899bb5c140c6363dbbd6f030a491b5d03 100644 (file)
@@ -21,12 +21,6 @@ package org.apache.fop.fo.flow;
 // FOP
 import org.apache.fop.fo.FONode;
 import org.apache.fop.fo.ToBeImplementedElement;
-import org.apache.fop.fo.properties.CommonAccessibility;
-import org.apache.fop.fo.properties.CommonAural;
-import org.apache.fop.fo.properties.CommonBackground;
-import org.apache.fop.fo.properties.CommonBorderAndPadding;
-import org.apache.fop.fo.properties.CommonMarginBlock;
-import org.apache.fop.fo.properties.CommonRelativePosition;
 
 /**
  * Class modelling the fo:table-and-caption property. See Sec. 6.7.2 of the
@@ -41,32 +35,6 @@ public class TableAndCaption extends ToBeImplementedElement {
         super(parent);
     }
 
-    private void setup() {
-
-        // Common Accessibility Properties
-        CommonAccessibility mAccProps = propMgr.getAccessibilityProps();
-
-        // Common Aural Properties
-        CommonAural mAurProps = propMgr.getAuralProps();
-
-        // Common Border, Padding, and Background Properties
-        CommonBorderAndPadding bap = propMgr.getBorderAndPadding();
-        CommonBackground bProps = propMgr.getBackgroundProps();
-
-        // Common Margin Properties-Block
-        CommonMarginBlock mProps = propMgr.getMarginProps();
-
-        // Common Relative Position Properties
-        CommonRelativePosition mRelProps = propMgr.getRelativePositionProps();
-
-        // this.propertyList.get("caption-side");
-        setupID();
-        // this.propertyList.get("keep-together");
-        // this.propertyList.get("keep-with-next");
-        // this.propertyList.get("keep-with-previous");
-
-    }
-
     /**
      * @return false (TableAndCaption doesn't generate inline areas)
      */
index c9aa41528a523ee20ec58458d1baf02b95a65dcf..1b4ef4804450e704b2de158b85902fbed1614082 100644 (file)
@@ -28,15 +28,8 @@ import org.apache.fop.datatypes.ColorType;
 import org.apache.fop.fo.FONode;
 import org.apache.fop.fo.FObj;
 import org.apache.fop.layoutmgr.AddLMVisitor;
-
-import org.apache.fop.fo.properties.CommonAccessibility;
-import org.apache.fop.fo.properties.CommonAural;
-import org.apache.fop.fo.properties.CommonBackground;
-import org.apache.fop.fo.properties.CommonBorderAndPadding;
-import org.apache.fop.fo.properties.CommonRelativePosition;
 import org.apache.fop.fo.LMVisited;
 
-
 /**
  * Class modelling the fo:table-body object. See Sec. 6.7.8 of the XSL-FO
  * Standard.
@@ -59,34 +52,13 @@ public class TableBody extends FObj implements LMVisited {
      */
     protected void addProperties(Attributes attlist) throws SAXParseException {
         super.addProperties(attlist);
-        setupID();
-        getFOInputHandler().startBody(this);
-    }
-
-    private void setup() {
-        // Common Accessibility Properties
-        CommonAccessibility mAccProps = propMgr.getAccessibilityProps();
-
-        // Common Aural Properties
-        CommonAural mAurProps = propMgr.getAuralProps();
-
-        // Common Border, Padding, and Background Properties
-        CommonBorderAndPadding bap = propMgr.getBorderAndPadding();
-        CommonBackground bProps = propMgr.getBackgroundProps();
-
-        // Common Relative Position Properties
-        CommonRelativePosition mRelProps =
-          propMgr.getRelativePositionProps();
-
-        setupID();
-
         this.spaceBefore = this.propertyList.get(
                              PR_SPACE_BEFORE | CP_OPTIMUM).getLength().getValue();
         this.spaceAfter = this.propertyList.get(
                             PR_SPACE_AFTER | CP_OPTIMUM).getLength().getValue();
         this.backgroundColor =
           this.propertyList.get(PR_BACKGROUND_COLOR).getColorType();
-
+        getFOInputHandler().startBody(this);
     }
 
     /**
index 1a58167029c6b5b7762171cf94ea8138e2708d29..3bf29323c7ce82a2f13bae333f1123f3dc6785a3 100644 (file)
@@ -21,11 +21,6 @@ package org.apache.fop.fo.flow;
 // FOP
 import org.apache.fop.fo.FONode;
 import org.apache.fop.fo.ToBeImplementedElement;
-import org.apache.fop.fo.properties.CommonAccessibility;
-import org.apache.fop.fo.properties.CommonAural;
-import org.apache.fop.fo.properties.CommonBackground;
-import org.apache.fop.fo.properties.CommonBorderAndPadding;
-import org.apache.fop.fo.properties.CommonRelativePosition;
 
 /**
  * Class modelling the fo:table-caption object. See Sec. 6.7.5 of the XSL-FO
@@ -40,33 +35,6 @@ public class TableCaption extends ToBeImplementedElement {
         super(parent);
     }
 
-    /**
-     * Initialize property values.
-     */
-    private void setup() {
-
-        // Common Accessibility Properties
-        CommonAccessibility mAccProps = propMgr.getAccessibilityProps();
-
-        // Common Aural Properties
-        CommonAural mAurProps = propMgr.getAuralProps();
-
-        // Common Border, Padding, and Background Properties
-        CommonBorderAndPadding bap = propMgr.getBorderAndPadding();
-        CommonBackground bProps = propMgr.getBackgroundProps();
-
-        // Common Relative Position Properties
-        CommonRelativePosition mRelProps = propMgr.getRelativePositionProps();
-
-        // this.propertyList.get("block-progression-dimension");
-        // this.propertyList.get("height");
-        setupID();
-        // this.propertyList.get("inline-progression-dimension");
-        // this.propertyList.get("keep-togethe");
-        // this.propertyList.get("width");
-
-    }
-
     public String getName() {
         return "fo:table-caption";
     }
index 72c02d79cae5fb466af0c9a18da0151597615abe..8907f59578ca2ccab0e655bda0d94e563a17efbd 100644 (file)
@@ -31,12 +31,7 @@ import org.apache.fop.datatypes.ColorType;
 import org.apache.fop.fo.FONode;
 import org.apache.fop.fo.FObj;
 import org.apache.fop.layoutmgr.table.Cell;
-
-import org.apache.fop.fo.properties.CommonAccessibility;
-import org.apache.fop.fo.properties.CommonAural;
-import org.apache.fop.fo.properties.CommonBackground;
 import org.apache.fop.fo.properties.CommonBorderAndPadding;
-import org.apache.fop.fo.properties.CommonRelativePosition;
 
 /**
  * Class modelling the fo:table-cell object. See Sec. 6.7.10 of the XSL-FO
@@ -168,36 +163,10 @@ public class TableCell extends FObj {
         return numRowsSpanned;
     }
 
+    /**
+     * @todo convert to addProperties()
+     */
     private void doSetup() {
-        // Common Accessibility Properties
-        CommonAccessibility mAccProps = propMgr.getAccessibilityProps();
-
-        // Common Aural Properties
-        CommonAural mAurProps = propMgr.getAuralProps();
-
-        // Common Border, Padding, and Background Properties
-        CommonBorderAndPadding bap = propMgr.getBorderAndPadding();
-        CommonBackground bProps = propMgr.getBackgroundProps();
-
-        // Common Relative Position Properties
-        CommonRelativePosition mRelProps = propMgr.getRelativePositionProps();
-
-        // this.propertyList.get("border-after-precedence");
-        // this.propertyList.get("border-before-precendence");
-        // this.propertyList.get("border-end-precendence");
-        // this.propertyList.get("border-start-precendence");
-        // this.propertyList.get("block-progression-dimension");
-        // this.propertyList.get("column-number");
-        // this.propertyList.get("display-align");
-        // this.propertyList.get("relative-align");
-        // this.propertyList.get("empty-cells");
-        // this.propertyList.get("ends-row");
-        // this.propertyList.get("height");
-        setupID();
-        // this.propertyList.get("number-columns-spanned");
-        // this.propertyList.get("number-rows-spanned");
-        // this.propertyList.get("starts-row");
-        // this.propertyList.get("width");
 
         this.iColNumber =
             propertyList.get(PR_COLUMN_NUMBER).getNumber().intValue();
index 9350eaa7d552eee3b4ee890226db3ba1fbb98234..31cc896c75afac63ac92dc21ef162ceb5213d5a0 100644 (file)
@@ -29,9 +29,6 @@ import org.apache.fop.datatypes.Length;
 import org.apache.fop.fo.FONode;
 import org.apache.fop.fo.FObj;
 
-import org.apache.fop.fo.properties.CommonBackground;
-import org.apache.fop.fo.properties.CommonBorderAndPadding;
-
 /**
  * Class modelling the fo:table-column object. See Sec. 6.7.4 of the XSL-FO
  * Standard.
@@ -93,19 +90,10 @@ public class TableColumn extends FObj {
         return numColumnsRepeated;
     }
 
+    /**
+     * @todo convert to addProperties()
+     */
     public void initialize() {
-
-        // Common Border, Padding, and Background Properties
-        // only background apply, border apply if border-collapse
-        // is collapse.
-        CommonBorderAndPadding bap = propMgr.getBorderAndPadding();
-        CommonBackground bProps = propMgr.getBackgroundProps();
-
-        // this.propertyList.get("column-width");
-        // this.propertyList.get("number-columns-repeated");
-        // this.propertyList.get("number-columns-spanned");
-        // this.propertyList.get("visibility");
-
         iColumnNumber = propertyList.get(PR_COLUMN_NUMBER).getNumber().intValue();
 
         numColumnsRepeated =
@@ -116,9 +104,6 @@ public class TableColumn extends FObj {
 
         columnWidth = this.propertyList.get(PR_COLUMN_WIDTH).getLength();
 
-        // initialize id
-        setupID();
-
         initialized = true;
     }
 
index d45be3bc808a7d56c8bc2a9c48707ebcb3fe5d7f..3e05c43ef30f60791c2d4e0fff3395ab2514999b 100644 (file)
@@ -32,12 +32,6 @@ import org.apache.fop.fo.FONode;
 import org.apache.fop.fo.FObj;
 import org.apache.fop.layoutmgr.table.Row;
 import org.apache.fop.fo.Constants;
-
-import org.apache.fop.fo.properties.CommonAccessibility;
-import org.apache.fop.fo.properties.CommonAural;
-import org.apache.fop.fo.properties.CommonBackground;
-import org.apache.fop.fo.properties.CommonBorderAndPadding;
-import org.apache.fop.fo.properties.CommonRelativePosition;
 import org.apache.fop.fo.properties.Property;
 
 
@@ -70,7 +64,6 @@ public class TableRow extends FObj {
      */
     protected void addProperties(Attributes attlist) throws SAXParseException {
         super.addProperties(attlist);
-        setupID();
         getFOInputHandler().startRow(this);
     }
 
@@ -82,33 +75,6 @@ public class TableRow extends FObj {
     }
 
     private void doSetup() {
-
-        // Common Accessibility Properties
-        CommonAccessibility mAccProps = propMgr.getAccessibilityProps();
-
-        // this.propertyList.get("block-progression-dimension");
-
-        // Common Aural Properties
-        CommonAural mAurProps = propMgr.getAuralProps();
-
-        // Common Border, Padding, and Background Properties
-        // only background apply, border apply if border-collapse
-        // is collapse.
-        CommonBorderAndPadding bap = propMgr.getBorderAndPadding();
-        CommonBackground bProps = propMgr.getBackgroundProps();
-
-        // Common Relative Position Properties
-        CommonRelativePosition mRelProps = propMgr.getRelativePositionProps();
-
-        // this.propertyList.get("break-before");
-        // this.propertyList.get("break-after");
-        setupID();
-        // this.propertyList.get("height");
-        // this.propertyList.get("keep-together");
-        // this.propertyList.get("keep-with-next");
-        // this.propertyList.get("keep-with-previous");
-
-
         this.breakAfter = this.propertyList.get(PR_BREAK_AFTER).getEnum();
         this.backgroundColor =
             this.propertyList.get(PR_BACKGROUND_COLOR).getColorType();
index f29708d4cfe1356350b1a4efc2930a5444601986..5f1631ee359d14b379d0abc0405c9f8596a14f87 100644 (file)
@@ -287,7 +287,6 @@ public class PageSequence extends FObj {
 
         // this.propertyList.get("country");
         // this.propertyList.get("language");
-        setupID();
 
         //call startStructuredPageSequence to ensure, that startPageSequence is called
         //before startFlow.