ó
    ‰*£hÅ  ã                  óô   • % S r SSKJr  SSKJrJr  SSKJr  SSKJ	r	  SSK
Jr  SSKJr  SSKJr  \(       a0  SS	KJr  SS
KJr  SSKJr  SSKJr  SSKJr  SSKJr  SSKJr  SSKJr  SrS\ S'    " S S\5      r!g	)z¾Block item container, used by body, cell, header, etc.

Block level items are things like paragraph and table, although there are a few other
specialized ones like structured document tags.
é    )Úannotations)ÚTYPE_CHECKINGÚIterator)Ú	TypeAlias)ÚCT_Tbl)ÚCT_P)Ú
StoryChild)Ú	ParagraphN)Ú
CT_Comment)ÚCT_Body)Ú	CT_HdrFtr)ÚCT_Tc)ÚLength)ÚParagraphStyle©ÚTablez(CT_Body | CT_Comment | CT_HdrFtr | CT_Tcr   ÚBlockItemElementc                  óx   ^ • \ rS rSrSrSU 4S jjrSSS jjrSS jrSS jr\	S 5       r
\	S 5       rS	 rS
rU =r$ )ÚBlockItemContaineré!   zöBase class for proxy objects that can contain block items.

These containers include _Body, _Cell, header, footer, footnote, endnote, comment,
and text box objects. Provides the shared functionality to add a block item like a
paragraph or table.
c                ó8   >• [         [        U ]  U5        Xl        g )N)Úsuperr   Ú__init__Ú_element)ÚselfÚelementÚparentÚ	__class__s      €ÚJ/home/mande/repo/quber/.venv/lib/python3.13/site-packages/docx/blkcntnr.pyr   ÚBlockItemContainer.__init__)   s   ø€ ÜÔ  $Ñ0°Ô8Ø�ó    c                óh   • U R                  5       nU(       a  UR                  U5        Ub  X#l        U$ )a  Return paragraph newly added to the end of the content in this container.

The paragraph has `text` in a single run if present, and is given paragraph
style `style`.

If `style` is |None|, no paragraph style is applied, which has the same effect
as applying the 'Normal' style.
)Ú_add_paragraphÚadd_runÚstyle)r   Útextr%   Ú	paragraphs       r   Úadd_paragraphÚ BlockItemContainer.add_paragraph-   s4   € ð ×'Ñ'Ó)ˆ	ÞØ×Ñ˜dÔ#ØÑØ#ŒOØÐr!   c                ó‚   • SSK Jn  [        R                  " XU5      nU R                  R                  U5        U" XP5      $ )zÆReturn table of `width` having `rows` rows and `cols` columns.

The table is appended appended at the end of the content in this container.

`width` is evenly distributed between the table columns.
r   r   )Ú
docx.tabler   r   Únew_tblr   Ú_insert_tbl)r   ÚrowsÚcolsÚwidthr   Útbls         r   Ú	add_tableÚBlockItemContainer.add_table=   s4   € õ 	%ä�nŠn˜T¨Ó/ˆØ�‰×!Ñ! #Ô&Ù�SÓÐr!   c              #  ó¦   #   • SSK Jn  U R                  R                   H-  n[	        U[
        5      (       a  [        X 5      OU" X 5      v •  M/     g7f)zIGenerate each `Paragraph` or `Table` in this container in document order.r   r   N)r+   r   r   Úinner_content_elementsÚ
isinstancer   r
   )r   r   r   s      r   Úiter_inner_contentÚ%BlockItemContainer.iter_inner_contentJ   s;   é € å$à—}‘}×;Ô;ˆGÜ/9¸'Ä4×/HÑ/H”9˜WÔ+ÉeÐT[ÓNbÔcò <ùs   ‚AAc                ól   • U R                   R                   Vs/ s H  n[        X5      PM     sn$ s  snf )zSA list containing the paragraphs in this container, in document order.

Read-only.
)r   Úp_lstr
   )r   Úps     r   Ú
paragraphsÚBlockItemContainer.paragraphsQ   s-   € ð -1¯M©M×,?Ò,?Ó@Ò,? q”	˜!Ö"Ñ,?Ñ@Ð@ùÒ@s   ™1c                óp   • SSK Jn  U R                  R                   Vs/ s H
  o!" X 5      PM     sn$ s  snf )zOA list containing the tables in this container, in document order.

Read-only.
r   r   )r+   r   r   Útbl_lst)r   r   r1   s      r   ÚtablesÚBlockItemContainer.tablesY   s0   € õ 	%à,0¯M©M×,AÒ,AÓBÒ,A S��cÖ Ñ,AÑBÐBùÒBs   Ÿ3c                óJ   • [        U R                  R                  5       U 5      $ )zIReturn paragraph newly added to the end of the content in this container.)r
   r   Úadd_p)r   s    r   r#   Ú!BlockItemContainer._add_paragraphc   s   € ä˜Ÿ™×,Ñ,Ó.°Ó5Ð5r!   )r   )r   r   r   zt.ProvidesStoryPart)Ú N)r&   Ústrr%   zstr | ParagraphStyle | NoneÚreturnr
   )r.   Úintr/   rH   r0   r   rG   r   )rG   zIterator[Paragraph | Table])Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r(   r2   r7   Úpropertyr<   r@   r#   Ú__static_attributes__Ú__classcell__)r   s   @r   r   r   !   sS   ø† ñ÷ öô  ôdð ñAó ðAð ñCó ðC÷6ð 6r!   r   )"rM   Ú
__future__r   Útypingr   r   Útyping_extensionsr   Údocx.oxml.tabler   Údocx.oxml.text.paragraphr   Údocx.sharedr	   Údocx.text.paragraphr
   Ú
docx.typesÚtypesÚtÚdocx.oxml.commentsr   Údocx.oxml.documentr   Údocx.oxml.sectionr   r   r   Údocx.styles.styler   r+   r   r   Ú__annotations__r   © r!   r   Ú<module>ra      sU   ðòõ #ç *å 'å "Ý )Ý "Ý )æÝÝ-Ý*Ý+Ý%Ý"Ý0Ý àHÐ �)Ó HôD6˜õ D6r!   