]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Thorough rewrite to support new approach
authorarved <arved@unknown>
Sun, 2 Apr 2000 03:48:29 +0000 (03:48 +0000)
committerarved <arved@unknown>
Sun, 2 Apr 2000 03:48:29 +0000 (03:48 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193318 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/fo/flow/SimpleLink.java

index 370a66b5ac7d72957bdcd6f0e6c760513f66143a..6566cc3718009e83929f40b536314a11c77208d4 100644 (file)
@@ -99,7 +99,7 @@ public class SimpleLink extends FObjMixed {
        }
        
        // new LinkedArea to gather up inlines
-       LinkSet ls = new LinkSet(externalDest);
+       LinkSet ls = new LinkSet(externalDest, area);
                
        Page p = area.getPage();
 
@@ -111,7 +111,7 @@ public class SimpleLink extends FObjMixed {
        for (int i = this.marker; i < numChildren; i++) {
            FONode fo = (FONode) children.elementAt(i);
            fo.setLinkSet(ls);
-                   
+           
            Status status;
            if ((status = fo.layout(area)).isIncomplete()) {
                this.marker = i;
@@ -121,8 +121,11 @@ public class SimpleLink extends FObjMixed {
                
        ls.applyAreaContainerOffsets(ac);
                
-       // comment this out to see individual words linked
-       ls.mergeLinks();
+       // pass on command line
+       String mergeLinks = System.getProperty( "links.merge" );
+       if ((null != mergeLinks) && !mergeLinks.equalsIgnoreCase("no")) {
+           ls.mergeLinks();
+       }
                
        p.addLinkSet(ls);