Ë
    œ…jï  ã                  óR   — d Z ddlmZ ddlmZ ddlmZ ddlmZm	Z	  G d„ de
«      Zy)	z-DrawingML objects related to line formatting.é    )Úannotations)Ú
FillFormat)ÚMSO_FILL)ÚEmuÚlazypropertyc                  óÀ   ‡ — e Zd ZdZˆ fd„Zed„ «       Zed„ «       Zej                  d„ «       Zed„ «       Z
ed„ «       Zej                  d„ «       Zd	„ Zed
„ «       Zˆ xZS )Ú
LineFormatz¿Provides access to line properties such as color, style, and width.

    A LineFormat object is typically accessed via the ``.line`` property of
    a shape such as |Shape| or |Picture|.
    c                ó8   •— t         t        | �  «        || _        y ©N)Úsuperr	   Ú__init__Ú_parent)ÚselfÚparentÚ	__class__s     €úN/root/aria/tools/markitdown-venv/lib/python3.12/site-packages/pptx/dml/line.pyr   zLineFormat.__init__   s   ø€ ÜŒj˜$Ñ(Ô*Øˆ�ó    c                ó°   — | j                   j                  t        j                  k7  r| j                   j	                  «        | j                   j
                  S )a�  
        The |ColorFormat| instance that provides access to the color settings
        for this line. Essentially a shortcut for ``line.fill.fore_color``.
        As a side-effect, accessing this property causes the line fill type
        to be set to ``MSO_FILL.SOLID``. If this sounds risky for your use
        case, use ``line.fill.type`` to non-destructively discover the
        existing fill type.
        )ÚfillÚtyper   ÚSOLIDÚsolidÚ
fore_color©r   s    r   ÚcolorzLineFormat.color   s6   € ð �9‰9�>‰>œXŸ^™^Ò+Ø�I‰I�O‰OÔØ�y‰y×#Ñ#Ð#r   c                ó8   — | j                   }|€y|j                  S )ac  Return value indicating line style.

        Returns a member of :ref:`MsoLineDashStyle` indicating line style, or
        |None| if no explicit value has been set. When no explicit value has
        been set, the line dash style is inherited from the style hierarchy.

        Assigning |None| removes any existing explicitly-defined dash style.
        N)Ú_lnÚprstDash_val©r   Úlns     r   Ú
dash_stylezLineFormat.dash_style#   s   € ð �X‰XˆØˆ:ØØ�‰Ðr   c                ó–   — |€0| j                   }|€y |j                  «        |j                  «        y | j                  «       }||_        y r   )r   Ú_remove_prstDashÚ_remove_custDashÚ_get_or_add_lnr   )r   r!   r    s      r   r!   zLineFormat.dash_style2   sI   € àÐØ—‘ˆBØˆzØØ×ÑÔ!Ø×ÑÔ!ØØ× Ñ Ó"ˆØ$ˆ�r   c                óL   — | j                  «       }t        j                  |«      S )z|
        |FillFormat| instance for this line, providing access to fill
        properties such as foreground color.
        )r%   r   Úfrom_fill_parentr   s     r   r   zLineFormat.fill>   s#   € ð × Ñ Ó"ˆÜ×*Ñ*¨2Ó.Ð.r   c                óL   — | j                   }|€t        d«      S |j                  S )a'  
        The width of the line expressed as an integer number of :ref:`English
        Metric Units <EMU>`. The returned value is an instance of |Length|,
        a value class having properties such as `.inches`, `.cm`, and `.pt`
        for converting the value into convenient units.
        r   )r   r   Úwr   s     r   ÚwidthzLineFormat.widthG   s$   € ð �X‰XˆØˆ:Ü�q“6ˆMØ�t‰tˆr   c                ó:   — |€d}| j                  «       }||_        y )Nr   )r%   r)   )r   Úemur    s      r   r*   zLineFormat.widthT   s!   € àˆ;ØˆCØ× Ñ Ó"ˆØˆ�r   c                ó6   — | j                   j                  «       S )zi
        Return the ``<a:ln>`` element containing the line format properties
        in the XML.
        )r   Úget_or_add_lnr   s    r   r%   zLineFormat._get_or_add_ln[   s   € ð
 �|‰|×)Ñ)Ó+Ð+r   c                ó.   — | j                   j                  S r   )r   r    r   s    r   r   zLineFormat._lnb   s   € à�|‰|�‰Ðr   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   Úpropertyr!   Úsetterr   r*   r%   r   Ú__classcell__)r   s   @r   r	   r	   
   s¨   ø„ ñôð ñ$ó ð$ð ñó ðð ×Ññ	%ó ð	%ð ñ/ó ð/ð ñ
ó ð
ð ‡\�\ñó ðò,ð ñó ôr   r	   N)r3   Ú
__future__r   Úpptx.dml.fillr   Úpptx.enum.dmlr   Ú	pptx.utilr   r   Úobjectr	   © r   r   ú<module>r=      s"   ðÙ 3å "å $Ý "ß 'ôZ�õ Zr   