Преглед изворни кода

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 година
родитељ
комит
8801ac9140
1 измењених фајлова са 40 додато и 0 уклоњено
  1. 40
    0
      src/org/apache/fop/fo/FONode.java

+ 40
- 0
src/org/apache/fop/fo/FONode.java Прегледај датотеку



public void setIsInLabel() { public void setIsInLabel() {
this.isInLabel = true; 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() { public void setIsInListBody() {
this.isInListBody = true; 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() { public void setIsInTableCell() {
this.isInTableCell = true; 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) { public void setDistanceBetweenStarts(int distance) {
this.distanceBetweenStarts = 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) { public void setLabelSeparation(int separation) {
this.labelSeparation = 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) { public void setBodyIndent(int indent) {
this.bodyIndent = 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) { public void forceStartOffset(int offset) {
this.forcedStartOffset = 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) { public void forceWidth(int width) {
this.forcedWidth = 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() { public void resetMarker() {

Loading…
Откажи
Сачувај