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 pb...@apache.org on 2004/04/30 02:38:33 UTC

cvs commit: xml-fop/src/java/org/apache/fop/fo/properties PaddingLeft.java PaddingTop.java PaddingBottom.java PaddingRight.java

pbwest      2004/04/29 17:38:33

  Modified:    src/java/org/apache/fop/fo/properties Tag:
                        FOP_0-20-0_Alt-Design PaddingLeft.java
                        PaddingTop.java PaddingBottom.java
                        PaddingRight.java
  Log:
  Changes for padding corresponding absolute properties
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.1.2.4   +9 -2      xml-fop/src/java/org/apache/fop/fo/properties/Attic/PaddingLeft.java
  
  Index: PaddingLeft.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/properties/Attic/PaddingLeft.java,v
  retrieving revision 1.1.2.3
  retrieving revision 1.1.2.4
  diff -u -r1.1.2.3 -r1.1.2.4
  --- PaddingLeft.java	19 Feb 2004 03:11:40 -0000	1.1.2.3
  +++ PaddingLeft.java	30 Apr 2004 00:38:32 -0000	1.1.2.4
  @@ -22,10 +22,11 @@
   
   import org.apache.fop.datatypes.Length;
   import org.apache.fop.datatypes.PropertyValue;
  +import org.apache.fop.fo.FONode;
   import org.apache.fop.fo.PropNames;
   import org.apache.fop.fo.expr.PropertyException;
   
  -public class PaddingLeft extends Property  {
  +public class PaddingLeft extends PaddingCorrespondingAbsolute  {
       public static final int dataTypes = PERCENTAGE | LENGTH | INHERIT;
   
       public int getDataTypes() {
  @@ -53,6 +54,12 @@
   
       public int getInherited() {
           return inherited;
  +    }
  +
  +    public int getCorrespondingProperty(FONode foNode)
  +    throws PropertyException {
  +        return getCorrespondingPaddingProperty(
  +                foNode, WritingMode.LEFT);
       }
   
   }
  
  
  
  1.1.2.4   +9 -2      xml-fop/src/java/org/apache/fop/fo/properties/Attic/PaddingTop.java
  
  Index: PaddingTop.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/properties/Attic/PaddingTop.java,v
  retrieving revision 1.1.2.3
  retrieving revision 1.1.2.4
  diff -u -r1.1.2.3 -r1.1.2.4
  --- PaddingTop.java	19 Feb 2004 03:11:40 -0000	1.1.2.3
  +++ PaddingTop.java	30 Apr 2004 00:38:32 -0000	1.1.2.4
  @@ -22,10 +22,11 @@
   
   import org.apache.fop.datatypes.Length;
   import org.apache.fop.datatypes.PropertyValue;
  +import org.apache.fop.fo.FONode;
   import org.apache.fop.fo.PropNames;
   import org.apache.fop.fo.expr.PropertyException;
   
  -public class PaddingTop extends Property  {
  +public class PaddingTop extends PaddingCorrespondingAbsolute  {
       public static final int dataTypes = PERCENTAGE | LENGTH | INHERIT;
   
       public int getDataTypes() {
  @@ -53,6 +54,12 @@
   
       public int getInherited() {
           return inherited;
  +    }
  +
  +    public int getCorrespondingProperty(FONode foNode)
  +    throws PropertyException {
  +        return getCorrespondingPaddingProperty(
  +                foNode, WritingMode.TOP);
       }
   
   }
  
  
  
  1.1.2.4   +9 -2      xml-fop/src/java/org/apache/fop/fo/properties/Attic/PaddingBottom.java
  
  Index: PaddingBottom.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/properties/Attic/PaddingBottom.java,v
  retrieving revision 1.1.2.3
  retrieving revision 1.1.2.4
  diff -u -r1.1.2.3 -r1.1.2.4
  --- PaddingBottom.java	19 Feb 2004 03:11:39 -0000	1.1.2.3
  +++ PaddingBottom.java	30 Apr 2004 00:38:32 -0000	1.1.2.4
  @@ -22,10 +22,11 @@
   
   import org.apache.fop.datatypes.Length;
   import org.apache.fop.datatypes.PropertyValue;
  +import org.apache.fop.fo.FONode;
   import org.apache.fop.fo.PropNames;
   import org.apache.fop.fo.expr.PropertyException;
   
  -public class PaddingBottom extends Property  {
  +public class PaddingBottom extends PaddingCorrespondingAbsolute  {
       public static final int dataTypes = PERCENTAGE | LENGTH | INHERIT;
   
       public int getDataTypes() {
  @@ -54,6 +55,12 @@
   
       public int getInherited() {
           return inherited;
  +    }
  +
  +    public int getCorrespondingProperty(FONode foNode)
  +    throws PropertyException {
  +        return getCorrespondingPaddingProperty(
  +                foNode, WritingMode.BOTTOM);
       }
   
   }
  
  
  
  1.1.2.4   +9 -2      xml-fop/src/java/org/apache/fop/fo/properties/Attic/PaddingRight.java
  
  Index: PaddingRight.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/properties/Attic/PaddingRight.java,v
  retrieving revision 1.1.2.3
  retrieving revision 1.1.2.4
  diff -u -r1.1.2.3 -r1.1.2.4
  --- PaddingRight.java	19 Feb 2004 03:11:39 -0000	1.1.2.3
  +++ PaddingRight.java	30 Apr 2004 00:38:32 -0000	1.1.2.4
  @@ -22,10 +22,11 @@
   
   import org.apache.fop.datatypes.Length;
   import org.apache.fop.datatypes.PropertyValue;
  +import org.apache.fop.fo.FONode;
   import org.apache.fop.fo.PropNames;
   import org.apache.fop.fo.expr.PropertyException;
   
  -public class PaddingRight extends Property  {
  +public class PaddingRight extends PaddingCorrespondingAbsolute  {
       public static final int dataTypes = PERCENTAGE | LENGTH | INHERIT;
   
       public int getDataTypes() {
  @@ -53,6 +54,12 @@
   
       public int getInherited() {
           return inherited;
  +    }
  +
  +    public int getCorrespondingProperty(FONode foNode)
  +    throws PropertyException {
  +        return getCorrespondingPaddingProperty(
  +                foNode, WritingMode.RIGHT);
       }
   
   }
  
  
  

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