| 355 | |
| 356 | |
| 357 | def start_slide(self, args): |
| 358 | s = pythonpoint.PPSlide() |
| 359 | s.id = self._arg('slide',args,'id') |
| 360 | s.title = self._arg('slide',args,'title') |
| 361 | a = self._arg('slide',args,'effectname') |
| 362 | if a <> 'None': |
| 363 | s.effectName = a |
| 364 | s.effectDirection = self.ceval('slide',args,'effectdirection') |
| 365 | s.effectDimension = self._arg('slide',args,'effectdimension') |
| 366 | s.effectDuration = self.ceval('slide',args,'effectduration') |
| 367 | s.effectMotion = self._arg('slide',args,'effectmotion') |
| 368 | |
| 369 | #HACK - may not belong here in the long run... |
| 370 | #by default, use the slide title for the outline entry, |
| 371 | #unless it is specified as an arg. |
| 372 | a = self._arg('slide',args,'outlineentry') |
| 373 | if a == "Hide": |
| 374 | s.outlineEntry = None |
| 375 | elif a <> 'None': |
| 376 | s.outlineEntry = a |
| 377 | else: |
| 378 | s.outlineEntry = s.title |
| 379 | |
| 380 | s.outlineLevel = self.ceval('slide',args,'outlinelevel') |
| 381 | |
| 382 | #let it know its section, which may be none |
| 383 | s.section = self._curSection |
| 384 | self._curSlide = s |
| 385 | |
| 386 | def end_slide(self): |
| 387 | self._curPres.slides.append(self._curSlide) |