
    hi                     X    d Z ddlmZ ddlmZ  G d de          Z G d d          ZdS )	z,|NumberingPart| and closely related objects.   )XmlPart)lazypropertyc                   @    e Zd ZdZedd            Zed             ZdS )NumberingPartzaProxy for the numbering.xml part containing numbering definitions for a document
    or glossary.returnc                     t           )zQNewly created numbering part, containing only the root ``<w:numbering>`` element.)NotImplementedError)clss    l/var/www/development/aibuddy-work/election-extract/venv/lib/python3.11/site-packages/docx/parts/numbering.pynewzNumberingPart.new   s
     "!    c                 *    t          | j                  S )zThe |_NumberingDefinitions| instance containing the numbering definitions
        (<w:num> element proxies) for this numbering part.)_NumberingDefinitions_elementselfs    r   numbering_definitionsz#NumberingPart.numbering_definitions   s     %T]333r   N)r   r   )__name__
__module____qualname____doc__classmethodr   r   r    r   r   r   r      sY          " " " [" 4 4 \4 4 4r   r   c                   (     e Zd ZdZ fdZd Z xZS )r   zqCollection of |_NumberingDefinition| instances corresponding to the ``<w:num>``
    elements in a numbering part.c                 d    t          t          |                                            || _        d S N)superr   __init__
_numbering)r   numbering_elm	__class__s     r   r   z_NumberingDefinitions.__init__   s+    #T**33555'r   c                 4    t          | j        j                  S r   )lenr   num_lstr   s    r   __len__z_NumberingDefinitions.__len__   s    4?*+++r   )r   r   r   r   r   r%   __classcell__)r!   s   @r   r   r      sQ        % %( ( ( ( (, , , , , , ,r   r   N)r   opc.partr   sharedr   r   r   r   r   r   <module>r)      s    2 2       ! ! ! ! ! !4 4 4 4 4G 4 4 4 	, 	, 	, 	, 	, 	, 	, 	, 	, 	,r   