diff options
author | Keiron Liddle <keiron@apache.org> | 2002-06-05 14:52:28 +0000 |
---|---|---|
committer | Keiron Liddle <keiron@apache.org> | 2002-06-05 14:52:28 +0000 |
commit | d8510cb466c14d47630f544b210d35f6a37d3cbf (patch) | |
tree | e1140b7bbaf0404687644f8b05015e1240146c25 /src/org/apache/fop/fo/flow | |
parent | bc15564c2d6a518ca1daca4ab78ab05e27336ffb (diff) | |
download | xmlgraphics-fop-d8510cb466c14d47630f544b210d35f6a37d3cbf.tar.gz xmlgraphics-fop-d8510cb466c14d47630f544b210d35f6a37d3cbf.zip |
start to an improved mif handler
cleaner structures and logic for handling the mif document and elements
uses the structure handler concept to create the mif document
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194855 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/fo/flow')
-rw-r--r-- | src/org/apache/fop/fo/flow/Block.java | 3 | ||||
-rw-r--r-- | src/org/apache/fop/fo/flow/Flow.java | 6 |
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 { |