a
    ]j                     @  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rdd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                   @  s   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dZeddddZdS )CT_HyperlinkzI`<w:hyperlink>` element, containing the text and address for a hyperlink.z
List[CT_R]Zr_lstzr:idz
str | NonerIdzw:anchoranchorz	w:historyT)defaultboolhistoryw:rzList[CT_LastRenderedPageBreak])returnc                 C  s
   |  dS )z<All `w:lastRenderedPageBreak` descendants of this hyperlink.z./w:r/w:lastRenderedPageBreak)xpathself r   T/var/www/html/assistant/venv/lib/python3.9/site-packages/docx/oxml/text/hyperlink.pylastRenderedPageBreaks"   s    z#CT_Hyperlink.lastRenderedPageBreaksstrc                 C  s   d dd | dD S )zThe 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>-       z$CT_Hyperlink.text.<locals>.<genexpr>r   )joinr   r   r   r   r   r   '   s    zCT_Hyperlink.textN)__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   Zdocx.oxml.simpletypesr   r   r   Zdocx.oxml.text.runr   Zdocx.oxml.xmlchemyr	   r
   r   Zdocx.oxml.text.pagebreakr   r   r   r   r   r   <module>   s   