gmazza      2004/08/23 15:09:20

  Modified:    src/java/org/apache/fop/fo/flow MultiCase.java
                        MultiProperties.java MultiPropertySet.java
                        MultiSwitch.java MultiToggle.java
                        TableAndCaption.java TableCaption.java
  Removed:     src/java/org/apache/fop/fo ToBeImplementedElement.java
  Log:
  ToBeImplementedElement removed in favor of one-time static warning messages
  in the "unimplemented" FO's.
  
  Revision  Changes    Path
  1.14      +10 -4     xml-fop/src/java/org/apache/fop/fo/flow/MultiCase.java
  
  Index: MultiCase.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/flow/MultiCase.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- MultiCase.java    21 Aug 2004 19:48:00 -0000      1.13
  +++ MultiCase.java    23 Aug 2004 22:09:20 -0000      1.14
  @@ -20,19 +20,25 @@
   
   // FOP
   import org.apache.fop.fo.FONode;
  -import org.apache.fop.fo.ToBeImplementedElement;
  +import org.apache.fop.fo.FObj;
   
   /**
  - * Class modelling the fo:multi-case object. See Sec. 6.9.4 of the XSL-FO
  - * Standard.
  + * Class modelling the fo:multi-case object.
    */
  -public class MultiCase extends ToBeImplementedElement {
  +public class MultiCase extends FObj {
  +
  +    static boolean notImplementedWarningGiven = false;
   
       /**
        * @param parent FONode that is the parent of this object
        */
       public MultiCase(FONode parent) {
           super(parent);
  +
  +        if (!notImplementedWarningGiven) {
  +            getLogger().warn("fo:multi-case is not yet implemented.");
  +            notImplementedWarningGiven = true;
  +        }
       }
   
       /**
  
  
  
  1.13      +1 -2      xml-fop/src/java/org/apache/fop/fo/flow/MultiProperties.java
  
  Index: MultiProperties.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/flow/MultiProperties.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- MultiProperties.java      21 Aug 2004 19:48:00 -0000      1.12
  +++ MultiProperties.java      23 Aug 2004 22:09:20 -0000      1.13
  @@ -28,8 +28,7 @@
   import org.apache.fop.fo.FObj;
   
   /**
  - * Class modelling the fo:multi-properties object. See Sec. 6.9.6 of the XSL-FO
  - * Standard.
  + * Class modelling the fo:multi-properties object.
    */
   public class MultiProperties extends FObj {
   
  
  
  
  1.13      +10 -4     xml-fop/src/java/org/apache/fop/fo/flow/MultiPropertySet.java
  
  Index: MultiPropertySet.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/flow/MultiPropertySet.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- MultiPropertySet.java     11 Aug 2004 04:15:26 -0000      1.12
  +++ MultiPropertySet.java     23 Aug 2004 22:09:20 -0000      1.13
  @@ -25,19 +25,25 @@
   
   // FOP
   import org.apache.fop.fo.FONode;
  -import org.apache.fop.fo.ToBeImplementedElement;
  +import org.apache.fop.fo.FObj;
   
   /**
  - * Class modelling the fo:multi-property-set object. See Sec. 6.9.7 of the
  - * XSL-FO Standard.
  + * Class modelling the fo:multi-property-set object.
    */
  -public class MultiPropertySet extends ToBeImplementedElement {
  +public class MultiPropertySet extends FObj {
  +
  +    static boolean notImplementedWarningGiven = false;
   
       /**
        * @param parent FONode that is the parent of this object
        */
       public MultiPropertySet(FONode parent) {
           super(parent);
  +
  +        if (!notImplementedWarningGiven) {
  +            getLogger().warn("fo:multi-property-set is not yet implemented.");
  +            notImplementedWarningGiven = true;
  +        }
       }
   
       /**
  
  
  
  1.13      +13 -4     xml-fop/src/java/org/apache/fop/fo/flow/MultiSwitch.java
  
  Index: MultiSwitch.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/flow/MultiSwitch.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- MultiSwitch.java  11 Aug 2004 04:15:26 -0000      1.12
  +++ MultiSwitch.java  23 Aug 2004 22:09:20 -0000      1.13
  @@ -20,21 +20,30 @@
   
   // FOP
   import org.apache.fop.fo.FONode;
  -import org.apache.fop.fo.ToBeImplementedElement;
  +import org.apache.fop.fo.FObj;
   
   /**
  - * Class modelling the fo:multi-switch object. See Sec. 6.9.3 of the XSL-FO
  - * Standard.
  + * Class modelling the fo:multi-switch object.
    */
  -public class MultiSwitch extends ToBeImplementedElement {
  +public class MultiSwitch extends FObj {
  +
  +    static boolean notImplementedWarningGiven = false;
   
       /**
        * @param parent FONode that is the parent of this object
        */
       public MultiSwitch(FONode parent) {
           super(parent);
  +
  +        if (!notImplementedWarningGiven) {
  +            getLogger().warn("fo:multi-switch is not yet implemented.");
  +            notImplementedWarningGiven = true;
  +        }
       }
   
  +    /**
  +     * @see org.apache.fop.fo.FObj#getName()
  +     */
       public String getName() {
           return "fo:multi-switch";
       }
  
  
  
  1.13      +10 -4     xml-fop/src/java/org/apache/fop/fo/flow/MultiToggle.java
  
  Index: MultiToggle.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/flow/MultiToggle.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- MultiToggle.java  11 Aug 2004 04:15:26 -0000      1.12
  +++ MultiToggle.java  23 Aug 2004 22:09:20 -0000      1.13
  @@ -20,19 +20,25 @@
   
   // FOP
   import org.apache.fop.fo.FONode;
  -import org.apache.fop.fo.ToBeImplementedElement;
  +import org.apache.fop.fo.FObj;
   
   /**
  - * Class modelling the fo:multi-toggle property. See Sec. 6.9.5 of the XSL-FO
  - * Standard.
  + * Class modelling the fo:multi-toggle property.
    */
  -public class MultiToggle extends ToBeImplementedElement {
  +public class MultiToggle extends FObj {
  +
  +    static boolean notImplementedWarningGiven = false;
   
       /**
        * @param parent FONode that is the parent of this object
        */
       public MultiToggle(FONode parent) {
           super(parent);
  +
  +        if (!notImplementedWarningGiven) {
  +            getLogger().warn("fo:multi-toggle is not yet implemented.");
  +            notImplementedWarningGiven = true;
  +        }
       }
   
       /**
  
  
  
  1.15      +10 -4     xml-fop/src/java/org/apache/fop/fo/flow/TableAndCaption.java
  
  Index: TableAndCaption.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/flow/TableAndCaption.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- TableAndCaption.java      18 Aug 2004 03:26:36 -0000      1.14
  +++ TableAndCaption.java      23 Aug 2004 22:09:20 -0000      1.15
  @@ -20,19 +20,25 @@
   
   // FOP
   import org.apache.fop.fo.FONode;
  -import org.apache.fop.fo.ToBeImplementedElement;
  +import org.apache.fop.fo.FObj;
   
   /**
  - * Class modelling the fo:table-and-caption property. See Sec. 6.7.2 of the
  - * XSL-FO Standard.
  + * Class modelling the fo:table-and-caption property.
    */
  -public class TableAndCaption extends ToBeImplementedElement {
  +public class TableAndCaption extends FObj {
  +
  +    static boolean notImplementedWarningGiven = false;
   
       /**
        * @param parent FONode that is the parent of this object
        */
       public TableAndCaption(FONode parent) {
           super(parent);
  +
  +        if (!notImplementedWarningGiven) {
  +            getLogger().warn("fo:table-and-caption is not yet implemented.");
  +            notImplementedWarningGiven = true;
  +        }
       }
   
       /**
  
  
  
  1.15      +13 -4     xml-fop/src/java/org/apache/fop/fo/flow/TableCaption.java
  
  Index: TableCaption.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/flow/TableCaption.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- TableCaption.java 11 Aug 2004 04:15:26 -0000      1.14
  +++ TableCaption.java 23 Aug 2004 22:09:20 -0000      1.15
  @@ -20,21 +20,30 @@
   
   // FOP
   import org.apache.fop.fo.FONode;
  -import org.apache.fop.fo.ToBeImplementedElement;
  +import org.apache.fop.fo.FObj;
   
   /**
  - * Class modelling the fo:table-caption object. See Sec. 6.7.5 of the XSL-FO
  - * Standard.
  + * Class modelling the fo:table-caption object.
    */
  -public class TableCaption extends ToBeImplementedElement {
  +public class TableCaption extends FObj {
  +
  +    static boolean notImplementedWarningGiven = false;
   
       /**
        * @param parent FONode that is the parent of this object
        */
       public TableCaption(FONode parent) {
           super(parent);
  +
  +        if (!notImplementedWarningGiven) {
  +            getLogger().warn("fo:table-caption is not yet implemented.");
  +            notImplementedWarningGiven = true;
  +        }
       }
   
  +    /**
  +     * @see org.apache.fop.fo.FObj#getName()
  +     */
       public String getName() {
           return "fo:table-caption";
       }
  
  
  

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

Reply via email to