]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
gets all properties specified on each element
authorKeiron Liddle <keiron@apache.org>
Mon, 6 Aug 2001 09:12:59 +0000 (09:12 +0000)
committerKeiron Liddle <keiron@apache.org>
Mon, 6 Aug 2001 09:12:59 +0000 (09:12 +0000)
adds "Unknown" element for unknown elements or other namespaces
need to get a consistent and easy way to use the property values

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

35 files changed:
src/org/apache/fop/fo/FOTreeBuilder.java
src/org/apache/fop/fo/PropertyList.java
src/org/apache/fop/fo/PropertyManager.java
src/org/apache/fop/fo/Title.java
src/org/apache/fop/fo/Unknown.java [new file with mode: 0644]
src/org/apache/fop/fo/flow/BasicLink.java
src/org/apache/fop/fo/flow/BidiOverride.java
src/org/apache/fop/fo/flow/Block.java
src/org/apache/fop/fo/flow/BlockContainer.java
src/org/apache/fop/fo/flow/Character.java
src/org/apache/fop/fo/flow/ExternalGraphic.java
src/org/apache/fop/fo/flow/Float.java
src/org/apache/fop/fo/flow/InitialPropertySet.java
src/org/apache/fop/fo/flow/Inline.java
src/org/apache/fop/fo/flow/InlineContainer.java
src/org/apache/fop/fo/flow/InstreamForeignObject.java
src/org/apache/fop/fo/flow/Leader.java
src/org/apache/fop/fo/flow/ListBlock.java
src/org/apache/fop/fo/flow/ListItem.java
src/org/apache/fop/fo/flow/ListItemBody.java
src/org/apache/fop/fo/flow/ListItemLabel.java
src/org/apache/fop/fo/flow/MultiCase.java
src/org/apache/fop/fo/flow/MultiProperties.java
src/org/apache/fop/fo/flow/MultiPropertySet.java
src/org/apache/fop/fo/flow/MultiSwitch.java
src/org/apache/fop/fo/flow/MultiToggle.java
src/org/apache/fop/fo/flow/PageNumber.java
src/org/apache/fop/fo/flow/PageNumberCitation.java
src/org/apache/fop/fo/flow/Table.java
src/org/apache/fop/fo/flow/TableAndCaption.java
src/org/apache/fop/fo/flow/TableBody.java
src/org/apache/fop/fo/flow/TableCaption.java
src/org/apache/fop/fo/flow/TableCell.java
src/org/apache/fop/fo/flow/TableColumn.java
src/org/apache/fop/fo/flow/TableRow.java

index 4c137658f0b807c725753c55dee24b24a4d25247..94e431f5292f1c4622aad6a94484631c71103e64 100644 (file)
@@ -196,10 +196,9 @@ public class FOTreeBuilder extends DefaultHandler implements TreeBuilder {
                 MessageHandler.errorln("WARNING: Unknown formatting object "
                                        + fullName);
             }
-            fobjMaker = new FObjMixed.Maker();    // fall back
+            fobjMaker = new Unknown.Maker();    // fall back
         }
 
-
         try {
             PropertyList list = null;
             if (currentListBuilder != null) {
index 90cf310d88122a3215b350993457f9cd95594c34..f6cd8747fd5fc6d97839e3181ddd35543e2fbc01 100644 (file)
@@ -253,6 +253,16 @@ public class PropertyList extends Hashtable {
                 // don't know what to do here
             }
         }
+/*
+        // if value is inherit then get computed value from
+        // parent
+        // namespaces??
+        if(p != null && "inherit".equals(p.getString())) {
+            if (this.parentPropertyList != null) {
+                p = parentPropertyList.get(propertyName, true, false);
+            }
+        }
+*/
         if (subpropName != null && p != null) {
             return this.builder.getSubpropValue(namespace, element,
                                                 propertyName, p, subpropName);
index 753cafd9893fb819a866f3e386c99c2108b61ee6..dfbabd383ce769643f6116694def42ee45f18238 100644 (file)
@@ -12,6 +12,11 @@ import org.apache.fop.layout.FontInfo;
 import org.apache.fop.layout.BorderAndPadding;
 import org.apache.fop.layout.MarginProps;
 import org.apache.fop.layout.BackgroundProps;
+import org.apache.fop.layout.MarginInlineProps;
+import org.apache.fop.layout.AccessibilityProps;
+import org.apache.fop.layout.AuralProps;
+import org.apache.fop.layout.RelativePositionProps;
+import org.apache.fop.layout.AbsolutePositionProps;
 import org.apache.fop.fo.properties.BreakAfter;
 import org.apache.fop.fo.properties.BreakBefore;
 import org.apache.fop.fo.properties.Constants;
@@ -209,4 +214,37 @@ public class PropertyManager {
         return bp;
     }
 
+    public MarginInlineProps getMarginInlineProps() {
+        MarginInlineProps props = new MarginInlineProps();
+        return props;
+    }
+
+    public AccessibilityProps getAccessibilityProps() {
+        AccessibilityProps props = new AccessibilityProps();
+        String str;
+        str = this.properties.get("source-document").getString();
+        if(!"none".equals(str)) {
+            props.sourceDoc = str;
+        }
+        str = this.properties.get("role").getString();
+        if(!"none".equals(str)) {
+            props.role = str;
+        }
+        return props;
+    }
+
+    public AuralProps getAuralProps() {
+        AuralProps props = new AuralProps();
+        return props;
+    }
+
+    public RelativePositionProps getRelativePositionProps() {
+        RelativePositionProps props = new RelativePositionProps();
+        return props;
+    }
+
+    public AbsolutePositionProps getAbsolutePositionProps() {
+        AbsolutePositionProps props = new AbsolutePositionProps();
+        return props;
+    }
 }
index dbe258ca4a84eb325f8de0377afad39d971852cd..10c3387afb47490f57719d353fc39e33e1a0926d 100644 (file)
@@ -9,6 +9,8 @@ package org.apache.fop.fo;
 
 // FOP
 import org.apache.fop.fo.*;
+import org.apache.fop.datatypes.*;
+import org.apache.fop.layout.*;
 import org.apache.fop.messaging.MessageHandler;
 import org.apache.fop.fo.flow.*;
 import org.apache.fop.fo.properties.*;
@@ -37,4 +39,38 @@ public class Title extends ToBeImplementedElement {
         this.name = "fo:title";
     }
 
+    public Status layout(Area area) throws FOPException {
+
+        // Common Accessibility Properties
+        AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+
+        // Common Aural Properties
+        AuralProps mAurProps = propMgr.getAuralProps();
+
+        // Common Border, Padding, and Background Properties
+        BorderAndPadding bap = propMgr.getBorderAndPadding();
+        BackgroundProps bProps = propMgr.getBackgroundProps();
+
+        // Common Font Properties
+        FontState fontState = propMgr.getFontState(area.getFontInfo());
+
+        // Common Margin Properties-Inline
+        MarginInlineProps mProps = propMgr.getMarginInlineProps();
+
+        Property prop;
+        prop = this.properties.get("baseline-shift");
+        if (prop instanceof LengthProperty) {
+            Length bShift = prop.getLength();
+        } else if (prop instanceof EnumProperty) {
+            int bShift = prop.getEnum();
+        }
+        ColorType col = this.properties.get("color").getColorType();
+        Length lHeight = this.properties.get("line-height").getLength();
+        int lShiftAdj = this.properties.get(
+                          "line-height-shift-adjustment").getEnum();
+        int vis = this.properties.get("visibility").getEnum();
+        Length zIndex = this.properties.get("z-index").getLength();
+
+        return super.layout(area);
+    }
 }
diff --git a/src/org/apache/fop/fo/Unknown.java b/src/org/apache/fop/fo/Unknown.java
new file mode 100644 (file)
index 0000000..bc50492
--- /dev/null
@@ -0,0 +1,49 @@
+/*
+ * $Id$
+ * Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
+ * For details on use and redistribution please refer to the
+ * LICENSE file included with these sources.
+ */
+
+package org.apache.fop.fo;
+
+// FOP
+import org.apache.fop.fo.*;
+import org.apache.fop.layout.*;
+import org.apache.fop.messaging.MessageHandler;
+import org.apache.fop.fo.flow.*;
+import org.apache.fop.fo.properties.*;
+import org.apache.fop.layout.AreaTree;
+import org.apache.fop.apps.FOPException;
+
+/**
+ * This represents an unknown element.
+ * For example with unsupported namespaces.
+ * This prevents any further problems arising from the unknown
+ * data.
+ */
+public class Unknown extends FObj {
+
+    public static class Maker extends FObj.Maker {
+        public FObj make(FObj parent,
+                         PropertyList propertyList) throws FOPException {
+            return new Unknown(parent, propertyList);
+        }
+
+    }
+
+    public static FObj.Maker maker() {
+        return new Unknown.Maker();
+    }
+
+    protected Unknown(FObj parent,
+                    PropertyList propertyList) throws FOPException {
+        super(parent, propertyList);
+        this.name = "unknown";
+    }
+
+    public Status layout(Area area) throws FOPException {
+        MessageHandler.logln("Layout Unknown element");
+        return new Status(Status.OK);
+    }
+}
index 7de5f71f247a5a32964a5e381e35eebb41ee0953..c06c507c8ed27325ba3e30cee868d3929ad63ec7 100644 (file)
@@ -47,6 +47,41 @@ public class BasicLink extends FObjMixed {
         String destination;
         int linkType;
 
+        // Common Accessibility Properties
+        AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+
+        // Common Aural Properties
+        AuralProps mAurProps = propMgr.getAuralProps();
+
+        // Common Border, Padding, and Background Properties
+        BorderAndPadding bap = propMgr.getBorderAndPadding();
+        BackgroundProps bProps = propMgr.getBackgroundProps();
+
+        // Common Margin Properties-Inline
+        MarginInlineProps mProps = propMgr.getMarginInlineProps();
+
+        // Common Relative Position Properties
+        RelativePositionProps mRelProps = propMgr.getRelativePositionProps();
+
+        // this.properties.get("alignment-adjust");
+        // this.properties.get("alignment-baseline");
+        // this.properties.get("baseline-shift");
+        // this.properties.get("destination-place-offset");
+        // this.properties.get("dominant-baseline");
+        // this.properties.get("external-destination");        
+        // this.properties.get("id");
+        // this.properties.get("indicate-destination");  
+        // this.properties.get("internal-destination");  
+        // this.properties.get("keep-together");
+        // this.properties.get("keep-with-next");
+        // this.properties.get("keep-with-previous");
+        // this.properties.get("line-height");
+        // this.properties.get("line-height-shift-adjustment");
+        // this.properties.get("show-destination");  
+        // this.properties.get("target-processing-context");  
+        // this.properties.get("target-presentation-context");  
+        // this.properties.get("target-stylesheet");  
+
         if (!(destination =
                 this.properties.get("internal-destination").getString()).equals("")) {
             linkType = LinkSet.INTERNAL;
index c6d7a1ba3eaecceb9c10b952fa5c2e116bdcb812..ea1566cc74b54e61f03bec83adde72671bbc33a2 100644 (file)
@@ -9,6 +9,7 @@ package org.apache.fop.fo.flow;
 
 // FOP
 import org.apache.fop.fo.*;
+import org.apache.fop.layout.*;
 import org.apache.fop.messaging.MessageHandler;
 import org.apache.fop.fo.flow.*;
 import org.apache.fop.fo.properties.*;
@@ -37,4 +38,29 @@ public class BidiOverride extends ToBeImplementedElement {
         this.name = "fo:bidi-override";
     }
 
+    public Status layout(Area area) throws FOPException {
+
+        // Common Aural Properties
+        AuralProps mAurProps = propMgr.getAuralProps();
+
+        // Common Font Properties
+        //this.fontState = propMgr.getFontState(area.getFontInfo());
+
+        // Common Margin Properties-Inline
+        RelativePositionProps mProps = propMgr.getRelativePositionProps();
+
+        // this.properties.get("color");
+        // this.properties.get("direction");
+        // this.properties.get("id");
+        // this.properties.get("letter-spacing");
+        // this.properties.get("line-height");
+        // this.properties.get("line-height-shift-adjustment");
+        // this.properties.get("score-spaces");
+        // this.properties.get("text-shadow");
+        // this.properties.get("text-transform");
+        // this.properties.get("unicode-bidi");
+        // this.properties.get("word-spacing");
+
+        return super.layout(area);
+    }
 }
index 8b8de35b370fb599827f2962016fad9ef6531fbb..7ba0bed043f6bedfb849c7ea9291e1072dbb00fe 100644 (file)
@@ -85,6 +85,56 @@ public class Block extends FObjMixed {
 
         if (this.marker == START) {
 
+            // Common Accessibility Properties
+            AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+
+            // Common Aural Properties
+            AuralProps mAurProps = propMgr.getAuralProps();
+
+            // Common Border, Padding, and Background Properties
+            BorderAndPadding bap = propMgr.getBorderAndPadding();
+            BackgroundProps bProps = propMgr.getBackgroundProps();
+
+            // Common Font Properties
+            //this.fontState = propMgr.getFontState(area.getFontInfo());
+
+            // Common Hyphenation Properties
+            HyphenationProps mHyphProps = propMgr.getHyphenationProps();
+
+            // Common Margin Properties-Block
+            MarginProps mProps = propMgr.getMarginProps();
+
+            // Common Relative Position Properties
+            RelativePositionProps mRelProps = propMgr.getRelativePositionProps();
+
+            // this.properties.get("break-after");
+            // this.properties.get("break-before");
+            // this.properties.get("color");
+            // this.properties.get("text-depth");
+            // this.properties.get("text-altitude");
+            // this.properties.get("hyphenation-keep");
+            // this.properties.get("hyphenation-ladder-count");
+            // this.properties.get("id");
+            // this.properties.get("keep-together");
+            // this.properties.get("keep-with-next");
+            // this.properties.get("keep-with-previous");
+            // this.properties.get("last-line-end-indent");
+            // this.properties.get("linefeed-treatment");
+            // this.properties.get("line-height");
+            // this.properties.get("line-height-shift-adjustment");
+            // this.properties.get("line-stacking-strategy");
+            // this.properties.get("orphans");
+            // this.properties.get("space-treatment");
+            // this.properties.get("span");
+            // this.properties.get("text-align");
+            // this.properties.get("text-align-last");
+            // this.properties.get("text-indent");
+            // this.properties.get("visibility");
+            // this.properties.get("white-space-collapse");
+            // this.properties.get("widows");
+            // this.properties.get("wrap-option");
+            // this.properties.get("z-index");
+
             this.align = this.properties.get("text-align").getEnum();
             this.alignLast = this.properties.get("text-align-last").getEnum();
             this.breakAfter = this.properties.get("break-after").getEnum();
index 4d565a8a07114705d5aac5677e4429ec7da5cae9..563fbbfcc06b16ba0b5878c827e78725699c78ed 100644 (file)
@@ -58,6 +58,33 @@ public class BlockContainer extends FObj {
 
     public Status layout(Area area) throws FOPException {
         if (this.marker == START) {
+
+            // Common Accessibility Properties
+            AbsolutePositionProps mAbsProps = propMgr.getAbsolutePositionProps();
+
+            // Common Border, Padding, and Background Properties
+            BorderAndPadding bap = propMgr.getBorderAndPadding();
+            BackgroundProps bProps = propMgr.getBackgroundProps();
+
+            // Common Margin-Block Properties
+            MarginProps mProps = propMgr.getMarginProps();
+
+            // this.properties.get("block-progression-dimension");
+            // this.properties.get("break-after");
+            // this.properties.get("break-before");
+            // this.properties.get("clip");
+            // this.properties.get("display-align");
+            // this.properties.get("height");
+            // this.properties.get("id");
+            // this.properties.get("keep-together");
+            // this.properties.get("keep-with-next");
+            // this.properties.get("keep-with-previous");
+            // this.properties.get("overflow");
+            // this.properties.get("reference-orientation");
+            // this.properties.get("span");
+            // this.properties.get("width");
+            // this.properties.get("writing-mode");
+
             this.marker = 0;
 
             this.backgroundColor =
index 5701792b8e5b235aff31fd17b281a51149720686..eea3c77d20f38933b44ecebd33d5dfed3ce39092 100644 (file)
@@ -66,6 +66,49 @@ public class Character extends FObj {
         blockArea = (BlockArea)area;
         boolean textDecoration;
 
+        // Common Aural Properties
+        AuralProps mAurProps = propMgr.getAuralProps();
+
+        // Common Border, Padding, and Background Properties
+        BorderAndPadding bap = propMgr.getBorderAndPadding();
+        BackgroundProps bProps = propMgr.getBackgroundProps();
+
+        // Common Font Properties
+        //this.fontState = propMgr.getFontState(area.getFontInfo());
+
+        // Common Hyphenation Properties
+        HyphenationProps mHyphProps = propMgr.getHyphenationProps();
+
+        // Common Margin Properties-Inline
+        MarginInlineProps mProps = propMgr.getMarginInlineProps();
+
+        // Common Relative Position Properties
+        RelativePositionProps mRelProps = propMgr.getRelativePositionProps();
+
+        // this.properties.get("alignment-adjust");
+        // this.properties.get("treat-as-word-space");
+        // this.properties.get("alignment-baseline");
+        // this.properties.get("baseline-shift");
+        // this.properties.get("character");
+        // this.properties.get("color");
+        // this.properties.get("dominant-baseline");
+        // this.properties.get("text-depth");
+        // this.properties.get("text-altitude");
+        // this.properties.get("glyph-orientation-horizontal");
+        // this.properties.get("glyph-orientation-vertical");
+        // this.properties.get("id");
+        // this.properties.get("keep-with-next");
+        // this.properties.get("keep-with-previous");
+        // this.properties.get("letter-spacing");
+        // this.properties.get("line-height");
+        // this.properties.get("line-height-shift-adjustment");
+        // this.properties.get("score-spaces");
+        // this.properties.get("suppress-at-line-break");
+        // this.properties.get("text-decoration");
+        // this.properties.get("text-shadow");
+        // this.properties.get("text-transform");
+        // this.properties.get("word-spacing");
+
         // color properties
         ColorType c = this.properties.get("color").getColorType();
         float red = c.red();
index 802db0e254d83329c7e5509991270c4f53a00acc..4647ce846cd51f79ab0f88950b1e747a78b0b0bc 100644 (file)
@@ -47,6 +47,46 @@ public class ExternalGraphic extends FObj {
     public Status layout(Area area) throws FOPException {
 
         if (this.marker == START) {
+
+            // Common Accessibility Properties
+            AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+
+            // Common Aural Properties
+            AuralProps mAurProps = propMgr.getAuralProps();
+
+            // Common Border, Padding, and Background Properties
+            BorderAndPadding bap = propMgr.getBorderAndPadding();
+            BackgroundProps bProps = propMgr.getBackgroundProps();
+
+            // Common Margin Properties-Inline
+            MarginInlineProps mProps = propMgr.getMarginInlineProps();
+
+            // Common Relative Position Properties
+            RelativePositionProps mRelProps = propMgr.getRelativePositionProps();
+
+            // this.properties.get("alignment-adjust");
+            // this.properties.get("alignment-baseline");
+            // this.properties.get("baseline-shift");
+            // this.properties.get("block-progression-dimension");
+            // this.properties.get("content-height");
+            // this.properties.get("content-type");
+            // this.properties.get("content-width");
+            // this.properties.get("display-align");
+            // this.properties.get("dominant-baseline");
+            // this.properties.get("height");
+            // this.properties.get("id");
+            // this.properties.get("inline-progression-dimension");
+            // this.properties.get("keep-with-next");
+            // this.properties.get("keep-with-previous");
+            // this.properties.get("line-height");
+            // this.properties.get("line-height-shift-adjustment");
+            // this.properties.get("overflow");
+            // this.properties.get("scaling");
+            // this.properties.get("scaling-method");
+            // this.properties.get("src");
+            // this.properties.get("text-align");
+            // this.properties.get("width");
+
             // FIXME
             this.align = this.properties.get("text-align").getEnum();
 
index 3fb948c40225e25dccf016a0db24f6dba1b41bf3..c5eb15188658975c048466d07acb1aa9f781876f 100644 (file)
@@ -12,7 +12,7 @@ import org.apache.fop.fo.*;
 import org.apache.fop.messaging.MessageHandler;
 import org.apache.fop.fo.flow.*;
 import org.apache.fop.fo.properties.*;
-import org.apache.fop.layout.AreaTree;
+import org.apache.fop.layout.*;
 import org.apache.fop.apps.FOPException;
 
 /**
@@ -37,4 +37,11 @@ public class Float extends ToBeImplementedElement {
         this.name = "fo:float";
     }
 
+    public Status layout(Area area) throws FOPException {
+
+        // this.properties.get("float");
+        // this.properties.get("clear");
+
+        return super.layout(area);
+    }
 }
index 63746b12e1d0f81675f91f5da2fd617ccf5bc6c4..7406146d21f50162b3099b5a4359dad8a92fc949 100644 (file)
@@ -9,6 +9,7 @@ package org.apache.fop.fo.flow;
 
 // FOP
 import org.apache.fop.fo.*;
+import org.apache.fop.layout.*;
 import org.apache.fop.messaging.MessageHandler;
 import org.apache.fop.fo.flow.*;
 import org.apache.fop.fo.properties.*;
@@ -37,4 +38,35 @@ public class InitialPropertySet extends ToBeImplementedElement {
         this.name = "fo:initial-property-set";
     }
 
+    public Status layout(Area area) throws FOPException {
+
+        // Common Accessibility Properties
+        AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+
+        // Common Aural Properties
+        AuralProps mAurProps = propMgr.getAuralProps();
+
+        // Common Border, Padding, and Background Properties
+        BorderAndPadding bap = propMgr.getBorderAndPadding();
+        BackgroundProps bProps = propMgr.getBackgroundProps();
+
+        // Common Font Properties
+        //this.fontState = propMgr.getFontState(area.getFontInfo());
+
+        // Common Relative Position Properties
+        RelativePositionProps mRelProps = propMgr.getRelativePositionProps();
+
+        // this.properties.get("color");
+        // this.properties.get("id");
+        // this.properties.get("letter-spacing");
+        // this.properties.get("line-height");
+        // this.properties.get("line-height-shift-adjustment");
+        // this.properties.get("score-spaces");
+        // this.properties.get("text-decoration");
+        // this.properties.get("text-shadow");
+        // this.properties.get("text-transform");
+        // this.properties.get("word-spacing");
+
+        return super.layout(area);
+    }
 }
index 0f37ed191938f990d28b8aab853d19b7885f0d2a..100bb4947fd510f90a15f7a6b77340aec0bc977d 100644 (file)
@@ -9,7 +9,7 @@ package org.apache.fop.fo.flow;
 
 // FOP
 import org.apache.fop.fo.*;
-import org.apache.fop.layout.Area;
+import org.apache.fop.layout.*;
 import org.apache.fop.apps.FOPException;
 import org.apache.fop.fo.properties.*;
 
@@ -41,6 +41,40 @@ public class Inline extends FObjMixed {
         super(parent, propertyList);
         this.name = "fo:inline";
 
+        // Common Accessibility Properties
+        AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+                    
+        // Common Aural Properties   
+        AuralProps mAurProps = propMgr.getAuralProps();
+
+        // Common Border, Padding, and Background Properties
+        BorderAndPadding bap = propMgr.getBorderAndPadding();
+        BackgroundProps bProps = propMgr.getBackgroundProps();
+     
+        // Common Font Properties
+        //this.fontState = propMgr.getFontState(area.getFontInfo());
+
+        // Common Margin Properties-Inline
+        MarginInlineProps mProps = propMgr.getMarginInlineProps();
+            
+        // Common Relative Position Properties
+        RelativePositionProps mRelProps = propMgr.getRelativePositionProps();
+            
+        // this.properties.get("alignment-adjust");
+        // this.properties.get("alignment-baseline");
+        // this.properties.get("baseline-shift");
+        // this.properties.get("color");
+        // this.properties.get("dominant-baseline");
+        // this.properties.get("id");
+        // this.properties.get("keep-together");
+        // this.properties.get("keep-with-next");
+        // this.properties.get("keep-with-previous");
+        // this.properties.get("line-height");
+        // this.properties.get("line-height-shift-adjustment");
+        // this.properties.get("text-devoration");
+        // this.properties.get("visibility");
+        // this.properties.get("z-index");
+
         int textDecoration = this.properties.get("text-decoration").getEnum();
 
         if (textDecoration == TextDecoration.UNDERLINE) {
index 31bfd008c8a9b0f5a6569cdea7bcae1d0c0f57e2..5332a2dc63d8098c2be598dfe2bbaf8971f0cc37 100644 (file)
@@ -12,7 +12,7 @@ import org.apache.fop.fo.*;
 import org.apache.fop.messaging.MessageHandler;
 import org.apache.fop.fo.flow.*;
 import org.apache.fop.fo.properties.*;
-import org.apache.fop.layout.AreaTree;
+import org.apache.fop.layout.*;
 import org.apache.fop.apps.FOPException;
 
 /**
@@ -35,6 +35,36 @@ public class InlineContainer extends ToBeImplementedElement {
                               PropertyList propertyList) throws FOPException {
         super(parent, propertyList);
         this.name = "fo:inline-container";
+
+        // Common Border, Padding, and Background Properties
+        BorderAndPadding bap = propMgr.getBorderAndPadding();
+        BackgroundProps bProps = propMgr.getBackgroundProps();
+
+        // Common Margin Properties-Inline
+        MarginInlineProps mProps = propMgr.getMarginInlineProps();
+
+        // Common Relative Position Properties
+        RelativePositionProps mRelProps = propMgr.getRelativePositionProps();
+
+        // this.properties.get("alignment-adjust");
+        // this.properties.get("alignment-baseline");
+        // this.properties.get("baseline-shift");
+        // this.properties.get("block-progression-dimension");
+        // this.properties.get("clip");
+        // this.properties.get("display-align");
+        // this.properties.get("dominant-baseline");
+        // this.properties.get("height");
+        // this.properties.get("id");
+        // this.properties.get("inline-progression-dimension");
+        // this.properties.get("keep-together");
+        // this.properties.get("keep-with-next");
+        // this.properties.get("keep-with-previous");
+        // this.properties.get("line-height");
+        // this.properties.get("line-height-shift-adjustment");
+        // this.properties.get("overflow");
+        // this.properties.get("reference-orientation");
+        // this.properties.get("width");
+        // this.properties.get("writing-mode");
     }
 
 }
index b8273206b7eaacfeec5e571bbb04fd03fb01276c..27f9dc1c4bc40e1ac69043d506aedc4bbdeae7e6 100644 (file)
@@ -93,6 +93,45 @@ public class InstreamForeignObject extends FObj {
         }
 
         if (this.marker == START) {
+
+            // Common Accessibility Properties
+            AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+        
+            // Common Aural Properties
+            AuralProps mAurProps = propMgr.getAuralProps();
+
+            // Common Border, Padding, and Background Properties
+            BorderAndPadding bap = propMgr.getBorderAndPadding();
+            BackgroundProps bProps = propMgr.getBackgroundProps();
+
+            // Common Margin Properties-Inline
+            MarginInlineProps mProps = propMgr.getMarginInlineProps();
+
+            // Common Relative Position Properties
+            RelativePositionProps mRelProps = propMgr.getRelativePositionProps();
+
+            // this.properties.get("alignment-adjust");
+            // this.properties.get("alignment-baseline");
+            // this.properties.get("baseline-shift");
+            // this.properties.get("block-progression-dimension");
+            // this.properties.get("content-height");
+            // this.properties.get("content-type");
+            // this.properties.get("content-width");
+            // this.properties.get("display-align");
+            // this.properties.get("dominant-baseline");
+            // this.properties.get("height");  
+            // this.properties.get("id");
+            // this.properties.get("inline-progression-dimension");
+            // this.properties.get("keep-with-next");
+            // this.properties.get("keep-with-previous");
+            // this.properties.get("line-height");
+            // this.properties.get("line-height-shift-adjustment");
+            // this.properties.get("overflow");
+            // this.properties.get("scaling");
+            // this.properties.get("scaling-method");
+            // this.properties.get("text-align");
+            // this.properties.get("width");
+
             /* retrieve properties */
             String id = this.properties.get("id").getString();
             int align = this.properties.get("text-align").getEnum();
index 6447d00827251b4d5ec36350c52dea97d31edea5..97d1e00c89b703fdf442de38ec4a09d47c3520fe 100644 (file)
@@ -11,7 +11,7 @@ package org.apache.fop.fo.flow;
 import org.apache.fop.fo.*;
 import org.apache.fop.fo.properties.*;
 import org.apache.fop.datatypes.*;
-import org.apache.fop.layout.Area;
+import org.apache.fop.layout.*;
 import org.apache.fop.layout.BlockArea;
 import org.apache.fop.layout.inline.LeaderArea;
 import org.apache.fop.layout.LineArea;
@@ -54,6 +54,47 @@ public class Leader extends FObjMixed {
             blockArea = (BlockArea)area;
         }
 
+        // Common Accessibility Properties
+        AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+
+        // Common Aural Properties
+        AuralProps mAurProps = propMgr.getAuralProps();
+
+        // Common Border, Padding, and Background Properties
+        BorderAndPadding bap = propMgr.getBorderAndPadding();
+        BackgroundProps bProps = propMgr.getBackgroundProps();
+
+        // Common Font Properties
+        //this.fontState = propMgr.getFontState(area.getFontInfo());
+
+        // Common Margin Properties-Inline
+        MarginInlineProps mProps = propMgr.getMarginInlineProps();
+
+        // Common Relative Position Properties
+        RelativePositionProps mRelProps = propMgr.getRelativePositionProps();
+
+        // this.properties.get("alignment-adjust");
+        // this.properties.get("alignment-baseline");
+        // this.properties.get("baseline-shift");
+        // this.properties.get("color");
+        // this.properties.get("dominant-baseline");
+        // this.properties.get("text-depth");
+        // this.properties.get("text-altitude");
+        // this.properties.get("id");
+        // this.properties.get("leader-alignment");
+        // this.properties.get("leader-length");
+        // this.properties.get("leader-pattern");
+        // this.properties.get("leader-pattern-width");
+        // this.properties.get("rule-style");
+        // this.properties.get("rule-thickness");
+        // this.properties.get("letter-spacing");
+        // this.properties.get("line-height");
+        // this.properties.get("line-height-shift-adjustment");
+        // this.properties.get("text-shadow");
+        // this.properties.get("visibility");
+        // this.properties.get("word-spacing");
+        // this.properties.get("z-index");
+
         // color properties
         ColorType c = this.properties.get("color").getColorType();
         float red = c.red();
index 6b7534da8411e241e7040fe2ae81ab6b2bea1688..3b93659d3c5110dd0da4a4b4362d2a7cfa4dd5a4 100644 (file)
@@ -12,7 +12,7 @@ import org.apache.fop.fo.*;
 import org.apache.fop.messaging.MessageHandler;
 import org.apache.fop.fo.properties.*;
 import org.apache.fop.datatypes.*;
-import org.apache.fop.layout.Area;
+import org.apache.fop.layout.*;
 import org.apache.fop.layout.BlockArea;
 import org.apache.fop.layout.FontState;
 import org.apache.fop.apps.FOPException;
@@ -54,6 +54,31 @@ public class ListBlock extends FObj {
     public Status layout(Area area) throws FOPException {
         if (this.marker == START) {
 
+            // Common Accessibility Properties
+            AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+        
+            // Common Aural Properties
+            AuralProps mAurProps = propMgr.getAuralProps();
+
+            // Common Border, Padding, and Background Properties
+            BorderAndPadding bap = propMgr.getBorderAndPadding();
+            BackgroundProps bProps = propMgr.getBackgroundProps();
+
+            // Common Margin Properties-Block
+            MarginProps mProps = propMgr.getMarginProps();
+
+            // Common Relative Position Properties
+            RelativePositionProps mRelProps = propMgr.getRelativePositionProps();
+
+            // this.properties.get("break-after");
+            // this.properties.get("break-before");
+            // this.properties.get("id");
+            // this.properties.get("keep-together");
+            // this.properties.get("keep-with-next");
+            // this.properties.get("keep-with-previous");
+            // this.properties.get("provisional-distance-between-starts");
+            // this.properties.get("provisional-label-separation");
+
             this.align = this.properties.get("text-align").getEnum();
             this.alignLast = this.properties.get("text-align-last").getEnum();
             this.lineHeight =
index 08d268853839a88d8d9e4722c03bba82b20f2834..683a2b024ec9deb28ccef78a600a7ee03cc32131 100644 (file)
@@ -10,7 +10,7 @@ package org.apache.fop.fo.flow;
 // FOP
 import org.apache.fop.fo.*;
 import org.apache.fop.fo.properties.*;
-import org.apache.fop.layout.Area;
+import org.apache.fop.layout.*;
 import org.apache.fop.layout.BlockArea;
 import org.apache.fop.layout.FontState;
 import org.apache.fop.apps.FOPException;
@@ -52,6 +52,30 @@ public class ListItem extends FObj {
     public Status layout(Area area) throws FOPException {
         if (this.marker == START) {
 
+            // Common Accessibility Properties
+            AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+
+            // Common Aural Properties
+            AuralProps mAurProps = propMgr.getAuralProps();
+
+            // Common Border, Padding, and Background Properties
+            BorderAndPadding bap = propMgr.getBorderAndPadding();
+            BackgroundProps bProps = propMgr.getBackgroundProps();
+
+            // Common Margin Properties-Block
+            MarginProps mProps = propMgr.getMarginProps();
+
+            // Common Relative Position Properties
+            RelativePositionProps mRelProps = propMgr.getRelativePositionProps();
+
+            // this.properties.get("break-after");
+            // this.properties.get("break-before");
+            // this.properties.get("id");
+            // this.properties.get("keep-together");
+            // this.properties.get("keep-with-next");
+            // this.properties.get("keep-with-previous");
+            // this.properties.get("relative-align");
+
             this.align = this.properties.get("text-align").getEnum();
             this.alignLast = this.properties.get("text-align-last").getEnum();
             this.lineHeight =
index d39cbe82f2797c8845364edeaf4c6adf0f4e4ed3..fa00c4b4d3d9a87b38cf688341befa013a311a9e 100644 (file)
@@ -10,7 +10,7 @@ package org.apache.fop.fo.flow;
 // FOP
 import org.apache.fop.fo.*;
 import org.apache.fop.fo.properties.*;
-import org.apache.fop.layout.Area;
+import org.apache.fop.layout.*;
 import org.apache.fop.layout.FontState;
 import org.apache.fop.apps.FOPException;
 
@@ -38,6 +38,13 @@ public class ListItemBody extends FObj {
 
     public Status layout(Area area) throws FOPException {
         if (this.marker == START) {
+
+            // Common Accessibility Properties
+            AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+
+            // this.properties.get("id");
+            // this.properties.get("keep-together");
+
             this.marker = 0;
             // initialize id
             String id = this.properties.get("id").getString();
index b044e29bd7527e67699fdcebcc3eab7176025f48..a649459d35a07c41175d7c3849431cc4f63bd1b5 100644 (file)
@@ -10,7 +10,7 @@ package org.apache.fop.fo.flow;
 // FOP
 import org.apache.fop.fo.*;
 import org.apache.fop.fo.properties.*;
-import org.apache.fop.layout.Area;
+import org.apache.fop.layout.*;
 import org.apache.fop.layout.FontState;
 import org.apache.fop.apps.FOPException;
 
@@ -43,6 +43,12 @@ public class ListItemLabel extends FObj {
             throw new FOPException("list-item-label must have exactly one block in this version of FOP");
         }
 
+        // Common Accessibility Properties
+        AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+     
+        // this.properties.get("id");
+        // this.properties.get("keep-together");
+
         // initialize id
         String id = this.properties.get("id").getString();
         area.getIDReferences().initializeID(id, area);
index 6f9ca52bffffd5f9f945c3a23e91da09f02ff74b..9cd7a1073308787808c5f3471942163d8d6f53bc 100644 (file)
@@ -12,7 +12,7 @@ import org.apache.fop.fo.*;
 import org.apache.fop.messaging.MessageHandler;
 import org.apache.fop.fo.flow.*;
 import org.apache.fop.fo.properties.*;
-import org.apache.fop.layout.AreaTree;
+import org.apache.fop.layout.*;
 import org.apache.fop.apps.FOPException;
 
 /**
@@ -37,4 +37,16 @@ public class MultiCase extends ToBeImplementedElement {
         this.name = "fo:multi-case";
     }
 
+    public Status layout(Area area) throws FOPException {
+
+        // Common Accessibility Properties
+        AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+
+        // this.properties.get("id");
+        // this.properties.get("starting-state");
+        // this.properties.get("case-name");
+        // this.properties.get("case-title");
+
+        return super.layout(area);
+    }
 }
index ab6df05e77c2f0937d34dfb6f05b17ca994d74ef..03a42b289735f9a7928767843cef3883f26df454 100644 (file)
@@ -12,7 +12,7 @@ import org.apache.fop.fo.*;
 import org.apache.fop.messaging.MessageHandler;
 import org.apache.fop.fo.flow.*;
 import org.apache.fop.fo.properties.*;
-import org.apache.fop.layout.AreaTree;
+import org.apache.fop.layout.*;
 import org.apache.fop.apps.FOPException;
 
 /**
@@ -37,4 +37,13 @@ public class MultiProperties extends ToBeImplementedElement {
         this.name = "fo:multi-properties";
     }
 
+    public Status layout(Area area) throws FOPException {
+
+        // Common Accessibility Properties
+        AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+
+        // this.properties.get("id");
+
+        return super.layout(area);
+    }
 }
index 739dbf0d66f623c307ac901d0b1b7780ce3dc83e..7263f702d541cb904e46c61d22052898e67c56bd 100644 (file)
@@ -12,7 +12,7 @@ import org.apache.fop.fo.*;
 import org.apache.fop.messaging.MessageHandler;
 import org.apache.fop.fo.flow.*;
 import org.apache.fop.fo.properties.*;
-import org.apache.fop.layout.AreaTree;
+import org.apache.fop.layout.*;
 import org.apache.fop.apps.FOPException;
 
 /**
@@ -37,4 +37,11 @@ public class MultiPropertySet extends ToBeImplementedElement {
         this.name = "fo:multi-property-set";
     }
 
+    public Status layout(Area area) throws FOPException {
+
+        // this.properties.get("id");
+        // this.properties.get("active-state");
+
+        return super.layout(area);
+    }
 }
index a68380f8d9c030c71664ff35ea2b97c5928df454..42e6e185afadbc887508dc93f4af8cda3d311351 100644 (file)
@@ -12,7 +12,7 @@ import org.apache.fop.fo.*;
 import org.apache.fop.messaging.MessageHandler;
 import org.apache.fop.fo.flow.*;
 import org.apache.fop.fo.properties.*;
-import org.apache.fop.layout.AreaTree;
+import org.apache.fop.layout.*;
 import org.apache.fop.apps.FOPException;
 
 /**
@@ -37,4 +37,14 @@ public class MultiSwitch extends ToBeImplementedElement {
         this.name = "fo:multi-switch";
     }
 
+    public Status layout(Area area) throws FOPException {
+
+        // Common Accessibility Properties
+        AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+
+        // this.properties.get("auto-restore");
+        // this.properties.get("id");
+
+        return super.layout(area);
+    }
 }
index 97da2ea9f32fd7cefa20aa70683a78b52c31e989..8fce89f14346195c7099fff9be607debda447941 100644 (file)
@@ -12,7 +12,7 @@ import org.apache.fop.fo.*;
 import org.apache.fop.messaging.MessageHandler;
 import org.apache.fop.fo.flow.*;
 import org.apache.fop.fo.properties.*;
-import org.apache.fop.layout.AreaTree;
+import org.apache.fop.layout.*;
 import org.apache.fop.apps.FOPException;
 
 /**
@@ -37,4 +37,14 @@ public class MultiToggle extends ToBeImplementedElement {
         this.name = "fo:multi-toggle";
     }
 
+    public Status layout(Area area) throws FOPException {
+
+        // Common Accessibility Properties
+        AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+
+        // this.properties.get("id");
+        // this.properties.get("switch-to");
+
+        return super.layout(area);
+    }
 }
index fc830df1e27c798ee788e6e268d68876a32e0726..ddfb60473486d757c3d167d6509c2b4b81404eb2 100644 (file)
@@ -9,6 +9,7 @@ package org.apache.fop.fo.flow;
 
 // FOP
 import org.apache.fop.fo.*;
+import org.apache.fop.layout.*;
 import org.apache.fop.messaging.MessageHandler;
 import org.apache.fop.datatypes.*;
 import org.apache.fop.fo.properties.*;
@@ -51,6 +52,41 @@ public class PageNumber extends FObj {
         }
         if (this.marker == START) {
 
+            // Common Accessibility Properties
+            AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+        
+            // Common Aural Properties
+            AuralProps mAurProps = propMgr.getAuralProps();
+
+            // Common Border, Padding, and Background Properties
+            BorderAndPadding bap = propMgr.getBorderAndPadding();
+            BackgroundProps bProps = propMgr.getBackgroundProps();
+
+            // Common Font Properties
+            //this.fontState = propMgr.getFontState(area.getFontInfo());
+            // Common Margin Properties-Inline
+            MarginInlineProps mProps = propMgr.getMarginInlineProps();
+
+            // Common Relative Position Properties
+            RelativePositionProps mRelProps = propMgr.getRelativePositionProps();
+        
+            // this.properties.get("alignment-adjust");
+            // this.properties.get("alignment-baseline");
+            // this.properties.get("baseline-shift");
+            // this.properties.get("dominant-baseline");
+            // this.properties.get("id");
+            // this.properties.get("keep-with-next");
+            // this.properties.get("keep-with-previous");
+            // this.properties.get("letter-spacing");
+            // this.properties.get("line-height");
+            // this.properties.get("line-height-shift-adjustment");
+            // this.properties.get("score-spaces");
+            // this.properties.get("text-decoration");
+            // this.properties.get("text-shadow");
+            // this.properties.get("text-transform");
+            // this.properties.get("word-spacing");
+
             ColorType c = this.properties.get("color").getColorType();
             this.red = c.red();
             this.green = c.green();
index 78ec9f0ff2e4f3721887194d4d98a24083578b93..95d93b6276615860cf9a859fb2e9aa5674546c81 100644 (file)
@@ -113,6 +113,42 @@ public class PageNumberCitation extends FObj {
         this.area = area;
         if (this.marker == START) {
 
+            // Common Accessibility Properties            
+            AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+
+            // Common Aural Properties            
+            AuralProps mAurProps = propMgr.getAuralProps();            
+
+            // Common Border, Padding, and Background Properties            
+            BorderAndPadding bap = propMgr.getBorderAndPadding();            
+            BackgroundProps bProps = propMgr.getBackgroundProps();            
+
+            // Common Font Properties            
+            //this.fontState = propMgr.getFontState(area.getFontInfo());  
+
+            // Common Margin Properties-Inline            
+            MarginInlineProps mProps = propMgr.getMarginInlineProps();    
+
+            // Common Relative Position Properties            
+            RelativePositionProps mRelProps = propMgr.getRelativePositionProps();
+
+            // this.properties.get("alignment-adjust");            
+            // this.properties.get("alignment-baseline");            
+            // this.properties.get("baseline-shift");            
+            // this.properties.get("dominant-baseline");            
+            // this.properties.get("id");            
+            // this.properties.get("keep-with-next");            
+            // this.properties.get("keep-with-previous");
+            // this.properties.get("letter-spacing");
+            // this.properties.get("line-height");
+            // this.properties.get("line-height-shift-adjustment");            
+            // this.properties.get("ref-id");                        
+            // this.properties.get("score-spaces");           
+            // this.properties.get("text-decoration");
+            // this.properties.get("text-shadow");
+            // this.properties.get("text-transform");
+            // this.properties.get("word-spacing");
+
             ColorType c = this.properties.get("color").getColorType();
             this.red = c.red();
             this.green = c.green();
index 68d459d16dd3574efc6aa0972c7ae5f473029a0c..4f67da52b88f8dd0142d7ffb3310b1ecfd5ddb58 100644 (file)
@@ -62,6 +62,43 @@ public class Table extends FObj {
         }
 
         if (this.marker == START) {
+            // Common Accessibility Properties
+            AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+
+            // Common Aural Properties
+            AuralProps mAurProps = propMgr.getAuralProps();
+
+            // Common Border, Padding, and Background Properties
+            BorderAndPadding bap = propMgr.getBorderAndPadding();
+            BackgroundProps bProps = propMgr.getBackgroundProps();
+
+            // Common Margin Properties-Block
+            MarginProps mProps = propMgr.getMarginProps();
+
+            // Common Relative Position Properties 
+            RelativePositionProps mRelProps = propMgr.getRelativePositionProps();
+        
+            // this.properties.get("block-progression-dimension");
+            // this.properties.get("border-after-precendence");              
+            // this.properties.get("border-before-precedence");
+            // this.properties.get("border-collapse");
+            // this.properties.get("border-end-precendence");
+            // this.properties.get("border-separation");
+            // this.properties.get("border-start-precendence");
+            // this.properties.get("break-after");
+            // this.properties.get("break-before");
+            // this.properties.get("id");
+            // this.properties.get("inline-progression-dimension");
+            // this.properties.get("height");
+            // this.properties.get("keep-together");
+            // this.properties.get("keep-with-next");
+            // this.properties.get("keep-with-previous");
+            // this.properties.get("table-layout");              
+            // this.properties.get("table-omit-footer-at-break");              
+            // this.properties.get("table-omit-header-at-break");
+            // this.properties.get("width");              
+            // this.properties.get("writing-mode");              
+
             this.breakBefore = this.properties.get("break-before").getEnum();
             this.breakAfter = this.properties.get("break-after").getEnum();
             this.spaceBefore =
index 9f28d663376eed7565927293751ae93e9769d19a..b9243aeead66f793c1c6381b8650ae4fa3a7ece9 100644 (file)
@@ -12,7 +12,7 @@ import org.apache.fop.fo.*;
 import org.apache.fop.messaging.MessageHandler;
 import org.apache.fop.fo.flow.*;
 import org.apache.fop.fo.properties.*;
-import org.apache.fop.layout.AreaTree;
+import org.apache.fop.layout.*;
 import org.apache.fop.apps.FOPException;
 
 /**
@@ -37,4 +37,30 @@ public class TableAndCaption extends ToBeImplementedElement {
         this.name = "fo:table-and-caption";
     }
 
+    public Status layout(Area area) throws FOPException {
+
+        // Common Accessibility Properties
+        AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+
+        // Common Aural Properties
+        AuralProps mAurProps = propMgr.getAuralProps();
+
+        // Common Border, Padding, and Background Properties
+        BorderAndPadding bap = propMgr.getBorderAndPadding();
+        BackgroundProps bProps = propMgr.getBackgroundProps();
+
+        // Common Margin Properties-Block
+        MarginProps mProps = propMgr.getMarginProps();
+
+        // Common Relative Position Properties
+        RelativePositionProps mRelProps = propMgr.getRelativePositionProps();
+
+        // this.properties.get("caption-side");
+        // this.properties.get("id");
+        // this.properties.get("keep-together");
+        // this.properties.get("keep-with-next");
+        // this.properties.get("keep-with-previous");
+
+        return super.layout(area);
+    }
 }
index ca9cee8f44267ab1d58b69a568e39527a49872e1..7ca06d17266e9db3d6c821ab9bb0ecd9dec995a3 100644 (file)
@@ -70,6 +70,21 @@ public class TableBody extends FObj {
 
         if (this.marker == START) {
 
+            // Common Accessibility Properties
+            AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+
+            // Common Aural Properties
+            AuralProps mAurProps = propMgr.getAuralProps();
+
+            // Common Border, Padding, and Background Properties
+            BorderAndPadding bap = propMgr.getBorderAndPadding();
+            BackgroundProps bProps = propMgr.getBackgroundProps();
+
+            // Common Relative Position Properties        
+            RelativePositionProps mRelProps = propMgr.getRelativePositionProps();
+        
+            // this.properties.get("id");
+
             this.spaceBefore =
                 this.properties.get("space-before.optimum").getLength().mvalue();
             this.spaceAfter =
index 0c617f471afd891f5124842ef513f589291bc35a..93712f309bbecfea8cbc17b157736bad9ec89768 100644 (file)
@@ -12,7 +12,7 @@ import org.apache.fop.fo.*;
 import org.apache.fop.messaging.MessageHandler;
 import org.apache.fop.fo.flow.*;
 import org.apache.fop.fo.properties.*;
-import org.apache.fop.layout.AreaTree;
+import org.apache.fop.layout.*;
 import org.apache.fop.apps.FOPException;
 
 /**
@@ -37,4 +37,28 @@ public class TableCaption extends ToBeImplementedElement {
         this.name = "fo:table-caption";
     }
 
+    public Status layout(Area area) throws FOPException {
+
+        // Common Accessibility Properties
+        AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+
+        // Common Aural Properties
+        AuralProps mAurProps = propMgr.getAuralProps();
+
+        // Common Border, Padding, and Background Properties
+        BorderAndPadding bap = propMgr.getBorderAndPadding();
+        BackgroundProps bProps = propMgr.getBackgroundProps();
+
+        // Common Relative Position Properties
+        RelativePositionProps mRelProps = propMgr.getRelativePositionProps();
+
+        // this.properties.get("block-progression-dimension");
+        // this.properties.get("height");
+        // this.properties.get("id");
+        // this.properties.get("inline-progression-dimension");
+        // this.properties.get("keep-togethe");
+        // this.properties.get("width");
+
+        return super.layout(area);
+    }
 }
index eeaa99cf68d9cbcf933bb8eb014f1bb4e3c7ff42..24d5d12d45c62ab92f41a4ec838bb4f5a33b6021 100644 (file)
@@ -122,6 +122,36 @@ public class TableCell extends FObj {
 
     public void doSetup()    // throws FOPException
      {
+        // Common Accessibility Properties
+        AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+
+        // Common Aural Properties
+        AuralProps mAurProps = propMgr.getAuralProps();
+
+        // Common Border, Padding, and Background Properties
+        BorderAndPadding bap = propMgr.getBorderAndPadding();
+        BackgroundProps bProps = propMgr.getBackgroundProps();
+
+        // Common Relative Position Properties
+        RelativePositionProps mRelProps = propMgr.getRelativePositionProps();
+
+        // this.properties.get("border-after-precedence");
+        // this.properties.get("border-before-precendence");
+        // this.properties.get("border-end-precendence");
+        // this.properties.get("border-start-precendence");
+        // this.properties.get("block-progression-dimension");
+        // this.properties.get("column-number");
+        // this.properties.get("display-align");
+        // this.properties.get("relative-align");
+        // this.properties.get("empty-cells");
+        // this.properties.get("ends-row");
+        // this.properties.get("height");
+        // this.properties.get("id");
+        // this.properties.get("number-columns-spanned");
+        // this.properties.get("number-rows-spanned");
+        // this.properties.get("starts-row");
+        // this.properties.get("width");
+
         this.iColNumber =
             properties.get("column-number").getNumber().intValue();
         if (iColNumber < 0) {
index d3c05fe809fb6ffbfa4d2e513489c45ce56557be..2afe6cafc014421c7a3a11706ca6766a1df53c1f 100644 (file)
@@ -57,6 +57,19 @@ public class TableColumn extends FObj {
 
     public void doSetup(Area area) throws FOPException {
 
+        // Common Border, Padding, and Background Properties
+        // only background apply, border apply if border-collapse
+        // is collapse.
+        BorderAndPadding bap = propMgr.getBorderAndPadding();
+        BackgroundProps bProps = propMgr.getBackgroundProps();
+
+        // this.properties.get("column-number");
+        // this.properties.get("column-width");
+        // this.properties.get("number-columns-repeated");
+        // this.properties.get("number-columns-spanned");
+        // this.properties.get("visibility");
+
+
         this.numColumnsRepeated =
             this.properties.get("number-columns-repeated").getNumber().intValue();
 
index 9fb0038bcc42001c340a3dbc260c5653c2fe552b..d2d879c97026e4b455a4cc011ee61af237c2c7f8 100644 (file)
@@ -188,6 +188,32 @@ public class TableRow extends FObj {
 
     public void doSetup(Area area) throws FOPException {
 
+        // Common Accessibility Properties
+        AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+            
+        // this.properties.get("block-progression-dimension");
+
+        // Common Aural Properties
+        AuralProps mAurProps = propMgr.getAuralProps();
+
+        // Common Border, Padding, and Background Properties
+        // only background apply, border apply if border-collapse
+        // is collapse.
+        BorderAndPadding bap = propMgr.getBorderAndPadding();
+        BackgroundProps bProps = propMgr.getBackgroundProps();
+
+        // Common Relative Position Properties
+        RelativePositionProps mRelProps = propMgr.getRelativePositionProps();
+                    
+        // this.properties.get("break-before");
+        // this.properties.get("break-after");
+        // this.properties.get("id");
+        // this.properties.get("height");
+        // this.properties.get("keep-together");
+        // this.properties.get("keep-with-next");
+        // this.properties.get("keep-with-previous");
+
+
         this.breakAfter = this.properties.get("break-after").getEnum();
         this.backgroundColor =
             this.properties.get("background-color").getColorType();