o
    ÞÏÞTÎ  ã                   @   sX   d Z ddlmZmZmZmZ ddlmZ ddlm	Z	 G dd„ deƒZ
G dd	„ d	eƒZd
S )z-
|NumberingPart| and closely related objects
é    )Úabsolute_importÚdivisionÚprint_functionÚunicode_literalsé   )ÚXmlPart)Úlazypropertyc                   @   s(   e Zd ZdZedd„ ƒZedd„ ƒZdS )ÚNumberingPartzk
    Proxy for the numbering.xml part containing numbering definitions for
    a document or glossary.
    c                 C   s   t ‚)zx
        Return newly created empty numbering part, containing only the root
        ``<w:numbering>`` element.
        )ÚNotImplementedError)Úcls© r   úDD:\Projects\ConvertPro\env\Lib\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.
        )Ú_NumberingDefinitionsZ_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   z{
    Collection of |_NumberingDefinition| instances corresponding to the
    ``<w:num>`` elements in a numbering part.
    c                    s   t t| ƒ ¡  || _d S ©N)Úsuperr   Ú__init__Ú
_numbering)r   Znumbering_elm©Ú	__class__r   r   r   *   s   
z_NumberingDefinitions.__init__c                 C   s   t | jjƒS r   )Úlenr   Z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   Z
__future__r   r   r   r   Zopc.partr   Úsharedr   r	   Úobjectr   r   r   r   r   Ú<module>   s   