o
    	Ð'f   ã                   @   s>   d Z ddlmZ ddlmZ G dd„ deƒZG dd„ dƒZdS )	z,|NumberingPart| and closely related objects.é   )ÚXmlPart)Úlazypropertyc                   @   s(   e Zd ZdZedd„ ƒZedd„ ƒZdS )ÚNumberingPartzaProxy for the numbering.xml part containing numbering definitions for a document
    or glossary.c                 C   s   t ‚)zfReturn newly created empty numbering part, containing only the root
        ``<w:numbering>`` element.)ÚNotImplementedError)Úcls© r   úL/home/ubuntu/flask/venv/lib/python3.10/site-packages/docx/parts/numbering.pyÚnew   s   zNumberingPart.newc                 C   s
   t | jƒS )z„The |_NumberingDefinitions| instance containing the numbering definitions
        (<w:num> element proxies) for this numbering part.)Ú_NumberingDefinitionsÚ_element©Úselfr   r   r   Únumbering_definitions   s   
z#NumberingPart.numbering_definitionsN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Úclassmethodr	   r   r   r   r   r   r   r      s    
r   c                       s(   e Zd ZdZ‡ fdd„Zdd„ Z‡  ZS )r
   zqCollection of |_NumberingDefinition| instances corresponding to the ``<w:num>``
    elements in a numbering part.c                    s   t t| ƒ ¡  || _d S ©N)Úsuperr
   Ú__init__Ú
_numbering)r   Únumbering_elm©Ú	__class__r   r   r      s   
z_NumberingDefinitions.__init__c                 C   s   t | jjƒS r   )Úlenr   Únum_lstr   r   r   r   Ú__len__    s   z_NumberingDefinitions.__len__)r   r   r   r   r   r   Ú__classcell__r   r   r   r   r
      s    r
   N)r   Úopc.partr   Úsharedr   r   r
   r   r   r   r   Ú<module>   s
    