aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/fo/flow
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/apache/fop/fo/flow')
-rw-r--r--src/org/apache/fop/fo/flow/Block.java3
-rw-r--r--src/org/apache/fop/fo/flow/Flow.java6
2 files changed, 9 insertions, 0 deletions
diff --git a/src/org/apache/fop/fo/flow/Block.java b/src/org/apache/fop/fo/flow/Block.java
index 5483ea685..8ac4d199c 100644
--- a/src/org/apache/fop/fo/flow/Block.java
+++ b/src/org/apache/fop/fo/flow/Block.java
@@ -86,6 +86,8 @@ public class Block extends FObjMixed {
this.properties.get("linefeed-treatment").getEnum();
setupID();
+
+ structHandler.startBlock(this);
}
public Status layout(Area area) throws FOPException {
@@ -404,6 +406,7 @@ public class Block extends FObjMixed {
public void end() {
handleWhiteSpace();
+ structHandler.endBlock(this);
}
private void handleWhiteSpace() {
diff --git a/src/org/apache/fop/fo/flow/Flow.java b/src/org/apache/fop/fo/flow/Flow.java
index 77d889a25..b2583c0a8 100644
--- a/src/org/apache/fop/fo/flow/Flow.java
+++ b/src/org/apache/fop/fo/flow/Flow.java
@@ -83,6 +83,12 @@ public class Flow extends FObj {
setFlowName(getProperty("flow-name").getString());
// Now done in addChild of page-sequence
//pageSequence.addFlow(this);
+
+ structHandler.startFlow(this);
+ }
+
+ public void end() {
+ structHandler.endFlow(this);
}
protected void setFlowName(String name) throws FOPException {