§
    £”j	  ã                  óž   — d Z ddlmZ ddlmZmZmZ ddlmZ ddl	m
Z
mZmZ erddlmZ ddlmZ  G d„ d	e
¦  «        Z G d
„ de
¦  «        ZdS )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   — e Zd ZU dZ ed¦  «        Zded<   ed	d„¦   «         ZdS )
ÚCT_DocumentzB``<w:document>`` element, the root element of a document.xml file.zw:bodyÚCT_BodyÚbodyÚreturnúList[CT_SectPr]c                ó0   — d}|                       |¦  «        S )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     úa/var/www/finuniver-perm.ru/html/portfolio/venv/lib/python3.11/site-packages/docx/oxml/document.pyÚ
sectPr_lstzCT_Document.sectPr_lst   s   € ð BˆØ�zŠz˜%Ñ Ô Ð ó    N)r   r   )	Ú__name__Ú
__module__Ú__qualname__Ú__doc__r
   r   Ú__annotations__Úpropertyr   © r   r   r   r      sU   € € € € € € ØLÐLà�I˜hÑ'Ô'€DÐ'Ð'Ð'Ñ'àð!ð !ð !ñ „Xð!ð !ð !r   r   c                  óÄ   — e Zd ZU dZded<   ded<   ded<   ded	<   d
ed<    edd¬¦  «        Z edd¬¦  «        Z edd¬¦  «        Z	ded<   dd„Z
d„ Zedd„¦   «         ZdS )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ÚsectPrr   r   c                óú   — |                       ¦   «         }|                      ¦   «                              |                     ¦   «         ¦  «         |                     d¦  «        D ]}|                     |¦  «         Œ|S )ap  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_breakzCT_Body.add_section_break3   sx   € ð ×0Ò0Ñ2Ô2ˆà�
Š
‰Œ×Ò × 5Ò 5Ñ 7Ô 7Ñ8Ô8Ð8à)×/Ò/Ð0UÑVÔVð 	/ð 	/ˆJØ×"Ò" :Ñ.Ô.Ð.Ð.àÐr   c                ó`   — |                       d¦  «        D ]}|                      |¦  «         ŒdS )z~Remove 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   r-   )r   Úcontent_elms     r   Úclear_contentzCT_Body.clear_contentI   s?   € ð
  Ÿ:š:Ð&@ÑAÔAð 	%ð 	%ˆKØ�KŠK˜Ñ$Ô$Ð$Ð$ð	%ð 	%r   úList[CT_P | CT_Tbl]c                ó,   — |                       d¦  «        S )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_elementszCT_Body.inner_content_elementsQ   s   € ð �zŠzÐ+Ñ,Ô,Ð,r   N)r   r   )r   r4   )r   r   r   r   r   r	   ÚpÚtblr
   r)   r0   r3   r   r6   r    r   r   r   r   #   sò   € € € € € € ØXÐXàÐÐÑØ.Ð.Ð.Ñ.ØÐÐÑØÐÐÑà+Ð+Ð+Ñ+àˆ
�5 ]Ð3Ñ3Ô3€AØ
ˆ*�W¨Ð
7Ñ
7Ô
7€CØ(˜yØ˜rð ñ  ô  €Fð ð ð ñ ðð ð ð ð,%ð %ð %ð ð-ð -ð -ñ „Xð-ð -ð -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>r?      sõ   ðØ UÐ Uà "Ð "Ð "Ð "Ð "Ð "à 0Ð 0Ð 0Ð 0Ð 0Ð 0Ð 0Ð 0Ð 0Ð 0à 'Ð 'Ð 'Ð 'Ð 'Ð 'Ø EÐ EÐ EÐ EÐ EÐ EÐ EÐ EÐ EÐ Eàð .Ø&Ð&Ð&Ð&Ð&Ð&Ø-Ð-Ð-Ð-Ð-Ð-ð!ð !ð !ð !ð !�/ñ !ô !ð !ð(5-ð 5-ð 5-ð 5-ð 5-ˆoñ 5-ô 5-ð 5-ð 5-ð 5-r   