+
    i                       a  0 t $ R t^ RIHt ^ RIHtHt ^ RIHt ^ RI	H
t
 ^ RIHt ^ RIHt ^ RIHt ]'       d1   ^ RIHt ^ R	IHt ^ R
IHt ^ RIHt ^ RI	Ht ^ RIHt ^ RIHt ^ RIHt Rt R]!R&    ! R R]4      t"R# )zBlock 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                     a  ] tR t^!tRtR V 3R lltRR R lltR R ltR R	 lt]	R
 4       t
]	R 4       tR tRtV ;t# )BlockItemContainerzBase 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                    V ^8  d   QhRRRR/# )   elementr   parentzt.ProvidesStoryPart )formats   "T/Users/agent/.openclaw/workspace/.venv/lib/python3.14/site-packages/docx/blkcntnr.py__annotate__BlockItemContainer.__annotate__)   s         0  :M      c                	:   < \         \        V `  V4       Wn        R # )N)superr   __init___element)selfr   r   	__class__s   &&&r   r!   BlockItemContainer.__init__)   s     $08r   c               $    V ^8  d   QhRRRRRR/# )r   textstrstylezstr | ParagraphStyle | Nonereturnr	   r   )r   s   "r   r   r   -   s#      # 3N Zc r   c                l    V P                  4       pV'       d   VP                  V4       Ve   W#n        V# )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_runr)   )r#   r'   r)   	paragraphs   &&& r   add_paragraph BlockItemContainer.add_paragraph-   s4     '')	d##Or   c               (    V ^8  d   QhRRRRRRRR/# )r   rowsintcolswidthr   r*   r   r   )r   s   "r   r   r   =   s(        c    V    r   c                    ^ RI Hp \        P                  ! WV4      pV P                  P                  V4       V! WP4      # )zReturn 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   )
docx.tabler   r   new_tblr"   _insert_tbl)r#   r2   r4   r5   r   tbls   &&&&  r   	add_tableBlockItemContainer.add_table=   s4     	%nnT/!!#&Sr   c                   V ^8  d   QhRR/# )r   r*   zIterator[Paragraph | Table]r   )r   s   "r   r   r   J   s     d d$? dr   c              #     "   ^ RI Hp V P                  P                   F.  p\	        V\
        4      '       d   \        W 4      MV! W 4      x  K0  	  R# 5i)zIGenerate each `Paragraph` or `Table` in this container in document order.r   N)r7   r   r"   inner_content_elements
isinstancer   r	   )r#   r   r   s   &  r   iter_inner_content%BlockItemContainer.iter_inner_contentJ   s;     $}};;G/9'4/H/H9W+eT[Nbc <s   AAc                j    V P                   P                   Uu. uF  p\        W4      NK  	  up# u upi )zSA list containing the paragraphs in this container, in document order.

Read-only.
)r"   p_lstr	   )r#   ps   & r   
paragraphsBlockItemContainer.paragraphsQ   s-     -1MM,?,?@,?q	!",?@@@s   0c                n    ^ RI Hp V P                  P                   Uu. uF
  q!! W 4      NK  	  up# u upi )zOA list containing the tables in this container, in document order.

Read-only.
r   )r7   r   r"   tbl_lst)r#   r   r:   s   &  r   tablesBlockItemContainer.tablesY   s0     	%,0MM,A,AB,ASc ,ABBBs   2c                J    \        V P                  P                  4       V 4      # )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"   ) N)__name__
__module____qualname____firstlineno____doc__r!   r/   r;   rA   propertyrF   rJ   r,   __static_attributes____classcell__)r$   s   @r   r   r   !   sX         d A A C C6 6r   r   )#__conditional_annotations__rT   
__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   r7   r   r   __annotations__r   )rX   s   @r   <module>rh      sV    # * ' " ) " )-*+%"0 H ) HD6 D6r   