From: Joerg Pietschmann Date: Mon, 3 Feb 2003 23:43:26 +0000 (+0000) Subject: Fixed leader expansion and leader alignment to reference area to some X-Git-Tag: fop-0_20_5rc2~29 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b65e7b4fc05c7df09bb648110af7606607d46cc3;p=xmlgraphics-fop.git Fixed leader expansion and leader alignment to reference area to some extent. Deleted superfluous text decoration data and assiciated (incomplete) methods from WordArea. PR: 7490, 15936 git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/fop-0_20_2-maintain@195926 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index a05198f0c..2512d8696 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,7 @@ ============================================================================== Done since 0.20.4 release +- Fixed leader expansion and leader alignment to reference area to some + extent(#7490 and #15936). - Temporary fix for wrong mapping of the hyphen character in the PostScript renderer. Needs to be done in a clean way later. Submitted by: Arnd Beissner diff --git a/src/org/apache/fop/layout/LineArea.java b/src/org/apache/fop/layout/LineArea.java index 160080be8..80623d195 100644 --- a/src/org/apache/fop/layout/LineArea.java +++ b/src/org/apache/fop/layout/LineArea.java @@ -184,7 +184,6 @@ public class LineArea extends Area { // appending indent space leader-alignment setting // InlineSpace to false, so it is not used in line // justification - System.out.println("align, space="+spaceBeforeLeader); if (spaceBeforeLeader > 0) { children.add(idx, new InlineSpace(spaceBeforeLeader, false)); @@ -219,7 +218,6 @@ public class LineArea extends Area { // appending indent space leader-alignment setting // InlineSpace to false, so it is not used in line // justification - System.out.println("align, space="+spaceBeforeLeader); if (spaceBeforeLeader > 0) { children.add(idx, new InlineSpace(spaceBeforeLeader, false)); @@ -742,12 +740,6 @@ public class LineArea extends Area { int leaderLengthOptimum, int leaderLengthMaximum, int ruleStyle, int ruleThickness, int leaderPatternWidth, int leaderAlignment) { - System.out.println( - "min="+leaderLengthMinimum+ - " opt="+leaderLengthOptimum+ - " max="+leaderLengthMaximum+ - " th="+ruleThickness+ - " al="+leaderAlignment); if (leaderLengthMinimum>leaderLengthOptimum || leaderLengthOptimum>leaderLengthMaximum) { MessageHandler.errorln("leader sizes wrong"); @@ -892,8 +884,10 @@ public class LineArea extends Area { } } } + break; default: MessageHandler.errorln("bad align: "+type); + break; } } diff --git a/src/org/apache/fop/layout/inline/WordArea.java b/src/org/apache/fop/layout/inline/WordArea.java index 18e8175f5..88f20faee 100644 --- a/src/org/apache/fop/layout/inline/WordArea.java +++ b/src/org/apache/fop/layout/inline/WordArea.java @@ -14,12 +14,6 @@ public class WordArea extends InlineArea { private String text; - // Textdecoration - protected boolean underlined = false; - protected boolean overlined = false; - protected boolean lineThrough = false; - - public WordArea(FontState fontState, float red, float green, float blue, String text, int width) { super(fontState, width, red, green, blue); @@ -35,12 +29,4 @@ public class WordArea extends InlineArea { return this.text; } - public void setUnderlined(boolean ul) { - this.underlined = ul; - } - - public boolean getUnderlined() { - return this.underlined; - } - }