1 |
// (c): Tuomas J. Lukka |
// (c): Tuomas J. Lukka |
2 |
|
|
3 |
package gzz.view.buoy; |
package gzz.view.buoy; |
4 |
|
import java.util.List; |
5 |
|
import java.util.Set; |
6 |
|
import java.util.HashSet; |
7 |
|
import java.util.Iterator; |
8 |
import gzz.view.*; |
import gzz.view.*; |
9 |
import gzz.media.*; |
import gzz.media.*; |
10 |
import gzz.vob.*; |
import gzz.vob.*; |
11 |
|
import gzz.util.*; |
12 |
import gzz.*; |
import gzz.*; |
13 |
|
|
14 |
/** Make links between cells that transclude from scrollblocks and |
/** Make links between cells that transclude from scrollblocks and |
21 |
|
|
22 |
BuoyViewNodeType pageSpanNodeType; |
BuoyViewNodeType pageSpanNodeType; |
23 |
|
|
24 |
void doLinks(Cell c, VobScene vs, int cs, |
public void doLinks(Cell c, VobScene vs, int cs, |
25 |
BuoyViewNodeType cellNodeType, |
BuoyViewNodeType cellNodeType, |
26 |
BuoyLinkListener l) { |
BuoyLinkListener listener) { |
27 |
Enfilade1D enf = c.space.getCellTexter().getEnfilade(c); |
Enfilade1D enf = ((VStreamCellTexter)c.space.getCellTexter()). |
28 |
|
getEnfilade(c, null); |
29 |
List l = enf.getList(); |
List l = enf.getList(); |
30 |
Set done = new HashSet(); |
Set done = new HashSet(); |
31 |
for(Iterator i = l.iterator(); i.hasNext(); ) { |
for(Iterator i = l.iterator(); i.hasNext(); ) { |
36 |
if(s instanceof PageSpan) { |
if(s instanceof PageSpan) { |
37 |
sb.getCurrent(); |
sb.getCurrent(); |
38 |
|
|
39 |
l.link(1, cs, pageSpanNodeType, new Pair(c, sb), s); |
listener.link(1, cs, pageSpanNodeType, new Pair(c, sb), s); |
40 |
} |
} |
41 |
} |
} |
42 |
} |
} |
43 |
|
|
44 |
|
|
45 |
|
|
46 |
// XXX Reverse links! Scrollblock to |
// XXX Reverse links! Scrollblock to |
47 |
} |
} |
48 |
|
|