B
    ÞÏÞ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 ‚dS )zx
        Return newly created empty numbering part, containing only the root
        ``<w:numbering>`` element.
        N)ÚNotImplementedError)Úcls© r   úF/var/www/html/venv/lib/python3.7/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 )N)Úlenr   Znum_lst)r   r   r   r   Ú__len__.   s    z_NumberingDefinitions.__len__)r   r   r   r   r   r   Ú__classcell__r   r   )r   r   r   %   s   r   N)r   Ú
__future__r   r   r   r   Zopc.partr   Úsharedr   r	   Úobjectr   r   r   r   r   Ú<module>   s
   