]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Style: rmeoved tabs.
authorFinn Bock <bckfnn@apache.org>
Tue, 7 Sep 2004 13:14:44 +0000 (13:14 +0000)
committerFinn Bock <bckfnn@apache.org>
Tue, 7 Sep 2004 13:14:44 +0000 (13:14 +0000)
Fixed copyright year.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197928 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/fo/properties/PositionShorthandParser.java

index bfed8d1bfe802f063c13a2fdb54ff0b88209e0e6..bc7f469998fba0420a10bf8c26e5ceb5521380c0 100755 (executable)
@@ -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 @@ public class PositionShorthandParser implements ShorthandParser {
             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;
     }
 }