aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/render
diff options
context:
space:
mode:
authorGlen Mazza <gmazza@apache.org>2004-01-05 00:44:59 +0000
committerGlen Mazza <gmazza@apache.org>2004-01-05 00:44:59 +0000
commit9715ae547a6da42aaf42ccbdd9a4cf2917c6e7ba (patch)
tree6dc1678774af339808ff2a063d19aaa242714072 /src/java/org/apache/fop/render
parent95c5f3efa2579ad4286fa624a60dde622677545c (diff)
downloadxmlgraphics-fop-9715ae547a6da42aaf42ccbdd9a4cf2917c6e7ba.tar.gz
xmlgraphics-fop-9715ae547a6da42aaf42ccbdd9a4cf2917c6e7ba.zip
More String-->int conversions. Work primarily from Finn Bock's patch.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197114 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/render')
-rw-r--r--src/java/org/apache/fop/render/rtf/TableAttributesConverter.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/java/org/apache/fop/render/rtf/TableAttributesConverter.java b/src/java/org/apache/fop/render/rtf/TableAttributesConverter.java
index 9aa1ae403..f790e1d9a 100644
--- a/src/java/org/apache/fop/render/rtf/TableAttributesConverter.java
+++ b/src/java/org/apache/fop/render/rtf/TableAttributesConverter.java
@@ -156,7 +156,7 @@ public class TableAttributesConverter {
boolean isBorderPresent = false;
// Cell background color
- if ((p = props.getNearestSpecified("background-color")) != null) {
+ if ((p = props.getNearestSpecified(Constants.PR_BACKGROUND_COLOR)) != null) {
ColorType color = p.getColorType();
if (color != null) {
if (color.getAlpha() != 0
@@ -174,8 +174,8 @@ public class TableAttributesConverter {
}
// Cell borders :
- if ((p = props.getExplicit("border-color")) != null) {
- ListProperty listprop = (ListProperty)p;
+ if ((p = props.getExplicit(Constants.PR_BORDER_COLOR)) != null) {
+ ListProperty listprop = (ListProperty) p;
ColorType color = null;
if (listprop.getList().get(0) instanceof NCnameProperty) {
color = new ColorType(((NCnameProperty)listprop.getList().get(0)).getNCname());
@@ -188,28 +188,28 @@ public class TableAttributesConverter {
colorTable.getColorNumber((int)color.getRed(), (int)color.getGreen(),
(int)color.getBlue()).intValue());
}
- if ((p = props.getExplicit("border-top-color")) != null) {
+ if ((p = props.getExplicit(Constants.PR_BORDER_TOP_COLOR)) != null) {
ColorType color = p.getColorType();
attrib.set(
BorderAttributesConverter.BORDER_COLOR,
colorTable.getColorNumber((int)color.getRed(), (int)color.getGreen(),
(int)color.getBlue()).intValue());
}
- if ((p = props.getExplicit("border-bottom-color")) != null) {
+ if ((p = props.getExplicit(Constants.PR_BORDER_BOTTOM_COLOR)) != null) {
ColorType color = p.getColorType();
attrib.set(
BorderAttributesConverter.BORDER_COLOR,
colorTable.getColorNumber((int)color.getRed(), (int)color.getGreen(),
(int)color.getBlue()).intValue());
}
- if ((p = props.getExplicit("border-left-color")) != null) {
+ if ((p = props.getExplicit(Constants.PR_BORDER_LEFT_COLOR)) != null) {
ColorType color = p.getColorType();
attrib.set(
BorderAttributesConverter.BORDER_COLOR,
colorTable.getColorNumber((int)color.getRed(), (int)color.getGreen(),
(int)color.getBlue()).intValue());
}
- if ((p = props.getExplicit("border-right-color")) != null) {
+ if ((p = props.getExplicit(Constants.PR_BORDER_RIGHT_COLOR)) != null) {
ColorType color = p.getColorType();
attrib.set(
BorderAttributesConverter.BORDER_COLOR,