reportlab/platypus/doctemplate.py
changeset 2408 1c5e79611b59
parent 2366 7dd247980b7d
child 2418 9f4ad36c767f
equal deleted inserted replaced
2407:71caad345e58 2408:1c5e79611b59
   412                 del self._nextPageTemplateIndex
   412                 del self._nextPageTemplateIndex
   413             if self._emptyPages==0:
   413             if self._emptyPages==0:
   414                 pass    #store good state here
   414                 pass    #store good state here
   415         self._hanging.append(PageBegin)
   415         self._hanging.append(PageBegin)
   416 
   416 
   417     def handle_pageBreak(self):
   417     def handle_pageBreak(self,slow=None):
   418         '''some might choose not to end all the frames'''
   418         '''some might choose not to end all the frames'''
   419         if self._pageBreakQuick:
   419         if self._pageBreakQuick and not slow:
   420             self.handle_pageEnd()
   420             self.handle_pageEnd()
   421         else:
   421         else:
   422             n = len(self._hanging)
   422             n = len(self._hanging)
   423             while len(self._hanging)==n:
   423             while len(self._hanging)==n:
   424                 self.handle_frameEnd()
   424                 self.handle_frameEnd()
   547         del flowables[0]
   547         del flowables[0]
   548         if f is None:
   548         if f is None:
   549             return
   549             return
   550 
   550 
   551         if isinstance(f,PageBreak):
   551         if isinstance(f,PageBreak):
   552             self.handle_pageBreak()
   552             if isinstance(f,SlowPageBreak):
       
   553                 self.handle_pageBreak(slow=1)
       
   554             else:
       
   555                 self.handle_pageBreak()
   553             self.afterFlowable(f)
   556             self.afterFlowable(f)
   554         elif isinstance(f,ActionFlowable):
   557         elif isinstance(f,ActionFlowable):
   555             f.apply(self)
   558             f.apply(self)
   556             self.afterFlowable(f)
   559             self.afterFlowable(f)
   557         else:
   560         else: