o
    ýÞh»  ã                   @  sx   d Z ddlmZ ddlmZmZ ddlmZmZm	Z	 ddl
mZ ddlmZmZmZ er2ddlmZ G dd	„ d	eƒZd
S )z<Custom element classes related to hyperlinks (CT_Hyperlink).é    )Úannotations)ÚTYPE_CHECKINGÚList)ÚST_OnOffÚ	ST_StringÚ	XsdString)ÚCT_R)ÚBaseOxmlElementÚOptionalAttributeÚ
ZeroOrMore)ÚCT_LastRenderedPageBreakc                   @  sx   e Zd ZU dZded< edeƒZded< edeƒZ	ded< ed	e
d
d�Zded< edƒZeddd„ƒZeddd„ƒZdS )ÚCT_HyperlinkzI`<w:hyperlink>` element, containing the text and address for a hyperlink.z
List[CT_R]Úr_lstzr:idz
str | NoneÚrIdzw:anchorÚanchorz	w:historyT)ÚdefaultÚboolÚhistoryúw:rÚreturnúList[CT_LastRenderedPageBreak]c                 C  s
   |   d¡S )z<All `w:lastRenderedPageBreak` descendants of this hyperlink.z./w:r/w:lastRenderedPageBreak)Úxpath©Úself© r   úX/var/www/html/premium_crap/venv/lib/python3.10/site-packages/docx/oxml/text/hyperlink.pyÚlastRenderedPageBreaks"   s   
z#CT_Hyperlink.lastRenderedPageBreaksÚstrc                 C  s   d  dd„ |  d¡D ƒ¡S )z€The textual content of this hyperlink.

        `CT_Hyperlink` stores the hyperlink-text as one or more `w:r` children.
        Ú c                 s  s   � | ]}|j V  qd S )N)Útext)Ú.0Úrr   r   r   Ú	<genexpr>-   s   € z$CT_Hyperlink.text.<locals>.<genexpr>r   )Újoinr   r   r   r   r   r   '   s   zCT_Hyperlink.textN)r   r   )r   r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú__annotations__r
   r   r   r   r   r   r   r   r!   Úpropertyr   r   r   r   r   r   r      s   
 ÿÿr   N)r'   Ú
__future__r   Útypingr   r   Údocx.oxml.simpletypesr   r   r   Údocx.oxml.text.runr   Údocx.oxml.xmlchemyr	   r
   r   Údocx.oxml.text.pagebreakr   r   r   r   r   r   Ú<module>   s    