diff options
author | Glen Mazza <gmazza@apache.org> | 2003-12-29 23:28:47 +0000 |
---|---|---|
committer | Glen Mazza <gmazza@apache.org> | 2003-12-29 23:28:47 +0000 |
commit | b3157f195b82c379f72b7e203865a9505ed2ddce (patch) | |
tree | e723d0babd81913123455fa7514c1b14f55e066a /src/java/org/apache/fop/render/rtf/TableAttributesConverter.java | |
parent | 7818de28ec0bf0f1b36da617076227df89bdc3ea (diff) | |
download | xmlgraphics-fop-b3157f195b82c379f72b7e203865a9505ed2ddce.tar.gz xmlgraphics-fop-b3157f195b82c379f72b7e203865a9505ed2ddce.zip |
More String->int conversions, annoyingly incremental but I'm getting there...
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197076 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/render/rtf/TableAttributesConverter.java')
-rw-r--r-- | src/java/org/apache/fop/render/rtf/TableAttributesConverter.java | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/java/org/apache/fop/render/rtf/TableAttributesConverter.java b/src/java/org/apache/fop/render/rtf/TableAttributesConverter.java index 3eda1b35a..9aa1ae403 100644 --- a/src/java/org/apache/fop/render/rtf/TableAttributesConverter.java +++ b/src/java/org/apache/fop/render/rtf/TableAttributesConverter.java @@ -120,7 +120,7 @@ public class TableAttributesConverter { LengthProperty lengthProp = null; // margin-left - lengthProp = (LengthProperty)propertyList.get("margin-left"); + lengthProp = (LengthProperty)propertyList.get(Constants.PR_MARGIN_LEFT); if (lengthProp != null) { Float f = new Float(lengthProp.getLength().getValue() / 1000f); final String sValue = f.toString() + "pt"; @@ -218,7 +218,7 @@ public class TableAttributesConverter { } // Border styles do not inherit from parent - if ((p = props.get("border-style")) != null) { + if ((p = props.get(Constants.PR_BORDER_STYLE)) != null) { log.warn("border-style not implemented. Please use border-style-left, " + "...-right, ...-top or ...-bottom"); /* @@ -254,7 +254,7 @@ public class TableAttributesConverter { isBorderPresent = true; } - if ((p = props.get("border-width")) != null) { + if ((p = props.get(Constants.PR_BORDER_WIDTH)) != null) { ListProperty listprop = (ListProperty)p; LengthProperty lengthprop = (LengthProperty)listprop.getList().get(0); @@ -312,26 +312,26 @@ public class TableAttributesConverter { //need to set a default width //check for keep-together row attribute - if ((p = props.get("keep-together.within-page")) != null) { + if ((p = props.get(Constants.PR_KEEP_TOGETHER | Constants.CP_WITHIN_PAGE)) != null) { attrib.set(ITableAttributes.ROW_KEEP_TOGETHER); } - if ((p = props.get("keep-together")) != null) { + if ((p = props.get(Constants.PR_KEEP_TOGETHER)) != null) { attrib.set(ITableAttributes.ROW_KEEP_TOGETHER); } //Check for keep-with-next row attribute. - if ((p = props.get("keep-together")) != null) { + if ((p = props.get(Constants.PR_KEEP_WITH_NEXT)) != null) { attrib.set(ITableAttributes.ROW_KEEP_WITH_NEXT); } //Check for keep-with-previous row attribute. - if ((p = props.get("keep-with-previous")) != null) { + if ((p = props.get(Constants.PR_KEEP_WITH_PREVIOUS)) != null) { attrib.set(ITableAttributes.ROW_KEEP_WITH_PREVIOUS); } //Check for height row attribute. - if ((p = props.get("height")) != null) { + if ((p = props.get(Constants.PR_HEIGHT)) != null) { Float f = new Float(p.getLength().getValue() / 1000); attrValue = f.toString() + "pt"; attrib.set(ITableAttributes.ROW_HEIGHT, @@ -351,7 +351,7 @@ public class TableAttributesConverter { * it is implemented that the border type is the value of the border * place. */ - if ((p = props.get("border-style")) != null) { + if ((p = props.get(Constants.PR_BORDER_STYLE)) != null) { log.warn("border-style not implemented. Please use border-style-left, " + "...-right, ...-top or ...-bottom"); /* @@ -424,7 +424,7 @@ public class TableAttributesConverter { isBorderPresent = true; } - if ((p = props.get("border-width")) != null) { + if ((p = props.get(Constants.PR_BORDER_WIDTH)) != null) { ListProperty listprop = (ListProperty)p; LengthProperty lengthprop = (LengthProperty)listprop.getList().get(0); |