ó
    ‰*£h	  ã                  óš   • S r SSKJr  SSKJrJrJr  SSKJr  SSK	J
r
JrJr  \(       a  SSKJr  SSKJr   " S S	\
5      r " S
 S\
5      rg)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                  óH   • \ rS rSr% Sr\" S5      rS\S'   \S	S j5       r	Sr
g)
ÚCT_Documenté   zB``<w:document>`` element, the root element of a document.xml file.zw:bodyÚCT_BodyÚbodyc                ó(   • SnU R                  U5      $ )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     ÚO/home/mande/repo/quber/.venv/lib/python3.13/site-packages/docx/oxml/document.pyÚ
sectPr_lstÚCT_Document.sectPr_lst   s   € ð BˆØ�z‰z˜%Ó Ð ó    © N)ÚreturnzList[CT_SectPr])Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r
   r   Ú__annotations__Úpropertyr   Ú__static_attributes__r   r   r   r   r      s&   ‡ ÙLá˜hÓ'€Dˆ'Ó'àó!ó ó!r   r   c                  ó¤   • \ rS rSr% SrS\S'   S\S'   S\S'   S	\S
'   S\S'   \" SSS9r\" SSS9r\	" SSS9r
S\S'   SS jrS r\SS j5       rSrg)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:tblr+   r   zCT_SectPr | NoneÚsectPrc                óÒ   • U R                  5       nU R                  5       R                  UR                  5       5        UR	                  S5       H  nUR                  U5        M     U$ )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ÖVˆJØ×"Ñ" :Ö.ñ Wð Ðr   c                óV   • U R                  S5       H  nU R                  U5        M     g)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   r1   )r   Úcontent_elms     r   Úclear_contentÚCT_Body.clear_contentI   s%   € ð
  Ÿ:™:Ð&@ÖAˆKØ�K‰K˜Ö$ò Br   c                ó$   • U R                  S5      $ )z¼Generate 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   € ð �z‰zÐ+Ó,Ð,r   N)r   r   )r   zList[CT_P | CT_Tbl])r   r   r   r   r    r!   r	   ÚpÚtblr
   r-   r4   r8   r"   r;   r#   r   r   r   r   r   #   sp   ‡ ÙXàÓØ.Ó.ØÓØÓà+Ó+á�5 ]Ñ3€AÙ
�W¨Ñ
7€CÙ(Ø˜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>rE      s;   ðÙ Uå "ç 0Ñ 0å 'ß EÑ EæÝ&Ý-ô!�/ô !ô(5-ˆoõ 5-r   