/[gzz]/gzz/gzz/view/xubuoy.py
ViewVC logotype

Diff of /gzz/gzz/view/xubuoy.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by tjl, Thu Oct 3 10:12:32 2002 UTC revision 1.7 by tjl, Thu Oct 3 10:25:27 2002 UTC
# Line 77  def bg(vs): Line 77  def bg(vs):
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
# Line 311  class XuPDFScene_PDFContext: Line 311  class XuPDFScene_PDFContext:
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    
# Line 362  class XuPDFScene_PDFContext: Line 363  class XuPDFScene_PDFContext:
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,

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26