bckfnn      2004/09/07 06:14:44

  Modified:    src/java/org/apache/fop/fo/properties
                        PositionShorthandParser.java
  Log:
  Style: rmeoved tabs.
  Fixed copyright year.
  
  Revision  Changes    Path
  1.2       +27 -27    
xml-fop/src/java/org/apache/fop/fo/properties/PositionShorthandParser.java
  
  Index: PositionShorthandParser.java
  ===================================================================
  RCS file: 
/home/cvs/xml-fop/src/java/org/apache/fop/fo/properties/PositionShorthandParser.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- PositionShorthandParser.java      7 Sep 2004 12:38:13 -0000       1.1
  +++ PositionShorthandParser.java      7 Sep 2004 13:14:44 -0000       1.2
  @@ -1,5 +1,5 @@
   /*
  - * Copyright 1999-2004 The Apache Software Foundation.
  + * Copyright 2004 The Apache Software Foundation.
    * 
    * Licensed under the Apache License, Version 2.0 (the "License");
    * you may not use this file except in compliance with the License.
  @@ -30,30 +30,30 @@
               Property property,
               PropertyMaker maker,
               PropertyList propertyList) {
  -             int propVal = property.getEnum();
  -     if (propId == Constants.PR_ABSOLUTE_POSITION) {
  -             switch (propVal) {
  -                     case Constants.STATIC:
  -                     case Constants.RELATIVE:
  -                             return new EnumProperty(Constants.AUTO, "AUTO");
  -                     case Constants.ABSOLUTE:
  -                             return new EnumProperty(Constants.ABSOLUTE, 
"ABSOLUTE");
  -                     case Constants.FIXED:
  -                             return new EnumProperty(Constants.FIXED, "FIXED");
  -             }
  -     }
  -     if (propId == Constants.PR_RELATIVE_POSITION) {
  -             switch (propVal) {
  -                     case Constants.STATIC:
  -                             return new EnumProperty(Constants.STATIC, "STATIC");
  -                     case Constants.RELATIVE:
  -                             return new EnumProperty(Constants.RELATIVE, 
"RELATIVE");
  -                     case Constants.ABSOLUTE:
  -                             return new EnumProperty(Constants.STATIC, "STATIC");
  -                     case Constants.FIXED:
  -                             return new EnumProperty(Constants.STATIC, "STATIC");
  -             }
  -     }
  -     return null;
  +        int propVal = property.getEnum();
  +        if (propId == Constants.PR_ABSOLUTE_POSITION) {
  +            switch (propVal) {
  +            case Constants.STATIC:
  +            case Constants.RELATIVE:
  +                return new EnumProperty(Constants.AUTO, "AUTO");
  +            case Constants.ABSOLUTE:
  +                return new EnumProperty(Constants.ABSOLUTE, "ABSOLUTE");
  +            case Constants.FIXED:
  +                return new EnumProperty(Constants.FIXED, "FIXED");
  +            }
  +        }
  +        if (propId == Constants.PR_RELATIVE_POSITION) {
  +            switch (propVal) {
  +            case Constants.STATIC:
  +                return new EnumProperty(Constants.STATIC, "STATIC");
  +            case Constants.RELATIVE:
  +                return new EnumProperty(Constants.RELATIVE, "RELATIVE");
  +            case Constants.ABSOLUTE:
  +                return new EnumProperty(Constants.STATIC, "STATIC");
  +            case Constants.FIXED:
  +                return new EnumProperty(Constants.STATIC, "STATIC");
  +            }
  +        }
  +        return null;
       }
   }
  
  
  

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

Reply via email to