Browse Source

made FONode set/force methods recursive as part of Eric Schaeffers fix for lists within tables


git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193263 13f79535-47bb-0310-9956-ffa450edef68
tags/pre-columns
jtauber 24 years ago
parent
commit
8801ac9140
1 changed files with 40 additions and 0 deletions
  1. 40
    0
      src/org/apache/fop/fo/FONode.java

+ 40
- 0
src/org/apache/fop/fo/FONode.java View File

@@ -99,34 +99,74 @@ abstract public class FONode {

public void setIsInLabel() {
this.isInLabel = true;
// made recursive by Eric Schaeffer
for (int i = 0; i < this.children.size(); i++ ) {
FONode child = (FONode) this.children.elementAt(i);
child.setIsInLabel();
}
}

public void setIsInListBody() {
this.isInListBody = true;
// made recursive by Eric Schaeffer
for (int i = 0; i < this.children.size(); i++) {
FONode child = (FONode) this.children.elementAt(i);
child.setIsInListBody();
}
}

public void setIsInTableCell() {
this.isInTableCell = true;
// made recursive by Eric Schaeffer
for (int i = 0; i < this.children.size(); i++) {
FONode child = (FONode) this.children.elementAt(i);
child.setIsInTableCell();
}
}

public void setDistanceBetweenStarts(int distance) {
this.distanceBetweenStarts = distance;
// made recursive by Eric Schaeffer
for (int i = 0; i < this.children.size(); i++) {
FONode child = (FONode) this.children.elementAt(i);
child.setDistanceBetweenStarts(distance);
}
}

public void setLabelSeparation(int separation) {
this.labelSeparation = separation;
// made recursive by Eric Schaeffer
for (int i = 0; i < this.children.size(); i++) {
FONode child = (FONode) this.children.elementAt(i);
child.setLabelSeparation(separation);
}
}

public void setBodyIndent(int indent) {
this.bodyIndent = indent;
// made recursive by Eric Schaeffer
for (int i = 0; i < this.children.size(); i++) {
FONode child = (FONode) this.children.elementAt(i);
child.setBodyIndent(indent);
}
}

public void forceStartOffset(int offset) {
this.forcedStartOffset = offset;
// made recursive by Eric Schaeffer
for (int i = 0; i < this.children.size(); i++) {
FONode child = (FONode) this.children.elementAt(i);
child.forceStartOffset(offset);
}
}

public void forceWidth(int width) {
this.forcedWidth = width;
// made recursive by Eric Schaeffer
for (int i = 0; i < this.children.size(); i++) {
FONode child = (FONode) this.children.elementAt(i);
child.forceWidth(width);
}
}

public void resetMarker() {

Loading…
Cancel
Save