]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Work with complex body-region; suggested by Daniel Bradby
authorarved <arved@unknown>
Fri, 22 Dec 2000 02:04:44 +0000 (02:04 +0000)
committerarved <arved@unknown>
Fri, 22 Dec 2000 02:04:44 +0000 (02:04 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193918 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/render/awt/AWTRenderer.java

index 9fad046fa120520c4876ceee6e5bbdebbb14939a..1d6fd682f2a9578cb8b84f2626a00b281a054c6f 100644 (file)
@@ -358,10 +358,26 @@ public class AWTRenderer implements Renderer, Printable, Pageable {
     }
 
        // empty for now
-       public void renderBodyAreaContainer(BodyAreaContainer area) {}
+       public void renderBodyAreaContainer(BodyAreaContainer area) {
+               renderAreaContainer(area.getBeforeFloatReferenceArea());
+               renderAreaContainer(area.getFootnoteReferenceArea());
+               
+               // main reference area
+               Enumeration e = area.getMainReferenceArea().getChildren().elements();
+               while (e.hasMoreElements()) {
+                       org.apache.fop.layout.Box b = (org.apache.fop.layout.Box) e.nextElement();
+                       b.render(this); // span areas
+               }               
+       }
 
        // empty for now
-       public void renderSpanArea(SpanArea area) {}
+       public void renderSpanArea(SpanArea area) {
+               Enumeration e = area.getChildren().elements();
+               while (e.hasMoreElements()) {
+                       org.apache.fop.layout.Box b = (org.apache.fop.layout.Box) e.nextElement();
+                       b.render(this); // column areas
+               }                               
+       }
 
     private void doFrame(org.apache.fop.layout.Area area) {
         int w, h;