You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by bc...@apache.org on 2004/09/30 21:56:24 UTC

cvs commit: xml-fop/src/java/org/apache/fop/fo/flow BlockContainer.java Character.java

bckfnn      2004/09/30 12:56:24

  Modified:    src/java/org/apache/fop/fo/flow BlockContainer.java
                        Character.java
  Log:
  Fire FOEventandler events.
  
  Revision  Changes    Path
  1.24      +8 -0      xml-fop/src/java/org/apache/fop/fo/flow/BlockContainer.java
  
  Index: BlockContainer.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/flow/BlockContainer.java,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- BlockContainer.java	11 Sep 2004 17:11:58 -0000	1.23
  +++ BlockContainer.java	30 Sep 2004 19:56:24 -0000	1.24
  @@ -66,6 +66,14 @@
   
           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);
       }
   
       /**
  
  
  
  1.21      +9 -0      xml-fop/src/java/org/apache/fop/fo/flow/Character.java
  
  Index: Character.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/flow/Character.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- Character.java	11 Sep 2004 17:11:58 -0000	1.20
  +++ Character.java	30 Sep 2004 19:56:24 -0000	1.21
  @@ -22,6 +22,7 @@
   import java.util.List;
   
   // XML
  +import org.xml.sax.Attributes;
   import org.xml.sax.Locator;
   import org.xml.sax.SAXParseException;
   
  @@ -68,6 +69,14 @@
       protected void validateChildNode(Locator loc, String nsURI, String localName) 
           throws SAXParseException {
               invalidChildError(loc, nsURI, localName);
  +    }
  +
  +    /**
  +     * @see org.apache.fop.fo.FObj#addProperties
  +     */
  +    protected void addProperties(Attributes attlist) throws SAXParseException {
  +        super.addProperties(attlist);
  +        getFOEventHandler().character(this);
       }
   
       /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org