Return appropriate shape object for `shape_elm` on a slide master.
(shape_elm: ShapeElement, parent: ProvidesPart)
| 828 | |
| 829 | |
| 830 | def _MasterShapeFactory(shape_elm: ShapeElement, parent: ProvidesPart) -> BaseShape: |
| 831 | """Return appropriate shape object for `shape_elm` on a slide master.""" |
| 832 | if isinstance(shape_elm, CT_Shape) and shape_elm.has_ph_elm: |
| 833 | return MasterPlaceholder(shape_elm, parent) |
| 834 | return BaseShapeFactory(shape_elm, parent) |
| 835 | |
| 836 | |
| 837 | def _NotesSlideShapeFactory(shape_elm: ShapeElement, parent: ProvidesPart) -> BaseShape: |
searching dependent graphs…