o
    î`hZ³  ã                   @   sX   d dl mZ d dlmZ d dlmZmZ d dlmZ G dd„ deƒZ	G dd„ deƒZ
d	S )
é    )Úabsolute_import)ÚSerialisable)ÚStringÚSequence)ÚRelationc                   @   s^   e Zd ZdZeƒ Zedd�Zedd�Zedd�Ze	ƒ Z
edd�ZdZ						ddd„ZdS )	Ú	HyperlinkÚ	hyperlinkT)Ú
allow_none)ÚrefÚlocationÚtooltipÚdisplayÚidNc                 C   s(   || _ || _|| _|| _|| _|| _d S ©N)r
   r   r   r   r   Útarget)Úselfr
   r   r   r   r   r   © r   úN/var/www/html/env/lib/python3.10/site-packages/openpyxl/worksheet/hyperlink.pyÚ__init__   s   
zHyperlink.__init__)NNNNNN)Ú__name__Ú
__module__Ú__qualname__Útagnamer   r
   r   r   r   r   r   r   Ú	__attrs__r   r   r   r   r   r      s     



úr   c                   @   s@   e Zd ZdZeed�Zddd„Zdd„ ZeZ	dd	„ Z
d
d„ ZdS )ÚHyperlinkListÚ
hyperlinks)Úexpected_typer   c                 C   s
   || _ d S r   )r   )r   r   r   r   r   r   .   ó   
zHyperlinkList.__init__c                 C   ó
   t | jƒS r   )Úboolr   ©r   r   r   r   Ú__bool__2   r   zHyperlinkList.__bool__c                 C   r   r   )Úlenr   r    r   r   r   Ú__len__8   r   zHyperlinkList.__len__c                 C   s8   | j d d … }| |¡ |jsd t|ƒ¡|_|| _ d S )NzrId{0})r   Úappendr   Úformatr"   )r   ÚvalueÚvaluesr   r   r   r$   <   s
   

zHyperlinkList.appendN)r   )r   r   r   r   r   r   r   r   r!   Ú__nonzero__r#   r$   r   r   r   r   r   (   s    

r   N)Ú
__future__r   Ú!openpyxl.descriptors.serialisabler   Úopenpyxl.descriptorsr   r   Úopenpyxl.descriptors.excelr   r   r   r   r   r   r   Ú<module>   s    