vmote       2003/07/13 13:52:06

  Modified:    src/java/org/apache/fop/fo FObj.java
                        ToBeImplementedElement.java
               src/java/org/apache/fop/fo/flow Table.java
                        TableAndCaption.java TableBody.java
                        TableCaption.java TableCell.java TableColumn.java
                        TableFooter.java TableHeader.java TableRow.java
                        Wrapper.java
  Log:
  style changes only
  
  Revision  Changes    Path
  1.9       +1 -1      xml-fop/src/java/org/apache/fop/fo/FObj.java
  
  Index: FObj.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/FObj.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- FObj.java 29 Jun 2003 19:34:33 -0000      1.8
  +++ FObj.java 13 Jul 2003 20:52:05 -0000      1.9
  @@ -334,7 +334,7 @@
       /**
        * Return a LayoutManager responsible for laying out this FObj's content.
        * Must override in subclasses if their content can be laid out.
  -     * @param list the list to add the layout manager(s) to
  +     * @param list the list to which the layout manager(s) should be added
        */
       public void addLayoutManager(List list) {
       }
  
  
  
  1.2       +14 -11    xml-fop/src/java/org/apache/fop/fo/ToBeImplementedElement.java
  
  Index: ToBeImplementedElement.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/ToBeImplementedElement.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ToBeImplementedElement.java       11 Mar 2003 13:05:19 -0000      1.1
  +++ ToBeImplementedElement.java       13 Jul 2003 20:52:05 -0000      1.2
  @@ -3,34 +3,34 @@
    * ============================================================================
    *                    The Apache Software License, Version 1.1
    * ============================================================================
  - * 
  + *
    * Copyright (C) 1999-2003 The Apache Software Foundation. All rights reserved.
  - * 
  + *
    * Redistribution and use in source and binary forms, with or without modifica-
    * tion, are permitted provided that the following conditions are met:
  - * 
  + *
    * 1. Redistributions of source code must retain the above copyright notice,
    *    this list of conditions and the following disclaimer.
  - * 
  + *
    * 2. Redistributions in binary form must reproduce the above copyright notice,
    *    this list of conditions and the following disclaimer in the documentation
    *    and/or other materials provided with the distribution.
  - * 
  + *
    * 3. The end-user documentation included with the redistribution, if any, must
    *    include the following acknowledgment: "This product includes software
    *    developed by the Apache Software Foundation (http://www.apache.org/)."
    *    Alternately, this acknowledgment may appear in the software itself, if
    *    and wherever such third-party acknowledgments normally appear.
  - * 
  + *
    * 4. The names "FOP" and "Apache Software Foundation" must not be used to
    *    endorse or promote products derived from this software without prior
    *    written permission. For written permission, please contact
    *    [EMAIL PROTECTED]
  - * 
  + *
    * 5. Products derived from this software may not be called "Apache", nor may
    *    "Apache" appear in their name, without prior written permission of the
    *    Apache Software Foundation.
  - * 
  + *
    * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
    * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
    * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
  @@ -42,12 +42,12 @@
    * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
    * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    * ============================================================================
  - * 
  + *
    * This software consists of voluntary contributions made by many individuals
    * on behalf of the Apache Software Foundation and was originally created by
    * James Tauber <[EMAIL PROTECTED]>. For more information on the Apache
    * Software Foundation, please see <http://www.apache.org/>.
  - */ 
  + */
   package org.apache.fop.fo;
   
   /**
  @@ -55,11 +55,14 @@
    */
   public class ToBeImplementedElement extends FObj {
   
  +    /**
  +     * @param parent FONode that is the parent of this object
  +     */
       protected ToBeImplementedElement(FONode parent) {
           super(parent);
       }
   
  -    public void setup() {
  +    private void setup() {
           getLogger().debug("This element \"" + this.name
                                + "\" is not yet implemented.");
       }
  
  
  
  1.2       +31 -13    xml-fop/src/java/org/apache/fop/fo/flow/Table.java
  
  Index: Table.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/flow/Table.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Table.java        11 Mar 2003 13:05:16 -0000      1.1
  +++ Table.java        13 Jul 2003 20:52:05 -0000      1.2
  @@ -3,34 +3,34 @@
    * ============================================================================
    *                    The Apache Software License, Version 1.1
    * ============================================================================
  - * 
  + *
    * Copyright (C) 1999-2003 The Apache Software Foundation. All rights reserved.
  - * 
  + *
    * Redistribution and use in source and binary forms, with or without modifica-
    * tion, are permitted provided that the following conditions are met:
  - * 
  + *
    * 1. Redistributions of source code must retain the above copyright notice,
    *    this list of conditions and the following disclaimer.
  - * 
  + *
    * 2. Redistributions in binary form must reproduce the above copyright notice,
    *    this list of conditions and the following disclaimer in the documentation
    *    and/or other materials provided with the distribution.
  - * 
  + *
    * 3. The end-user documentation included with the redistribution, if any, must
    *    include the following acknowledgment: "This product includes software
    *    developed by the Apache Software Foundation (http://www.apache.org/)."
    *    Alternately, this acknowledgment may appear in the software itself, if
    *    and wherever such third-party acknowledgments normally appear.
  - * 
  + *
    * 4. The names "FOP" and "Apache Software Foundation" must not be used to
    *    endorse or promote products derived from this software without prior
    *    written permission. For written permission, please contact
    *    [EMAIL PROTECTED]
  - * 
  + *
    * 5. Products derived from this software may not be called "Apache", nor may
    *    "Apache" appear in their name, without prior written permission of the
    *    Apache Software Foundation.
  - * 
  + *
    * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
    * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
    * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
  @@ -42,12 +42,12 @@
    * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
    * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    * ============================================================================
  - * 
  + *
    * This software consists of voluntary contributions made by many individuals
    * on behalf of the Apache Software Foundation and was originally created by
    * James Tauber <[EMAIL PROTECTED]>. For more information on the Apache
    * Software Foundation, please see <http://www.apache.org/>.
  - */ 
  + */
   package org.apache.fop.fo.flow;
   
   // Java
  @@ -70,9 +70,13 @@
   import org.apache.fop.layout.RelativePositionProps;
   import org.apache.fop.layoutmgr.table.TableLayoutManager;
   
  +/**
  + * Class modelling the fo:table object. See Sec. 6.7.3 of the XSL-FO Standard.
  + */
   public class Table extends FObj {
       private static final int MINCOLWIDTH = 10000; // 10pt
   
  +    /** collection of columns in this table */
       protected ArrayList columns = null;
       private TableBody tableHeader = null;
       private TableBody tableFooter = null;
  @@ -96,10 +100,17 @@
       /** Maximum inline-progression-dimension */
       private int maxIPD;
   
  +    /**
  +     * @param parent FONode that is the parent of this object
  +     */
       public Table(FONode parent) {
           super(parent);
       }
   
  +    /**
  +     * Overrides FObj.
  +     * @param child FONode child object to be added
  +     */
       protected void addChild(FONode child) {
           if (child.getName().equals("fo:table-column")) {
               if (columns == null) {
  @@ -119,6 +130,7 @@
       /**
        * Return a LayoutManager responsible for laying out this FObj's content.
        * Must override in subclasses if their content can be laid out.
  +     * @param list the list to which the layout manager(s) should be added
        */
       public void addLayoutManager(List list) {
           TableLayoutManager tlm = new TableLayoutManager();
  @@ -134,7 +146,7 @@
           list.add(tlm);
       }
   
  -    public void setup() {
  +    private void setup() {
           // Common Accessibility Properties
           AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
   
  @@ -188,18 +200,24 @@
                   "table-layout").getEnum() == TableLayout.AUTO);
   
           this.omitHeaderAtBreak = this.properties.get(
  -                "table-omit-header-at-break").getEnum() 
  +                "table-omit-header-at-break").getEnum()
                                               == TableOmitHeaderAtBreak.TRUE;
           this.omitFooterAtBreak = this.properties.get(
  -                "table-omit-footer-at-break").getEnum() 
  +                "table-omit-footer-at-break").getEnum()
                                               == TableOmitFooterAtBreak.TRUE;
   
       }
   
  +    /**
  +     * @return false (Table does not generate inline areas)
  +     */
       public boolean generatesInlineAreas() {
           return false;
       }
   
  +    /**
  +     * @return true (Table contains Markers)
  +     */
       protected boolean containsMarkers() {
           return true;
       }
  
  
  
  1.2       +22 -12    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.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TableAndCaption.java      11 Mar 2003 13:05:16 -0000      1.1
  +++ TableAndCaption.java      13 Jul 2003 20:52:05 -0000      1.2
  @@ -3,34 +3,34 @@
    * ============================================================================
    *                    The Apache Software License, Version 1.1
    * ============================================================================
  - * 
  + *
    * Copyright (C) 1999-2003 The Apache Software Foundation. All rights reserved.
  - * 
  + *
    * Redistribution and use in source and binary forms, with or without modifica-
    * tion, are permitted provided that the following conditions are met:
  - * 
  + *
    * 1. Redistributions of source code must retain the above copyright notice,
    *    this list of conditions and the following disclaimer.
  - * 
  + *
    * 2. Redistributions in binary form must reproduce the above copyright notice,
    *    this list of conditions and the following disclaimer in the documentation
    *    and/or other materials provided with the distribution.
  - * 
  + *
    * 3. The end-user documentation included with the redistribution, if any, must
    *    include the following acknowledgment: "This product includes software
    *    developed by the Apache Software Foundation (http://www.apache.org/)."
    *    Alternately, this acknowledgment may appear in the software itself, if
    *    and wherever such third-party acknowledgments normally appear.
  - * 
  + *
    * 4. The names "FOP" and "Apache Software Foundation" must not be used to
    *    endorse or promote products derived from this software without prior
    *    written permission. For written permission, please contact
    *    [EMAIL PROTECTED]
  - * 
  + *
    * 5. Products derived from this software may not be called "Apache", nor may
    *    "Apache" appear in their name, without prior written permission of the
    *    Apache Software Foundation.
  - * 
  + *
    * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
    * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
    * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
  @@ -42,12 +42,12 @@
    * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
    * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    * ============================================================================
  - * 
  + *
    * This software consists of voluntary contributions made by many individuals
    * on behalf of the Apache Software Foundation and was originally created by
    * James Tauber <[EMAIL PROTECTED]>. For more information on the Apache
    * Software Foundation, please see <http://www.apache.org/>.
  - */ 
  + */
   package org.apache.fop.fo.flow;
   
   // FOP
  @@ -61,15 +61,19 @@
   import org.apache.fop.layout.RelativePositionProps;
   
   /**
  - * fo:table-and-caption element.
  + * Class modelling the fo:table-and-caption property. See Sec. 6.7.2 of the
  + * XSL-FO Standard.
    */
   public class TableAndCaption extends ToBeImplementedElement {
   
  +    /**
  +     * @param parent FONode that is the parent of this object
  +     */
       public TableAndCaption(FONode parent) {
           super(parent);
       }
   
  -    public void setup() {
  +    private void setup() {
   
           // Common Accessibility Properties
           AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
  @@ -95,10 +99,16 @@
   
       }
   
  +    /**
  +     * @return false (TableAndCaption doesn't generate inline areas)
  +     */
       public boolean generatesInlineAreas() {
           return false;
       }
   
  +    /**
  +     * @return true (TableAndCaption contains Markers)
  +     */
       protected boolean containsMarkers() {
           return true;
       }
  
  
  
  1.2       +22 -11    xml-fop/src/java/org/apache/fop/fo/flow/TableBody.java
  
  Index: TableBody.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/flow/TableBody.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TableBody.java    11 Mar 2003 13:05:16 -0000      1.1
  +++ TableBody.java    13 Jul 2003 20:52:05 -0000      1.2
  @@ -3,34 +3,34 @@
    * ============================================================================
    *                    The Apache Software License, Version 1.1
    * ============================================================================
  - * 
  + *
    * Copyright (C) 1999-2003 The Apache Software Foundation. All rights reserved.
  - * 
  + *
    * Redistribution and use in source and binary forms, with or without modifica-
    * tion, are permitted provided that the following conditions are met:
  - * 
  + *
    * 1. Redistributions of source code must retain the above copyright notice,
    *    this list of conditions and the following disclaimer.
  - * 
  + *
    * 2. Redistributions in binary form must reproduce the above copyright notice,
    *    this list of conditions and the following disclaimer in the documentation
    *    and/or other materials provided with the distribution.
  - * 
  + *
    * 3. The end-user documentation included with the redistribution, if any, must
    *    include the following acknowledgment: "This product includes software
    *    developed by the Apache Software Foundation (http://www.apache.org/)."
    *    Alternately, this acknowledgment may appear in the software itself, if
    *    and wherever such third-party acknowledgments normally appear.
  - * 
  + *
    * 4. The names "FOP" and "Apache Software Foundation" must not be used to
    *    endorse or promote products derived from this software without prior
    *    written permission. For written permission, please contact
    *    [EMAIL PROTECTED]
  - * 
  + *
    * 5. Products derived from this software may not be called "Apache", nor may
    *    "Apache" appear in their name, without prior written permission of the
    *    Apache Software Foundation.
  - * 
  + *
    * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
    * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
    * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
  @@ -42,12 +42,12 @@
    * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
    * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    * ============================================================================
  - * 
  + *
    * This software consists of voluntary contributions made by many individuals
    * on behalf of the Apache Software Foundation and was originally created by
    * James Tauber <[EMAIL PROTECTED]>. For more information on the Apache
    * Software Foundation, please see <http://www.apache.org/>.
  - */ 
  + */
   package org.apache.fop.fo.flow;
   
   // Java
  @@ -66,12 +66,19 @@
   import org.apache.fop.layout.RelativePositionProps;
   import org.apache.fop.layoutmgr.table.Body;
   
  +/**
  + * Class modelling the fo:table-body object. See Sec. 6.7.8 of the XSL-FO
  + * Standard.
  + */
   public class TableBody extends FObj {
   
       private int spaceBefore;
       private int spaceAfter;
       private ColorType backgroundColor;
   
  +    /**
  +     * @param parent FONode that is the parent of the object
  +     */
       public TableBody(FONode parent) {
           super(parent);
       }
  @@ -79,6 +86,7 @@
       /**
        * Return a LayoutManager responsible for laying out this FObj's content.
        * Must override in subclasses if their content can be laid out.
  +     * @param list the list to which the layout manager(s) should be added
        */
       public void addLayoutManager(List list) {
           list.add(getLayoutManager());
  @@ -91,7 +99,7 @@
           return blm;
       }
   
  -    public void setup() throws FOPException {
  +    private void setup() throws FOPException {
           // Common Accessibility Properties
           AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
   
  @@ -117,6 +125,9 @@
   
       }
   
  +    /**
  +     * @return true (TableBody contains Markers)
  +     */
       protected boolean containsMarkers() {
           return true;
       }
  
  
  
  1.2       +21 -11    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.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TableCaption.java 11 Mar 2003 13:05:16 -0000      1.1
  +++ TableCaption.java 13 Jul 2003 20:52:05 -0000      1.2
  @@ -3,34 +3,34 @@
    * ============================================================================
    *                    The Apache Software License, Version 1.1
    * ============================================================================
  - * 
  + *
    * Copyright (C) 1999-2003 The Apache Software Foundation. All rights reserved.
  - * 
  + *
    * Redistribution and use in source and binary forms, with or without modifica-
    * tion, are permitted provided that the following conditions are met:
  - * 
  + *
    * 1. Redistributions of source code must retain the above copyright notice,
    *    this list of conditions and the following disclaimer.
  - * 
  + *
    * 2. Redistributions in binary form must reproduce the above copyright notice,
    *    this list of conditions and the following disclaimer in the documentation
    *    and/or other materials provided with the distribution.
  - * 
  + *
    * 3. The end-user documentation included with the redistribution, if any, must
    *    include the following acknowledgment: "This product includes software
    *    developed by the Apache Software Foundation (http://www.apache.org/)."
    *    Alternately, this acknowledgment may appear in the software itself, if
    *    and wherever such third-party acknowledgments normally appear.
  - * 
  + *
    * 4. The names "FOP" and "Apache Software Foundation" must not be used to
    *    endorse or promote products derived from this software without prior
    *    written permission. For written permission, please contact
    *    [EMAIL PROTECTED]
  - * 
  + *
    * 5. Products derived from this software may not be called "Apache", nor may
    *    "Apache" appear in their name, without prior written permission of the
    *    Apache Software Foundation.
  - * 
  + *
    * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
    * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
    * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
  @@ -42,12 +42,12 @@
    * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
    * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    * ============================================================================
  - * 
  + *
    * This software consists of voluntary contributions made by many individuals
    * on behalf of the Apache Software Foundation and was originally created by
    * James Tauber <[EMAIL PROTECTED]>. For more information on the Apache
    * Software Foundation, please see <http://www.apache.org/>.
  - */ 
  + */
   package org.apache.fop.fo.flow;
   
   // FOP
  @@ -60,14 +60,21 @@
   import org.apache.fop.layout.RelativePositionProps;
   
   /**
  - * fo:table-caption element.
  + * Class modelling the fo:table-caption object. See Sec. 6.7.5 of the XSL-FO
  + * Standard.
    */
   public class TableCaption extends ToBeImplementedElement {
   
  +    /**
  +     * @param parent FONode that is the parent of this object
  +     */
       public TableCaption(FONode parent) {
           super(parent);
       }
   
  +    /**
  +     * Initialize property values.
  +     */
       public void setup() {
   
           // Common Accessibility Properties
  @@ -92,6 +99,9 @@
   
       }
   
  +    /**
  +     * @return true (TableCaption contains Markers)
  +     */
       protected boolean containsMarkers() {
           return true;
       }
  
  
  
  1.2       +51 -16    xml-fop/src/java/org/apache/fop/fo/flow/TableCell.java
  
  Index: TableCell.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/flow/TableCell.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TableCell.java    11 Mar 2003 13:05:16 -0000      1.1
  +++ TableCell.java    13 Jul 2003 20:52:05 -0000      1.2
  @@ -3,34 +3,34 @@
    * ============================================================================
    *                    The Apache Software License, Version 1.1
    * ============================================================================
  - * 
  + *
    * Copyright (C) 1999-2003 The Apache Software Foundation. All rights reserved.
  - * 
  + *
    * Redistribution and use in source and binary forms, with or without modifica-
    * tion, are permitted provided that the following conditions are met:
  - * 
  + *
    * 1. Redistributions of source code must retain the above copyright notice,
    *    this list of conditions and the following disclaimer.
  - * 
  + *
    * 2. Redistributions in binary form must reproduce the above copyright notice,
    *    this list of conditions and the following disclaimer in the documentation
    *    and/or other materials provided with the distribution.
  - * 
  + *
    * 3. The end-user documentation included with the redistribution, if any, must
    *    include the following acknowledgment: "This product includes software
    *    developed by the Apache Software Foundation (http://www.apache.org/)."
    *    Alternately, this acknowledgment may appear in the software itself, if
    *    and wherever such third-party acknowledgments normally appear.
  - * 
  + *
    * 4. The names "FOP" and "Apache Software Foundation" must not be used to
    *    endorse or promote products derived from this software without prior
    *    written permission. For written permission, please contact
    *    [EMAIL PROTECTED]
  - * 
  + *
    * 5. Products derived from this software may not be called "Apache", nor may
    *    "Apache" appear in their name, without prior written permission of the
    *    Apache Software Foundation.
  - * 
  + *
    * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
    * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
    * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
  @@ -42,12 +42,12 @@
    * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
    * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    * ============================================================================
  - * 
  + *
    * This software consists of voluntary contributions made by many individuals
    * on behalf of the Apache Software Foundation and was originally created by
    * James Tauber <[EMAIL PROTECTED]>. For more information on the Apache
    * Software Foundation, please see <http://www.apache.org/>.
  - */ 
  + */
   package org.apache.fop.fo.flow;
   
   // Java
  @@ -71,7 +71,10 @@
   import org.apache.fop.layout.RelativePositionProps;
   import org.apache.fop.layoutmgr.table.Cell;
   
  -
  +/**
  + * Class modelling the fo:table-cell object. See Sec. 6.7.10 of the XSL-FO
  + * Standard.
  + */
   public class TableCell extends FObj {
   
       // private int spaceBefore;
  @@ -112,16 +115,22 @@
        */
       protected int widthAdjust = 0;
   
  -    /* For collapsed border style */
  +    /** For collapsed border style */
       protected int borderHeight = 0;
   
  -    /** Minimum ontent height of cell. */
  +    /** Minimum content height of cell. */
       protected int minCellHeight = 0;
  +
       /** Height of cell */
       protected int height = 0;
  +
       /** Ypos of cell ??? */
       protected int top;
  +
  +    /** corresponds to display-align property */
       protected int verticalAlign;
  +
  +    /** is this cell relatively aligned? */
       protected boolean bRelativeAlign = false;
   
       // boolean setup = false;
  @@ -138,16 +147,25 @@
        */
       private int borderSeparation = 0;
   
  +    /**
  +     * @param parent FONode that is the parent of this object
  +     */
       public TableCell(FONode parent) {
           super(parent);
       }
   
  +    /**
  +     * Overriden from FObj.
  +     * @param attlist Collection of attributes passed to us from the parser.
  +     * @throws FOPException for FO errors
  +     */
       public void handleAttrs(Attributes attlist) throws FOPException {
           super.handleAttrs(attlist);
           doSetup();    // init some basic property values
       }
   
       /**
  +     * @param list the list to which the layout manager(s) should be added
        */
       public void addLayoutManager(List list) {
           Cell clm = new Cell();
  @@ -163,25 +181,38 @@
           startOffset = offset;
       }
   
  -    // Initially same as the column width containg this cell or the
  -    // sum of the spanned columns if numColumnsSpanned > 1
  +    /**
  +     * Sets the width of the cell. Initially this width is the same as the
  +     * width of the column containing this cell, or the sum of the spanned
  +     * columns if numColumnsSpanned > 1
  +     * @param width the width of the cell (in millipoints ??)
  +     */
       public void setWidth(int width) {
           this.width = width;
       }
   
  +    /**
  +     * @return number of the column containing this cell
  +     */
       public int getColumnNumber() {
           return iColNumber;
       }
   
  +    /**
  +     * @return the number of columns spanned by this cell
  +     */
       public int getNumColumnsSpanned() {
           return numColumnsSpanned;
       }
   
  +    /**
  +     * @return the number of rows spanned by this cell
  +     */
       public int getNumRowsSpanned() {
           return numRowsSpanned;
       }
   
  -    public void doSetup() {
  +    private void doSetup() {
           // Common Accessibility Properties
           AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
   
  @@ -350,6 +381,10 @@
           }
       }
   
  +    /**
  +     *
  +     * @return true (TableCell can contain Markers)
  +     */
       protected boolean containsMarkers() {
           return true;
       }
  
  
  
  1.2       +33 -13    xml-fop/src/java/org/apache/fop/fo/flow/TableColumn.java
  
  Index: TableColumn.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/flow/TableColumn.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TableColumn.java  11 Mar 2003 13:05:16 -0000      1.1
  +++ TableColumn.java  13 Jul 2003 20:52:05 -0000      1.2
  @@ -3,34 +3,34 @@
    * ============================================================================
    *                    The Apache Software License, Version 1.1
    * ============================================================================
  - * 
  + *
    * Copyright (C) 1999-2003 The Apache Software Foundation. All rights reserved.
  - * 
  + *
    * Redistribution and use in source and binary forms, with or without modifica-
    * tion, are permitted provided that the following conditions are met:
  - * 
  + *
    * 1. Redistributions of source code must retain the above copyright notice,
    *    this list of conditions and the following disclaimer.
  - * 
  + *
    * 2. Redistributions in binary form must reproduce the above copyright notice,
    *    this list of conditions and the following disclaimer in the documentation
    *    and/or other materials provided with the distribution.
  - * 
  + *
    * 3. The end-user documentation included with the redistribution, if any, must
    *    include the following acknowledgment: "This product includes software
    *    developed by the Apache Software Foundation (http://www.apache.org/)."
    *    Alternately, this acknowledgment may appear in the software itself, if
    *    and wherever such third-party acknowledgments normally appear.
  - * 
  + *
    * 4. The names "FOP" and "Apache Software Foundation" must not be used to
    *    endorse or promote products derived from this software without prior
    *    written permission. For written permission, please contact
    *    [EMAIL PROTECTED]
  - * 
  + *
    * 5. Products derived from this software may not be called "Apache", nor may
    *    "Apache" appear in their name, without prior written permission of the
    *    Apache Software Foundation.
  - * 
  + *
    * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
    * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
    * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
  @@ -42,12 +42,12 @@
    * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
    * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    * ============================================================================
  - * 
  + *
    * This software consists of voluntary contributions made by many individuals
    * on behalf of the Apache Software Foundation and was originally created by
    * James Tauber <[EMAIL PROTECTED]>. For more information on the Apache
    * Software Foundation, please see <http://www.apache.org/>.
  - */ 
  + */
   package org.apache.fop.fo.flow;
   
   // FOP
  @@ -62,6 +62,10 @@
   import org.apache.fop.layoutmgr.LayoutManager;
   import org.apache.fop.layoutmgr.table.Column;
   
  +/**
  + * Class modelling the fo:table-column object. See Sec. 6.7.4 of the XSL-FO
  + * Standard.
  + */
   public class TableColumn extends FObj {
   
       private ColorType backgroundColor;
  @@ -74,6 +78,9 @@
   
       private boolean setup = false;
   
  +    /**
  +     * @param parent FONode that is the parent of this object
  +     */
       public TableColumn(FONode parent) {
           super(parent);
       }
  @@ -86,31 +93,44 @@
           return clm;
       }
   
  +    /**
  +     * @return Length object containing column width
  +     */
       public Length getColumnWidthAsLength() {
           return columnWidthPropVal;
       }
   
  +    /**
  +     * @return the column width (in millipoints ??)
  +     */
       public int getColumnWidth() {
           return columnWidth;
       }
   
       /**
  -     * Set the column width value in base units which overrides the
  -     * value from the column-width Property.
  +     * Set the column width value, overriding the value from the column-width
  +     * Property.
  +     * @param columnWidth the column width value in base units (millipoints ??)
        */
       public void setColumnWidth(int columnWidth) {
           this.columnWidth = columnWidth;
       }
   
  +    /**
  +     * @return column number
  +     */
       public int getColumnNumber() {
           return iColumnNumber;
       }
   
  +    /**
  +     * @return value for number of columns repeated
  +     */
       public int getNumColumnsRepeated() {
           return numColumnsRepeated;
       }
   
  -    public void doSetup() {
  +    private void doSetup() {
   
           // Common Border, Padding, and Background Properties
           // only background apply, border apply if border-collapse
  
  
  
  1.2       +17 -10    xml-fop/src/java/org/apache/fop/fo/flow/TableFooter.java
  
  Index: TableFooter.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/flow/TableFooter.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TableFooter.java  11 Mar 2003 13:05:16 -0000      1.1
  +++ TableFooter.java  13 Jul 2003 20:52:05 -0000      1.2
  @@ -3,34 +3,34 @@
    * ============================================================================
    *                    The Apache Software License, Version 1.1
    * ============================================================================
  - * 
  + *
    * Copyright (C) 1999-2003 The Apache Software Foundation. All rights reserved.
  - * 
  + *
    * Redistribution and use in source and binary forms, with or without modifica-
    * tion, are permitted provided that the following conditions are met:
  - * 
  + *
    * 1. Redistributions of source code must retain the above copyright notice,
    *    this list of conditions and the following disclaimer.
  - * 
  + *
    * 2. Redistributions in binary form must reproduce the above copyright notice,
    *    this list of conditions and the following disclaimer in the documentation
    *    and/or other materials provided with the distribution.
  - * 
  + *
    * 3. The end-user documentation included with the redistribution, if any, must
    *    include the following acknowledgment: "This product includes software
    *    developed by the Apache Software Foundation (http://www.apache.org/)."
    *    Alternately, this acknowledgment may appear in the software itself, if
    *    and wherever such third-party acknowledgments normally appear.
  - * 
  + *
    * 4. The names "FOP" and "Apache Software Foundation" must not be used to
    *    endorse or promote products derived from this software without prior
    *    written permission. For written permission, please contact
    *    [EMAIL PROTECTED]
  - * 
  + *
    * 5. Products derived from this software may not be called "Apache", nor may
    *    "Apache" appear in their name, without prior written permission of the
    *    Apache Software Foundation.
  - * 
  + *
    * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
    * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
    * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
  @@ -42,19 +42,26 @@
    * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
    * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    * ============================================================================
  - * 
  + *
    * This software consists of voluntary contributions made by many individuals
    * on behalf of the Apache Software Foundation and was originally created by
    * James Tauber <[EMAIL PROTECTED]>. For more information on the Apache
    * Software Foundation, please see <http://www.apache.org/>.
  - */ 
  + */
   package org.apache.fop.fo.flow;
   
   // FOP
   import org.apache.fop.fo.FONode;
   
  +/**
  + * Class modelling the fo:table-footer object. See Sec. 6.7.7 of the XSL-FO
  + * Standard.
  + */
   public class TableFooter extends TableBody {
   
  +    /**
  +     * @param parent FONode that is the parent of this object
  +     */
       public TableFooter(FONode parent) {
           super(parent);
       }
  
  
  
  1.2       +17 -10    xml-fop/src/java/org/apache/fop/fo/flow/TableHeader.java
  
  Index: TableHeader.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/flow/TableHeader.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TableHeader.java  11 Mar 2003 13:05:16 -0000      1.1
  +++ TableHeader.java  13 Jul 2003 20:52:05 -0000      1.2
  @@ -3,34 +3,34 @@
    * ============================================================================
    *                    The Apache Software License, Version 1.1
    * ============================================================================
  - * 
  + *
    * Copyright (C) 1999-2003 The Apache Software Foundation. All rights reserved.
  - * 
  + *
    * Redistribution and use in source and binary forms, with or without modifica-
    * tion, are permitted provided that the following conditions are met:
  - * 
  + *
    * 1. Redistributions of source code must retain the above copyright notice,
    *    this list of conditions and the following disclaimer.
  - * 
  + *
    * 2. Redistributions in binary form must reproduce the above copyright notice,
    *    this list of conditions and the following disclaimer in the documentation
    *    and/or other materials provided with the distribution.
  - * 
  + *
    * 3. The end-user documentation included with the redistribution, if any, must
    *    include the following acknowledgment: "This product includes software
    *    developed by the Apache Software Foundation (http://www.apache.org/)."
    *    Alternately, this acknowledgment may appear in the software itself, if
    *    and wherever such third-party acknowledgments normally appear.
  - * 
  + *
    * 4. The names "FOP" and "Apache Software Foundation" must not be used to
    *    endorse or promote products derived from this software without prior
    *    written permission. For written permission, please contact
    *    [EMAIL PROTECTED]
  - * 
  + *
    * 5. Products derived from this software may not be called "Apache", nor may
    *    "Apache" appear in their name, without prior written permission of the
    *    Apache Software Foundation.
  - * 
  + *
    * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
    * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
    * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
  @@ -42,19 +42,26 @@
    * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
    * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    * ============================================================================
  - * 
  + *
    * This software consists of voluntary contributions made by many individuals
    * on behalf of the Apache Software Foundation and was originally created by
    * James Tauber <[EMAIL PROTECTED]>. For more information on the Apache
    * Software Foundation, please see <http://www.apache.org/>.
  - */ 
  + */
   package org.apache.fop.fo.flow;
   
   // FOP
   import org.apache.fop.fo.FONode;
   
  +/**
  + * Class modelling the fo:table-header object. See Sec. 6.7.6 of the XSL-FO
  + * Standard.
  + */
   public class TableHeader extends TableBody {
   
  +    /**
  +     * @param parent FONode that is the parent of this object
  +     */
       public TableHeader(FONode parent) {
           super(parent);
       }
  
  
  
  1.2       +22 -11    xml-fop/src/java/org/apache/fop/fo/flow/TableRow.java
  
  Index: TableRow.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/flow/TableRow.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TableRow.java     11 Mar 2003 13:05:16 -0000      1.1
  +++ TableRow.java     13 Jul 2003 20:52:05 -0000      1.2
  @@ -3,34 +3,34 @@
    * ============================================================================
    *                    The Apache Software License, Version 1.1
    * ============================================================================
  - * 
  + *
    * Copyright (C) 1999-2003 The Apache Software Foundation. All rights reserved.
  - * 
  + *
    * Redistribution and use in source and binary forms, with or without modifica-
    * tion, are permitted provided that the following conditions are met:
  - * 
  + *
    * 1. Redistributions of source code must retain the above copyright notice,
    *    this list of conditions and the following disclaimer.
  - * 
  + *
    * 2. Redistributions in binary form must reproduce the above copyright notice,
    *    this list of conditions and the following disclaimer in the documentation
    *    and/or other materials provided with the distribution.
  - * 
  + *
    * 3. The end-user documentation included with the redistribution, if any, must
    *    include the following acknowledgment: "This product includes software
    *    developed by the Apache Software Foundation (http://www.apache.org/)."
    *    Alternately, this acknowledgment may appear in the software itself, if
    *    and wherever such third-party acknowledgments normally appear.
  - * 
  + *
    * 4. The names "FOP" and "Apache Software Foundation" must not be used to
    *    endorse or promote products derived from this software without prior
    *    written permission. For written permission, please contact
    *    [EMAIL PROTECTED]
  - * 
  + *
    * 5. Products derived from this software may not be called "Apache", nor may
    *    "Apache" appear in their name, without prior written permission of the
    *    Apache Software Foundation.
  - * 
  + *
    * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
    * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
    * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
  @@ -42,12 +42,12 @@
    * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
    * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    * ============================================================================
  - * 
  + *
    * This software consists of voluntary contributions made by many individuals
    * on behalf of the Apache Software Foundation and was originally created by
    * James Tauber <[EMAIL PROTECTED]>. For more information on the Apache
    * Software Foundation, please see <http://www.apache.org/>.
  - */ 
  + */
   package org.apache.fop.fo.flow;
   
   // Java
  @@ -68,6 +68,10 @@
   import org.apache.fop.layout.RelativePositionProps;
   import org.apache.fop.layoutmgr.table.Row;
   
  +/**
  + * Class modelling the fo:table-row object. See Sec. 6.7.9 of the XSL-FO
  + * Standard.
  + */
   public class TableRow extends FObj {
   
       private boolean setup = false;
  @@ -81,11 +85,15 @@
   
       private int minHeight = 0;    // force row height
   
  +    /**
  +     * @param parent FONode that is the parent of this object
  +     */
       public TableRow(FONode parent) {
           super(parent);
       }
   
       /**
  +     * @param list the list to which the layout manager(s) should be added
        */
       public void addLayoutManager(List list) {
           Row rlm = new Row();
  @@ -94,11 +102,14 @@
           list.add(rlm);
       }
   
  +    /**
  +     * @return keepWithPrevious
  +     */
       public KeepValue getKeepWithPrevious() {
           return keepWithPrevious;
       }
   
  -    public void doSetup() {
  +    private void doSetup() {
   
           // Common Accessibility Properties
           AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
  
  
  
  1.2       +16 -10    xml-fop/src/java/org/apache/fop/fo/flow/Wrapper.java
  
  Index: Wrapper.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/flow/Wrapper.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Wrapper.java      11 Mar 2003 13:05:16 -0000      1.1
  +++ Wrapper.java      13 Jul 2003 20:52:05 -0000      1.2
  @@ -3,34 +3,34 @@
    * ============================================================================
    *                    The Apache Software License, Version 1.1
    * ============================================================================
  - * 
  + *
    * Copyright (C) 1999-2003 The Apache Software Foundation. All rights reserved.
  - * 
  + *
    * Redistribution and use in source and binary forms, with or without modifica-
    * tion, are permitted provided that the following conditions are met:
  - * 
  + *
    * 1. Redistributions of source code must retain the above copyright notice,
    *    this list of conditions and the following disclaimer.
  - * 
  + *
    * 2. Redistributions in binary form must reproduce the above copyright notice,
    *    this list of conditions and the following disclaimer in the documentation
    *    and/or other materials provided with the distribution.
  - * 
  + *
    * 3. The end-user documentation included with the redistribution, if any, must
    *    include the following acknowledgment: "This product includes software
    *    developed by the Apache Software Foundation (http://www.apache.org/)."
    *    Alternately, this acknowledgment may appear in the software itself, if
    *    and wherever such third-party acknowledgments normally appear.
  - * 
  + *
    * 4. The names "FOP" and "Apache Software Foundation" must not be used to
    *    endorse or promote products derived from this software without prior
    *    written permission. For written permission, please contact
    *    [EMAIL PROTECTED]
  - * 
  + *
    * 5. Products derived from this software may not be called "Apache", nor may
    *    "Apache" appear in their name, without prior written permission of the
    *    Apache Software Foundation.
  - * 
  + *
    * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
    * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
    * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
  @@ -42,12 +42,12 @@
    * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
    * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    * ============================================================================
  - * 
  + *
    * This software consists of voluntary contributions made by many individuals
    * on behalf of the Apache Software Foundation and was originally created by
    * James Tauber <[EMAIL PROTECTED]>. For more information on the Apache
    * Software Foundation, please see <http://www.apache.org/>.
  - */ 
  + */
   package org.apache.fop.fo.flow;
   
   // FOP
  @@ -64,10 +64,16 @@
    */
   public class Wrapper extends FObjMixed {
   
  +    /**
  +     * @param parent FONode that is the parent of this object
  +     */
       public Wrapper(FONode parent) {
           super(parent);
       }
   
  +    /**
  +     * @return true (Wrapper contains Markers)
  +     */
       protected boolean containsMarkers() {
           return true;
       }
  
  
  

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

Reply via email to