2023-11-01 22:22:17 -07:00
|
|
|
from typing import Iterator, Sequence
|
2023-09-19 15:32:46 -07:00
|
|
|
|
|
|
|
from docx.blkcntnr import BlockItemContainer
|
|
|
|
from docx.enum.section import WD_SECTION
|
|
|
|
from docx.oxml.section import CT_SectPr
|
2023-11-01 22:22:17 -07:00
|
|
|
from docx.table import Table
|
|
|
|
from docx.text.paragraph import Paragraph
|
2023-09-19 15:32:46 -07:00
|
|
|
|
|
|
|
class Section:
|
|
|
|
_sectPr: CT_SectPr
|
|
|
|
@property
|
|
|
|
def different_first_page_header_footer(self) -> bool: ...
|
|
|
|
@property
|
|
|
|
def even_page_footer(self) -> _Footer: ...
|
|
|
|
@property
|
|
|
|
def even_page_header(self) -> _Header: ...
|
|
|
|
@property
|
|
|
|
def first_page_footer(self) -> _Footer: ...
|
|
|
|
@property
|
|
|
|
def first_page_header(self) -> _Header: ...
|
|
|
|
@property
|
|
|
|
def footer(self) -> _Footer: ...
|
|
|
|
@property
|
|
|
|
def header(self) -> _Header: ...
|
2023-11-01 22:22:17 -07:00
|
|
|
def iter_inner_content(self) -> Iterator[Paragraph | Table]: ...
|
2023-09-19 15:32:46 -07:00
|
|
|
@property
|
|
|
|
def start_type(self) -> WD_SECTION: ...
|
|
|
|
|
|
|
|
class Sections(Sequence[Section]): ...
|
|
|
|
|
|
|
|
class _BaseHeaderFooter(BlockItemContainer):
|
|
|
|
@property
|
|
|
|
def is_linked_to_previous(self) -> bool: ...
|
|
|
|
|
|
|
|
class _Footer(_BaseHeaderFooter): ...
|
|
|
|
class _Header(_BaseHeaderFooter): ...
|