/[gzz]/gzz/gfx/demo/xupdf.py
ViewVC logotype

Diff of /gzz/gfx/demo/xupdf.py

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

revision 1.27 by tjl, Fri Sep 27 18:52:26 2002 UTC revision 1.28 by tjl, Fri Sep 27 19:34:48 2002 UTC
# Line 128  class CellPDFView: Line 128  class CellPDFView:
128          self.cell = cell          self.cell = cell
129          self.content = space.cellTexter.getEnfilade(cell, None)          self.content = space.cellTexter.getEnfilade(cell, None)
130          self.pap = getPDFPapers(self.content)          self.pap = getPDFPapers(self.content)
131          self.irregu = IrreguFrame(0.06, 2, 1.5, # XXX          self.irregu = IrreguFrame(0, 0, self.pap[0][1] / self.pap[0][2] * len(self.pap), 1,
132                          0.5)                          0.06, 0.5)
133            # self.irregu = IrreguFrame(-1, -1, 1, 1, 0.06, 0.5)
134      # Height = always 1.      # Height = always 1.
135      # Start = always (0,0)      # Start = always (0,0)
136      def placepapers(self, vs,      def placepapers(self, vs,
# Line 166  class CellPDFView: Line 167  class CellPDFView:
167                              pq = GLRen.createPaperQuad(                              pq = GLRen.createPaperQuad(
168                                  papers[i][0], *corners)                                  papers[i][0], *corners)
169                              vs.map.put(pq, cs1, cs2)                              vs.map.put(pq, cs1, cs2)
170                      self.curx += 1.02 *  papers[i][1] * scale                      self.curx += papers[i][1] * scale
171    
172          pp = PutPapers()          pp = PutPapers()
173          if cliprect:          if cliprect:

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.28

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