]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Fire FOEventandler events.
authorFinn Bock <bckfnn@apache.org>
Thu, 30 Sep 2004 19:56:24 +0000 (19:56 +0000)
committerFinn Bock <bckfnn@apache.org>
Thu, 30 Sep 2004 19:56:24 +0000 (19:56 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197984 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/fo/flow/BlockContainer.java
src/java/org/apache/fop/fo/flow/Character.java

index 55ab8eab0a667726826f7676f35344de64afd2af..15e7062e2825643e2ab28e5c5560e872ccf5ab74 100644 (file)
@@ -66,6 +66,14 @@ public class BlockContainer extends FObj {
 
         this.width = getPropLength(PR_WIDTH);
         this.height = getPropLength(PR_HEIGHT);
+        getFOEventHandler().startBlockContainer(this);
+    }
+    
+    /**
+     * @see org.apache.fop.fo.FONode#end
+     */
+    protected void endOfNode() throws SAXParseException {
+        getFOEventHandler().endBlockContainer(this);
     }
 
     /**
index 1dddd938d51ef00e918a0dd0fb277f786490db80..cf7847117a9bcfcb099eaea131fc28236a21eb62 100644 (file)
@@ -22,6 +22,7 @@ package org.apache.fop.fo.flow;
 import java.util.List;
 
 // XML
+import org.xml.sax.Attributes;
 import org.xml.sax.Locator;
 import org.xml.sax.SAXParseException;
 
@@ -70,6 +71,14 @@ public class Character extends FObj {
             invalidChildError(loc, nsURI, localName);
     }
 
+    /**
+     * @see org.apache.fop.fo.FObj#addProperties
+     */
+    protected void addProperties(Attributes attlist) throws SAXParseException {
+        super.addProperties(attlist);
+        getFOEventHandler().character(this);
+    }
+
     /**
      * @see org.apache.fop.fo.FObj#charIterator
      */