
    kh                     6    d Z ddlmZ ddlmZ  G d de      Zy)zCollection of Cell instances.
   )Cell   )ElementCollectionc                   (    e Zd ZdZdefdZdefdZy)CellszA group of Cells.rawsc                 L    |D ]  }t        |      }| j                  |         | S )zgRestore Cells from source dict.

        Args:
            raws (list): A list of source dict.
        )r   append)selfr   rawcells       P/var/www/teggl/fontify/venv/lib/python3.12/site-packages/pdf2docx/table/Cells.pyrestorezCells.restore   s/      	C9DKK	     r   c                 ~    | j                   j                  |       | j                  |       | j                  |_        y)zZOverride. Append a cell (allow empty cell, i.e. merged cells) and update bbox accordingly.N)
_instancesr
   _update_bbox_parentparent)r   r   s     r   r
   zCells.append   s-    t$$llr   N)__name__
__module____qualname____doc__listr   r   r
    r   r   r   r   
   s    	4 	#$ #r   r   N)r   r   common.Collectionr   r   r   r   r   <module>r      s     1# #r   