bckfnn      2004/10/24 13:48:37

  Modified:    src/java/org/apache/fop/fo/extensions ExtensionObj.java
  Log:
  Fix a regression in pdfoutline.fo. Supply empty createPropertyList and
  processNode methods since the extension elements handles all attributes
  themself.
  
  Revision  Changes    Path
  1.6       +25 -1     xml-fop/src/java/org/apache/fop/fo/extensions/ExtensionObj.java
  
  Index: ExtensionObj.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/extensions/ExtensionObj.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- ExtensionObj.java 4 Aug 2004 22:50:57 -0000       1.5
  +++ ExtensionObj.java 24 Oct 2004 20:48:37 -0000      1.6
  @@ -18,8 +18,14 @@
   
   package org.apache.fop.fo.extensions;
   
  +import org.apache.fop.fo.FOEventHandler;
   import org.apache.fop.fo.FONode;
   import org.apache.fop.fo.FObj;
  +import org.apache.fop.fo.PropertyList;
  +import org.xml.sax.Attributes;
  +import org.xml.sax.Locator;
  +import org.xml.sax.SAXParseException;
  +
   
   /**
    * Base class for pdf bookmark extension objects.
  @@ -33,6 +39,24 @@
        */
       public ExtensionObj(FONode parent) {
           super(parent);
  +    }
  +
  +    /**
  +     * @see org.apache.fop.fo.FONode#processNode
  +     */
  +    public void processNode(String elementName, Locator locator, 
  +                            Attributes attlist, PropertyList pList)
  +        throws SAXParseException
  +    {
  +        // Empty
  +    }
  +
  +    /**
  +     * Create a default property list for this element. 
  +     */
  +    protected PropertyList createPropertyList(PropertyList parent, 
  +                FOEventHandler foEventHandler) throws SAXParseException {
  +        return null;
       }
   }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to