+
    i	                        R t ^ RIHt ^ RIHtHtHt ^ RIHt ^ RI	H
t
HtHt ]'       d   ^ RIHt ^ RIHt  ! R R]
4      t ! R	 R
]
4      tR# )zOCustom element classes that correspond to the document part, e.g. <w:document>.)annotations)TYPE_CHECKINGCallableList)	CT_SectPr)BaseOxmlElement
ZeroOrMore	ZeroOrOne)CT_Tbl)CT_Pc                  L    ] tR t^t$ Rt]! R4      tR]R&   ]R R l4       t	Rt
R# )	CT_DocumentzB``<w:document>`` element, the root element of a document.xml file.zw:bodyCT_Bodybodyc                   V ^8  d   QhRR/# )   returnzList[CT_SectPr] )formats   "Y/Users/agent/.openclaw/workspace/.venv/lib/python3.14/site-packages/docx/oxml/document.py__annotate__CT_Document.__annotate__   s     ! !O !    c                (    RpV P                  V4      # )a^  All `w:sectPr` elements directly accessible from document element.

Note this does not include a `sectPr` child in a paragraphs wrapped in
revision marks or other intervening layer, perhaps `w:sdt` or customXml
elements.

`w:sectPr` elements appear in document order. The last one is always
`w:body/w:sectPr`, all preceding are `w:p/w:pPr/w:sectPr`.
z/./w:body/w:p/w:pPr/w:sectPr | ./w:body/w:sectPrxpath)selfr   s   & r   
sectPr_lstCT_Document.sectPr_lst   s     Bzz%  r   r   N)__name__
__module____qualname____firstlineno____doc__r	   r   __annotations__propertyr   __static_attributes__r   r   r   r   r      s&    Lh'D''! !r   r   c                      ] tR t^#t$ RtR]R&   R]R&   R]R&   R]R	&   R
]R&   ]! RRR7      t]! RRR7      t]	! RRR7      t
R]R&   R R ltR t]R R l4       tRtR# )r   zN`w:body`, the container element for the main document story in `document.xml`.zCallable[[], CT_P]add_pzCallable[[], CT_SectPr]get_or_add_sectPrz
List[CT_P]p_lstzList[CT_Tbl]tbl_lstzCallable[[CT_Tbl], CT_Tbl]_insert_tblzw:pw:sectPr)
successorszw:tblzCT_SectPr | NonesectPrc                   V ^8  d   QhRR/# )r   r   r   r   )r   s   "r   r   CT_Body.__annotate__3   s      9 r   c                    V P                  4       pV P                  4       P                  VP                  4       4       VP	                  R4       F  pVP                  V4       K  	  V# )a0  Return `w:sectPr` element for new section added at end of document.

The last `w:sectPr` becomes the second-to-last, with the new `w:sectPr` being an
exact clone of the previous one, except that all header and footer references
are removed (and are therefore now "inherited" from the prior section).

A copy of the previously-last `w:sectPr` will now appear in a new `w:p` at the
end of the document. The returned `w:sectPr` is the sentinel `w:sectPr` for the
document (and as implemented, `is` the prior sentinel `w:sectPr` with headers
and footers removed).
z#w:headerReference|w:footerReference)r)   r(   
set_sectPrcloner   remove)r   sentinel_sectPr
hdrftr_refs   &  r   add_section_breakCT_Body.add_section_break3   s\     002

 5 5 78)//0UVJ"":. W r   c                X    V P                  R4       F  pV P                  V4       K  	  R# )znRemove all content child elements from this <w:body> element.

Leave the <w:sectPr> element if it is present.
z./*[not(self::w:sectPr)]N)r   r5   )r   content_elms   & r   clear_contentCT_Body.clear_contentI   s%    
  ::&@AKKK$ Br   c                   V ^8  d   QhRR/# )r   r   zList[CT_P | CT_Tbl]r   )r   s   "r   r   r1   R   s     - -(; -r   c                $    V P                  R4      # )zGenerate all `w:p` and `w:tbl` elements in this document-body.

Elements appear in document order. Elements shaded by nesting in a `w:ins` or
other "wrapper" element will not be included.
z./w:p | ./w:tblr   )r   s   &r   inner_content_elementsCT_Body.inner_content_elementsQ   s     zz+,,r   r   N)r-   )r   r    r!   r"   r#   r$   r   ptblr	   r/   r8   r<   r%   r@   r&   r   r   r   r   r   #   sp    X..++5]3A
W
7C(r F ,% - -r   r   N)r#   
__future__r   typingr   r   r   docx.oxml.sectionr   docx.oxml.xmlchemyr   r   r	   docx.oxml.tabler
   docx.oxml.text.paragraphr   r   r   r   r   r   <module>rJ      s;    U " 0 0 ' E E&-!/ !(5-o 5-r   