77 |
lineconn = GLRen.createLineConnector(0,0) |
lineconn = GLRen.createLineConnector(0,0) |
78 |
|
|
79 |
class XuPDFBuoy: |
class XuPDFBuoy: |
80 |
def __init__(self, linkindex, link): |
def __init__(self, linkindex, link, enfoverlap): |
81 |
self.cursor = None |
self.cursor = None |
82 |
self.link = link |
self.link = link |
83 |
self.linkindex = linkindex |
self.linkindex = linkindex |
311 |
|
|
312 |
content = cell.space.cellTexter.getEnfilade(cell, None) |
content = cell.space.cellTexter.getEnfilade(cell, None) |
313 |
globalspan = enf2span(content) |
globalspan = enf2span(content) |
314 |
|
xuindexer = gzz.index.IndexManager.getXuIndexer(cell.space) |
315 |
globalforw = xuindexer.getForwardIndex().getMatches(content) |
globalforw = xuindexer.getForwardIndex().getMatches(content) |
316 |
globalback = xuindexer.getBackwardIndex().getMatches(content) |
globalback = xuindexer.getBackwardIndex().getMatches(content) |
317 |
|
|
363 |
|
|
364 |
self.buoys = [] |
self.buoys = [] |
365 |
|
|
366 |
|
enfoverlap = gzz.index.IndexManager.getEnfiladeOverlap( |
367 |
|
self.cursor.space) |
368 |
|
|
369 |
if self.modes[0].context: |
if self.modes[0].context: |
370 |
for forwlink in globalforw: |
for forwlink in globalforw: |
371 |
b = XuPDFBuoy(1, (getattr(forwlink, "from"), forwlink.to)) |
b = XuPDFBuoy(1, (getattr(forwlink, "from"), forwlink.to), |
372 |
|
enfoverlap = enfoverlap) |
373 |
b.add(vs, 0, 0, 1, bfforw, maincs = cs1_trans, |
b.add(vs, 0, 0, 1, bfforw, maincs = cs1_trans, |
374 |
globalview = self.view, |
globalview = self.view, |
375 |
globalusefancypaper = self.usefancypaper, |
globalusefancypaper = self.usefancypaper, |
376 |
globalshowtessel = self.showtessel) |
globalshowtessel = self.showtessel) |
377 |
self.buoys.append(b) |
self.buoys.append(b) |
378 |
for backlink in globalback: |
for backlink in globalback: |
379 |
b = XuPDFBuoy(0,(getattr(backlink,"from"), backlink.to)) |
b = XuPDFBuoy(0,(getattr(backlink,"from"), backlink.to), |
380 |
|
enfoverlap = enfoverlap) |
381 |
b.add(vs, 0, 0, 1, bf, maincs = cs1_trans, |
b.add(vs, 0, 0, 1, bf, maincs = cs1_trans, |
382 |
globalview = self.view, |
globalview = self.view, |
383 |
globalusefancypaper = self.usefancypaper, |
globalusefancypaper = self.usefancypaper, |