reportlab/platypus/doctemplate.py
changeset 2450 f2ae0122a66a
parent 2449 47b15f941325
child 2460 dc28c1738ea9
equal deleted inserted replaced
2449:47b15f941325 2450:f2ae0122a66a
    79     def __init__(self,action=()):
    79     def __init__(self,action=()):
    80         if type(action) not in (ListType, TupleType):
    80         if type(action) not in (ListType, TupleType):
    81             action = (action,)
    81             action = (action,)
    82         self.action = tuple(action)
    82         self.action = tuple(action)
    83 
    83 
    84     def wrap(self, availWidth, availHeight):
       
    85         '''Should never be called.'''
       
    86         raise NotImplementedError
       
    87 
       
    88     def draw(self):
       
    89         '''Should never be called.'''
       
    90         raise NotImplementedError
       
    91 
    84 
    92     def apply(self,doc):
    85     def apply(self,doc):
    93         '''
    86         '''
    94         This is called by the doc.build processing to allow the instance to
    87         This is called by the doc.build processing to allow the instance to
    95         implement its behaviour
    88         implement its behaviour
   114     def identity(self, maxLen=None):
   107     def identity(self, maxLen=None):
   115         return "ActionFlowable: %s" % str(self.action)
   108         return "ActionFlowable: %s" % str(self.action)
   116 
   109 
   117 class LCActionFlowable(ActionFlowable):
   110 class LCActionFlowable(ActionFlowable):
   118     locChanger = 1                  #we cause a frame or page change
   111     locChanger = 1                  #we cause a frame or page change
       
   112 
       
   113     def wrap(self, availWidth, availHeight):
       
   114         '''Should never be called.'''
       
   115         raise NotImplementedError
       
   116 
       
   117     def draw(self):
       
   118         '''Should never be called.'''
       
   119         raise NotImplementedError
   119 
   120 
   120 class NextFrameFlowable(ActionFlowable):
   121 class NextFrameFlowable(ActionFlowable):
   121     def __init__(self,ix,resume=0):
   122     def __init__(self,ix,resume=0):
   122         ActionFlowable.__init__(self,('nextFrame',ix,resume))
   123         ActionFlowable.__init__(self,('nextFrame',ix,resume))
   123 
   124