diff options
Diffstat (limited to 'src/org/apache/fop/area')
-rw-r--r-- | src/org/apache/fop/area/LineArea.java | 14 | ||||
-rw-r--r-- | src/org/apache/fop/area/inline/Leader.java | 10 | ||||
-rw-r--r-- | src/org/apache/fop/area/inline/Stretch.java | 2 |
3 files changed, 14 insertions, 12 deletions
diff --git a/src/org/apache/fop/area/LineArea.java b/src/org/apache/fop/area/LineArea.java index fc7771da0..44c8e35d5 100644 --- a/src/org/apache/fop/area/LineArea.java +++ b/src/org/apache/fop/area/LineArea.java @@ -45,9 +45,9 @@ public class LineArea extends Area { } public void addChild(Area childArea) { - if (childArea instanceof InlineArea) { - addInlineArea((InlineArea)childArea); - } + if (childArea instanceof InlineArea) { + addInlineArea((InlineArea)childArea); + } } public void addInlineArea(InlineArea area) { @@ -57,5 +57,13 @@ public class LineArea extends Area { public List getInlineAreas() { return inlineAreas; } + + public void setStartIndent(int si) { + startIndent = si; + } + + public int getStartIndent() { + return startIndent; + } } diff --git a/src/org/apache/fop/area/inline/Leader.java b/src/org/apache/fop/area/inline/Leader.java index 2475cac80..0bc5415a5 100644 --- a/src/org/apache/fop/area/inline/Leader.java +++ b/src/org/apache/fop/area/inline/Leader.java @@ -8,6 +8,7 @@ package org.apache.fop.area.inline; import org.apache.fop.render.Renderer; +import org.apache.fop.fo.properties.RuleStyle; public class Leader extends Stretch { @@ -18,14 +19,7 @@ public class Leader extends Stretch { // if space replaced with a space // otherwise this is a holder for a line - public static final int DOTTED = 0; - public static final int DASHED = 1; - public static final int SOLID = 2; - public static final int DOUBLE = 3; - public static final int GROOVE = 4; - public static final int RIDGE = 5; - - int ruleStyle = SOLID; + int ruleStyle = RuleStyle.SOLID; int ruleThickness = 1000; public Leader() { diff --git a/src/org/apache/fop/area/inline/Stretch.java b/src/org/apache/fop/area/inline/Stretch.java index ed1ba2254..fd173e850 100644 --- a/src/org/apache/fop/area/inline/Stretch.java +++ b/src/org/apache/fop/area/inline/Stretch.java @@ -10,7 +10,7 @@ package org.apache.fop.area.inline; import org.apache.fop.area.MinOptMax; public class Stretch extends InlineArea { - MinOptMax contentIPD; + MinOptMax contentIPD = null; public void setAllocationIPD(MinOptMax mom) { contentIPD = mom; |