Browse Source

Renamed end() method to somewhat clearer endOfNode().


git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197842 13f79535-47bb-0310-9956-ffa450edef68
tags/Root_Temp_KnuthStylePageBreaking
Glen Mazza 20 years ago
parent
commit
dbefd55bda
27 changed files with 37 additions and 37 deletions
  1. 1
    1
      src/java/org/apache/fop/fo/FONode.java
  2. 1
    1
      src/java/org/apache/fop/fo/FOTreeBuilder.java
  3. 1
    1
      src/java/org/apache/fop/fo/extensions/Bookmarks.java
  4. 2
    2
      src/java/org/apache/fop/fo/flow/BasicLink.java
  5. 1
    1
      src/java/org/apache/fop/fo/flow/Block.java
  6. 2
    2
      src/java/org/apache/fop/fo/flow/Footnote.java
  7. 2
    2
      src/java/org/apache/fop/fo/flow/FootnoteBody.java
  8. 1
    1
      src/java/org/apache/fop/fo/flow/Inline.java
  9. 2
    2
      src/java/org/apache/fop/fo/flow/ListBlock.java
  10. 2
    2
      src/java/org/apache/fop/fo/flow/ListItem.java
  11. 2
    2
      src/java/org/apache/fop/fo/flow/ListItemLabel.java
  12. 1
    1
      src/java/org/apache/fop/fo/flow/PageNumber.java
  13. 1
    1
      src/java/org/apache/fop/fo/flow/Table.java
  14. 1
    1
      src/java/org/apache/fop/fo/flow/TableBody.java
  15. 1
    1
      src/java/org/apache/fop/fo/flow/TableCell.java
  16. 1
    1
      src/java/org/apache/fop/fo/flow/TableColumn.java
  17. 1
    1
      src/java/org/apache/fop/fo/flow/TableRow.java
  18. 1
    1
      src/java/org/apache/fop/fo/pagination/ColorProfile.java
  19. 1
    1
      src/java/org/apache/fop/fo/pagination/Declarations.java
  20. 1
    1
      src/java/org/apache/fop/fo/pagination/Flow.java
  21. 1
    1
      src/java/org/apache/fop/fo/pagination/LayoutMasterSet.java
  22. 2
    2
      src/java/org/apache/fop/fo/pagination/PageSequence.java
  23. 1
    1
      src/java/org/apache/fop/fo/pagination/PageSequenceMaster.java
  24. 3
    3
      src/java/org/apache/fop/fo/pagination/RegionBA.java
  25. 2
    2
      src/java/org/apache/fop/fo/pagination/RegionBASE.java
  26. 1
    1
      src/java/org/apache/fop/fo/pagination/RepeatablePageMasterAlternatives.java
  27. 1
    1
      src/java/org/apache/fop/fo/pagination/StaticContent.java

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

@@ -160,7 +160,7 @@ public abstract class FONode {
/**
*
*/
protected void end() {
protected void endOfNode() {
// do nothing by default
}


+ 1
- 1
src/java/org/apache/fop/fo/FOTreeBuilder.java View File

@@ -289,7 +289,7 @@ public class FOTreeBuilder extends DefaultHandler {
public void endElement(String uri, String localName, String rawName)
throws SAXException {
try {
currentFObj.end();
currentFObj.endOfNode();
} catch (IllegalArgumentException e) {
throw new SAXException(e);
}

+ 1
- 1
src/java/org/apache/fop/fo/extensions/Bookmarks.java View File

@@ -57,7 +57,7 @@ public class Bookmarks extends ExtensionObj {
* the bookmark data from the child elements and add
* the extension to the area tree.
*/
protected void end() {
protected void endOfNode() {
((Root) parent).setBookmarks(this);
}


+ 2
- 2
src/java/org/apache/fop/fo/flow/BasicLink.java View File

@@ -140,8 +140,8 @@ public class BasicLink extends Inline {
/**
* @see org.apache.fop.fo.FONode#end
*/
protected void end() {
super.end();
protected void endOfNode() {
super.endOfNode();
getFOInputHandler().endLink();
}

+ 1
- 1
src/java/org/apache/fop/fo/flow/Block.java View File

@@ -237,7 +237,7 @@ public class Block extends FObjMixed {
/**
* @see org.apache.fop.fo.FONode#end
*/
protected void end() {
protected void endOfNode() {
handleWhiteSpace();
getFOInputHandler().endBlock(this);
}

+ 2
- 2
src/java/org/apache/fop/fo/flow/Footnote.java View File

@@ -78,8 +78,8 @@ public class Footnote extends FObj {
fotv.serveFootnote(this);
}
protected void end() {
super.end();
protected void endOfNode() {
super.endOfNode();
getFOInputHandler().endFootnote(this);
}

+ 2
- 2
src/java/org/apache/fop/fo/flow/FootnoteBody.java View File

@@ -60,8 +60,8 @@ public class FootnoteBody extends FObj {
fotv.serveFootnoteBody(this);
}

protected void end() {
super.end();
protected void endOfNode() {
super.endOfNode();
getFOInputHandler().endFootnoteBody(this);
}

+ 1
- 1
src/java/org/apache/fop/fo/flow/Inline.java View File

@@ -138,7 +138,7 @@ public class Inline extends FObjMixed {
/**
* @see org.apache.fop.fo.FONode#end
*/
protected void end() {
protected void endOfNode() {
getFOInputHandler().endInline(this);
}


+ 2
- 2
src/java/org/apache/fop/fo/flow/ListBlock.java View File

@@ -136,8 +136,8 @@ public class ListBlock extends FObj {
fotv.serveListBlock(this);
}

protected void end() {
super.end();
protected void endOfNode() {
super.endOfNode();
getFOInputHandler().endList(this);
}

+ 2
- 2
src/java/org/apache/fop/fo/flow/ListItem.java View File

@@ -145,8 +145,8 @@ public class ListItem extends FObj {
fotv.serveListItem(this);
}

protected void end() {
super.end();
protected void endOfNode() {
super.endOfNode();
getFOInputHandler().endListItem(this);
}


+ 2
- 2
src/java/org/apache/fop/fo/flow/ListItemLabel.java View File

@@ -83,8 +83,8 @@ public class ListItemLabel extends FObj {
fotv.serveListItemLabel(this);
}

protected void end() {
super.end();
protected void endOfNode() {
super.endOfNode();
getFOInputHandler().endListLabel();
}

+ 1
- 1
src/java/org/apache/fop/fo/flow/PageNumber.java View File

@@ -128,7 +128,7 @@ public class PageNumber extends FObj {
fotv.servePageNumber(this);
}

protected void end() {
protected void endOfNode() {
getFOInputHandler().endPageNumber(this);
}

+ 1
- 1
src/java/org/apache/fop/fo/flow/Table.java View File

@@ -201,7 +201,7 @@ public class Table extends FObj {
fotv.serveTable(this);
}

protected void end() {
protected void endOfNode() {
getFOInputHandler().endTable(this);
}


+ 1
- 1
src/java/org/apache/fop/fo/flow/TableBody.java View File

@@ -104,7 +104,7 @@ public class TableBody extends FObj {
fotv.serveTableBody(this);
}

protected void end() {
protected void endOfNode() {
getFOInputHandler().endBody(this);
}


+ 1
- 1
src/java/org/apache/fop/fo/flow/TableCell.java View File

@@ -348,7 +348,7 @@ public class TableCell extends FObj {
fotv.serveTableCell(this);
}

protected void end() {
protected void endOfNode() {
getFOInputHandler().endCell(this);
}

+ 1
- 1
src/java/org/apache/fop/fo/flow/TableColumn.java View File

@@ -123,7 +123,7 @@ public class TableColumn extends FObj {
fotv.serveTableColumn(this);
}

protected void end() {
protected void endOfNode() {
getFOInputHandler().endColumn(this);
}

+ 1
- 1
src/java/org/apache/fop/fo/flow/TableRow.java View File

@@ -144,7 +144,7 @@ public class TableRow extends FObj {
fotv.serveTableRow(this);
}

protected void end() {
protected void endOfNode() {
getFOInputHandler().endRow(this);
}

+ 1
- 1
src/java/org/apache/fop/fo/pagination/ColorProfile.java View File

@@ -65,7 +65,7 @@ public class ColorProfile extends FObj {
* Extract instance variables from the collection of properties for this
* object.
*/
protected void end() {
protected void endOfNode() {
src = this.propertyList.get(PR_SRC).getString();
profileName = this.propertyList.get(PR_COLOR_PROFILE_NAME).getString();
intent = this.propertyList.get(PR_RENDERING_INTENT).getEnum();

+ 1
- 1
src/java/org/apache/fop/fo/pagination/Declarations.java View File

@@ -72,7 +72,7 @@ public class Declarations extends FObj {
* At the end of this element sort out the child into
* a hashmap of color profiles and a list of external xml.
*/
protected void end() {
protected void endOfNode() {
if (childNodes != null) {
for (Iterator iter = childNodes.iterator(); iter.hasNext();) {
FONode node = (FONode)iter.next();

+ 1
- 1
src/java/org/apache/fop/fo/pagination/Flow.java View File

@@ -90,7 +90,7 @@ public class Flow extends FObj {
* StructureRenderer that we are at the end of the flow.
* @see org.apache.fop.fo.FONode#end
*/
protected void end() {
protected void endOfNode() {
if (!blockItemFound) {
missingChildElementError("marker* (%block;)+");
}

+ 1
- 1
src/java/org/apache/fop/fo/pagination/LayoutMasterSet.java View File

@@ -72,7 +72,7 @@ public class LayoutMasterSet extends FObj {
/**
* @see org.apache.fop.fo.FONode#end
*/
protected void end() {
protected void endOfNode() {
if (childNodes == null) {
missingChildElementError("(simple-page-master|page-sequence-master)+");
}

+ 2
- 2
src/java/org/apache/fop/fo/pagination/PageSequence.java View File

@@ -167,14 +167,14 @@ public class PageSequence extends FObj {
* This passes the end page sequence to the structure handler
* so it can act upon that.
*/
protected void end() {
protected void endOfNode() {
if (mainFlow == null) {
missingChildElementError("(title?,static-content*,flow)");
}
try {
getFOInputHandler().endPageSequence(this);
} catch (FOPException fopex) {
getLogger().error("Error in PageSequence.end(): "
getLogger().error("Error in PageSequence.endOfNode(): "
+ fopex.getMessage(), fopex);
}
}

+ 1
- 1
src/java/org/apache/fop/fo/pagination/PageSequenceMaster.java View File

@@ -79,7 +79,7 @@ public class PageSequenceMaster extends FObj {
}
}

protected void end() {
protected void endOfNode() {
if (childNodes == null) {
missingChildElementError("(single-page-master-reference|" +
"repeatable-page-master-reference|repeatable-page-master-alternatives)+");

+ 3
- 3
src/java/org/apache/fop/fo/pagination/RegionBA.java View File

@@ -48,10 +48,10 @@ public abstract class RegionBA extends RegionBASE {
}

/**
* @see org.apache.fop.fo.FONode#end()
* @see org.apache.fop.fo.FONode#endOfNode()
*/
protected void end() {
super.end();
protected void endOfNode() {
super.endOfNode();
bPrecedence =
(this.propertyList.get(PR_PRECEDENCE).getEnum() == Precedence.TRUE);
}

+ 2
- 2
src/java/org/apache/fop/fo/pagination/RegionBASE.java View File

@@ -41,9 +41,9 @@ public abstract class RegionBASE extends Region {
}

/**
* @see org.apache.fop.fo.FONode#end()
* @see org.apache.fop.fo.FONode#endOfNode()
*/
protected void end() {
protected void endOfNode() {
// The problem with this is that it might not be known yet....
// Supposing extent is calculated in terms of percentage
this.extent = this.propertyList.get(PR_EXTENT).getLength().getValue();

+ 1
- 1
src/java/org/apache/fop/fo/pagination/RepeatablePageMasterAlternatives.java View File

@@ -73,7 +73,7 @@ public class RepeatablePageMasterAlternatives extends FObj
/**
* @see org.apache.fop.fo.FONode#end
*/
protected void end() {
protected void endOfNode() {
if (childNodes == null) {
missingChildElementError("(conditional-page-master-reference+)");
}

+ 1
- 1
src/java/org/apache/fop/fo/pagination/StaticContent.java View File

@@ -59,7 +59,7 @@ public class StaticContent extends Flow {
* StructureRenderer that we are at the end of the flow.
* @see org.apache.fop.fo.FONode#end
*/
protected void end() {
protected void endOfNode() {
if (childNodes == null) {
missingChildElementError("(%block;)+");
}

Loading…
Cancel
Save