(self, canv)
| 484 | self.graphics = [] |
| 485 | |
| 486 | def drawOn(self, canv): |
| 487 | for graphic in self.graphics: |
| 488 | graphic.drawOn(canv) |
| 489 | continue |
| 490 | name = str(hash(graphic)) |
| 491 | #internalname = canv._doc.hasForm(name) |
| 492 | if definedForms.has_key(name): |
| 493 | internalname = 1 |
| 494 | else: |
| 495 | internalname = None |
| 496 | definedForms[name] = 1 |
| 497 | if not internalname: |
| 498 | canv.beginForm(name) |
| 499 | canv.saveState() |
| 500 | graphic.drawOn(canv) |
| 501 | canv.restoreState() |
| 502 | canv.endForm() |
| 503 | canv.doForm(name) |
| 504 | else: |
| 505 | canv.doForm(name) |
| 506 | |
| 507 | |
| 508 | class PPNotes: |