From: Finn Bock Date: Tue, 7 Sep 2004 13:14:44 +0000 (+0000) Subject: Style: rmeoved tabs. X-Git-Tag: Root_Temp_KnuthStylePageBreaking~563 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f7be6b1dc86c89260923f7e3e94e714664104568;p=xmlgraphics-fop.git Style: rmeoved tabs. Fixed copyright year. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197928 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/fo/properties/PositionShorthandParser.java b/src/java/org/apache/fop/fo/properties/PositionShorthandParser.java index bfed8d1bf..bc7f46999 100755 --- a/src/java/org/apache/fop/fo/properties/PositionShorthandParser.java +++ b/src/java/org/apache/fop/fo/properties/PositionShorthandParser.java @@ -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; } }