
    hi,                        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e          Z G d de          Z G d de          Z G 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                  B    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/var/www/development/aibuddy-work/election-extract/venv/lib/python3.11/site-packages/pptx/oxml/shapes/connector.pyr   r      s?         
 
	4!4	5	5B

E>
2
2CCCr   r   c                  h    e Zd ZU dZdZ ed          Z ed          Zded<   [e	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
                    |rdnd|	rdndz   }
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+   flips              r   	new_cxnSpzCT_Connector.new_cxnSp#   s     !&-2%2O,,RPGC--  $' 15  #  $%  ,-  %'  /1  *.   "
 "
 "	
r   N)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   	nvCxnSpPrr   __annotations__classmethodr3   r   r   r   r   r      sl         22?Hm,,I,}X66D66660
 0
 0
 [0
 0
 0
r   r   c                  T    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   cNvPr
cNvCxnSpPrnvPrr   r   r   r9   r9   W   sG         
 M)$$E~..J=""DDDr   r9   c                  l    e Zd ZdZdZ ededd                   Z ede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:extLstr?      N)
successorsr@      )r   r   r   r   r4   r   stCxnendCxnr   r   r   r>   r>   b   s[         
 CHIiHQRRL999EYzhqrrl;;;Fr   r>   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   r9   r>   r   r   r   <module>rM      sv   R R " " " " " " & & & & & & & &                   4 4 4 4 4 4 E E E E E E E E [ [ [ [ [ [ [ [ [ [ [ [ ;::::::3 3 3 3 3$ 3 3 39
 9
 9
 9
 9
# 9
 9
 9
x# # # # #O # # #	 	 	 	 	o 	 	 	 	 	r   