MCPcopy Create free account
hub / github.com/Distrotech/reportlab / SlideWrapper

Class SlideWrapper

tools/pythonpoint/pythonpoint.py:290–317  ·  view source on GitHub ↗

A Flowable wrapping a PPSlide object.

Source from the content-addressed store, hash-verified

288
289
290class SlideWrapper(Flowable):
291 """A Flowable wrapping a PPSlide object.
292 """
293
294 def __init__(self, width, height, slide, pageSize):
295 Flowable.__init__(self)
296 self.width = width
297 self.height = height
298 self.slide = slide
299 self.pageSize = pageSize
300
301
302 def __repr__(self):
303 return "SlideWrapper(w=%s, h=%s)" % (self.width, self.height)
304
305
306 def draw(self):
307 "Draw the slide in our relative coordinate system."
308
309 slide = self.slide
310 pageSize = self.pageSize
311 canv = self.canv
312
313 canv.saveState()
314 canv.scale(self.width/pageSize[0], self.height/pageSize[1])
315 slide.effectName = None
316 slide.drawOn(self.canv)
317 canv.restoreState()
318
319
320class PPPresentation:

Callers 1

makeSlideTableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected