Calculate paragraphs from the shape's text frame.
(self)
| 467 | |
| 468 | @property |
| 469 | def paragraphs(self) -> List[ParagraphData]: |
| 470 | """Calculate paragraphs from the shape's text frame.""" |
| 471 | if not self.shape or not hasattr(self.shape, "text_frame"): |
| 472 | return [] |
| 473 | |
| 474 | paragraphs = [] |
| 475 | for paragraph in self.shape.text_frame.paragraphs: # type: ignore |
| 476 | if paragraph.text.strip(): |
| 477 | paragraphs.append(ParagraphData(paragraph)) |
| 478 | return paragraphs |
| 479 | |
| 480 | def _get_default_font_size(self) -> int: |
| 481 | """Get default font size from theme text styles or use conservative default.""" |
nothing calls this directly
no test coverage detected