xmlgraphics-fop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerem...@apache.org
Subject svn commit: r227026 - in /xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr: AbstractBreaker.java BlockContainerLayoutManager.java
Date Tue, 02 Aug 2005 15:32:40 GMT
Author: jeremias
Date: Tue Aug  2 08:32:35 2005
New Revision: 227026

URL: http://svn.apache.org/viewcvs?rev=227026&view=rev
Log:
Make it possible to keep block-container element lists apart from normal page-level element
lists.

Modified:
    xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/AbstractBreaker.java
    xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/AbstractBreaker.java
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/AbstractBreaker.java?rev=227026&r1=227025&r2=227026&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/AbstractBreaker.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/AbstractBreaker.java Tue Aug 
2 08:32:35 2005
@@ -165,6 +165,15 @@
         //nop
     }
     
+    /**
+     * Used for debugging purposes. Notifies all registered observers about the element list.
+     * Override to set different parameters.
+     * @param elementList the Knuth element list
+     */
+    protected void observeElementList(List elementList) {
+        ElementListObserver.observe(elementList, "breaker", null);
+    }
+    
     public void doLayout(int flowBPD) {
         LayoutContext childLC = createLayoutContext();
         childLC.setStackLimit(new MinOptMax(flowBPD));
@@ -204,7 +213,7 @@
                                     : "even page";
                     log.debug("  sequence starts on " + pagina);
                 }
-                ElementListObserver.observe(blockList, "breaker", null);
+                observeElementList(blockList);
                 //debug code end
 
                 log.debug("PLM> start of algorithm (" + this.getClass().getName() 

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java?rev=227026&r1=227025&r2=227026&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java
(original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java
Tue Aug  2 08:32:35 2005
@@ -19,6 +19,7 @@
 package org.apache.fop.layoutmgr;
 
 import java.util.LinkedList;
+import java.util.List;
 import java.util.ListIterator;
 import java.awt.Point;
 import java.awt.geom.Rectangle2D;
@@ -447,6 +448,12 @@
             this.ipd = ipd;
         }
 
+        /** @see org.apache.fop.layoutmgr.AbstractBreaker#observeElementList(java.util.List)
*/
+        protected void observeElementList(List elementList) {
+            ElementListObserver.observe(elementList, "block-container", 
+                    bclm.getBlockContainerFO().getId());
+        }
+        
         /** @see org.apache.fop.layoutmgr.AbstractBreaker#isPartOverflowRecoveryActivated()
*/
         protected boolean isPartOverflowRecoveryActivated() {
             //For block-containers, this must be disabled because of wanted overflow.



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org


Mime
View raw message