o
    7 h,                     @  s   d Z ddlmZ ddlmZmZ ddlmZ ddlm	Z	 ddl
mZ ddlmZmZ ddlmZmZmZmZ er>dd	l
mZ G d
d deZG dd deZG dd deZG dd deZdS )zLlxml custom element classes for XML elements related to the Connector shape.    )annotations)TYPE_CHECKINGcast)	parse_xml)nsdecls)BaseShapeElement)ST_DrawingElementIdXsdUnsignedInt)BaseOxmlElementOneAndOnlyOneRequiredAttribute	ZeroOrOne)CT_ShapePropertiesc                   @  s$   e Zd ZdZedeZedeZdS )CT_ConnectionzA `a:stCxn` or `a:endCxn` element.

    Specifies a connection between an end-point of a connector and a shape connection point.
    ididxN)	__name__
__module____qualname____doc__r   r   r   r	   r    r   r   b/var/www/html/figdemos/bartoux_crm/venv/lib/python3.10/site-packages/pptx/oxml/shapes/connector.pyr      s    
r   c                   @  s>   e Zd ZU dZdZedZedZded< [e	dddZ
dS )CT_Connectorz(A line/connector shape `p:cxnSp` element)p:nvCxnSpPrp:spPrzp:stylezp:extLstr   r   r   spPrid_intnamestrprstxycxcyflipHboolflipVreturnc
                 C  sd   |rdnd|	r	dnd }
t ttdtdd d| d| d	|
 d
| d| d| d| d| dS )zCReturn a new `p:cxnSp` element tree configured as a base connector.z
 flipH="1" z
 flipV="1"z	<p:cxnSp apz#>
  <p:nvCxnSpPr>
    <p:cNvPr id="z" name="zM"/>
    <p:cNvCxnSpPr/>
    <p:nvPr/>
  </p:nvCxnSpPr>
  <p:spPr>
    <a:xfrmz>
      <a:off x="z" y="z"/>
      <a:ext cx="z" cy="z("/>
    </a:xfrm>
    <a:prstGeom prst="a  ">
      <a:avLst/>
    </a:prstGeom>
  </p:spPr>
  <p:style>
    <a:lnRef idx="2">
      <a:schemeClr val="accent1"/>
    </a:lnRef>
    <a:fillRef idx="0">
      <a:schemeClr val="accent1"/>
    </a:fillRef>
    <a:effectRef idx="1">
      <a:schemeClr val="accent1"/>
    </a:effectRef>
    <a:fontRef idx="minor">
      <a:schemeClr val="tx1"/>
    </a:fontRef>
  </p:style>
</p:cxnSp>)r   r   r   r   )clsr   r   r    r!   r"   r#   r$   r%   r'   Zflipr   r   r   	new_cxnSp#   s.   		zCT_Connector.new_cxnSpN)r   r   r   r   r    r   r!   r   r"   r   r#   r   r$   r   r%   r&   r'   r&   r(   r   )r   r   r   r   _tag_seqr   Z	nvCxnSpPrr   __annotations__classmethodr-   r   r   r   r   r      s   
 r   c                   @  s(   e Zd ZdZedZedZedZdS )CT_ConnectorNonVisualzs
    `p:nvCxnSpPr` element, container for the non-visual properties of
    a connector, such as name, id, etc.
    zp:cNvPrzp:cNvCxnSpPrzp:nvPrN)r   r   r   r   r   cNvPrZ
cNvCxnSpPrnvPrr   r   r   r   r1   W   s
    r1   c                   @  s>   e Zd ZdZdZededd dZededd dZ[dS )	CT_NonVisualConnectorPropertiesz
    `p:cNvCxnSpPr` element, container for the non-visual properties specific
    to a connector shape, such as connections and connector locking.
    )za:cxnSpLocksa:stCxna:endCxnza:extLstr5      N)
successorsr6      )r   r   r   r   r.   r   ZstCxnZendCxnr   r   r   r   r4   b   s    r4   N)r   
__future__r   typingr   r   	pptx.oxmlr   pptx.oxml.nsr   pptx.oxml.shapes.sharedr   pptx.oxml.simpletypesr   r	   pptx.oxml.xmlchemyr
   r   r   r   r   r   r   r1   r4   r   r   r   r   <module>   s    
<