2023-10-12 23:26:14 -07:00
|
|
|
from typing import Iterator, List, Sequence
|
2023-09-19 15:32:46 -07:00
|
|
|
|
|
|
|
from docx.blkcntnr import BlockItemContainer
|
|
|
|
from docx.oxml.text.paragraph import CT_P
|
|
|
|
from docx.oxml.xmlchemy import BaseOxmlElement
|
2023-10-12 23:26:14 -07:00
|
|
|
from docx.styles.style import ParagraphStyle
|
|
|
|
from docx.text.hyperlink import Hyperlink
|
|
|
|
from docx.text.pagebreak import RenderedPageBreak
|
2023-09-19 15:32:46 -07:00
|
|
|
from docx.text.run import Run
|
|
|
|
|
|
|
|
class Paragraph(BlockItemContainer):
|
|
|
|
_p: CT_P
|
2023-10-12 23:26:14 -07:00
|
|
|
_parent: BlockItemContainer
|
|
|
|
text: str
|
2023-09-19 15:32:46 -07:00
|
|
|
def __init__(self, p: BaseOxmlElement, parent: BlockItemContainer) -> None: ...
|
|
|
|
@property
|
2023-10-12 23:26:14 -07:00
|
|
|
def contains_page_break(self) -> bool: ...
|
|
|
|
@property
|
|
|
|
def hyperlinks(self) -> List[Hyperlink]: ...
|
|
|
|
def iter_inner_content(self) -> Iterator[Run | Hyperlink]: ...
|
2023-09-19 15:32:46 -07:00
|
|
|
@property
|
2023-10-12 23:26:14 -07:00
|
|
|
def rendered_page_breaks(self) -> List[RenderedPageBreak]: ...
|
|
|
|
@property
|
|
|
|
def runs(self) -> Sequence[Run]: ...
|
2023-09-19 15:32:46 -07:00
|
|
|
@property
|
2023-10-12 23:26:14 -07:00
|
|
|
def style(self) -> ParagraphStyle | None: ...
|