
    ,h!
                     V    d Z ddlmZ  G d de      Z G d de      Z G d de      Zy	)
zObjects shared by pptx modules.    )unicode_literalsc                   2    e Zd ZdZd Zd Zd Zed        Zy)ElementProxya0  
    Base class for lxml element proxy classes. An element proxy class is one
    whose primary responsibilities are fulfilled by manipulating the
    attributes and child elements of an XML element. They are the most common
    type of class in python-pptx other than custom element (oxml) classes.
    c                     || _         y N_element)selfelements     M/var/www/html/Resume-Scraper/venv/lib/python3.12/site-packages/pptx/shared.py__init__zElementProxy.__init__   s	        c                 T    t        |t              sy| j                  |j                  u S )a\  
        Return |True| if this proxy object refers to the same oxml element as
        does *other*. ElementProxy objects are value objects and should
        maintain no mutable local state. Equality for proxy objects is
        defined as referring to the same XML element, whether or not they are
        the same proxy object instance.
        F
isinstancer   r	   r
   others     r   __eq__zElementProxy.__eq__   s$     %.}}..r   c                 T    t        |t              sy| j                  |j                  uS )NTr   r   s     r   __ne__zElementProxy.__ne__   s"    %.}}ENN22r   c                     | j                   S )z:
        The lxml element proxied by this object.
        r   r
   s    r   r   zElementProxy.element$   s    
 }}r   N)	__name__
__module____qualname____doc__r   r   r   propertyr    r   r   r   r      s*     
/3
  r   r   c                   B     e Zd ZdZ fdZed        Zed        Z xZS )ParentedElementProxya-  
    Provides common services for document elements that occur below a part
    but may occasionally require an ancestor object to provide a service,
    such as add or drop a relationship. Provides the :attr:`_parent`
    attribute to subclasses and the public :attr:`parent` read-only property.
    c                 :    t         t        |   |       || _        y r   )superr    r   _parent)r
   r   parent	__class__s      r   r   zParentedElementProxy.__init__4   s    "D27;r   c                     | j                   S )z
        The ancestor proxy object to this one. For example, the parent of
        a shape is generally the |SlideShapes| object that contains it.
        )r#   r   s    r   r$   zParentedElementProxy.parent8   s     ||r   c                 .    | j                   j                  S z9
        The package part containing this object
        )r#   partr   s    r   r)   zParentedElementProxy.part@   s    
 ||   r   )	r   r   r   r   r   r   r$   r)   __classcell__r%   s   @r   r    r    ,   s5       ! !r   r    c                   2     e Zd ZdZ fdZed        Z xZS )PartElementProxyzm
    Provides common members for proxy objects that wrap the root element of
    a part such as `p:sld`.
    c                 :    t         t        |   |       || _        y r   )r"   r-   r   _part)r
   r   r)   r%   s      r   r   zPartElementProxy.__init__N   s    .w7
r   c                     | j                   S r(   )r/   r   s    r   r)   zPartElementProxy.partR   s    
 zzr   )r   r   r   r   r   r   r)   r*   r+   s   @r   r-   r-   H   s!    
  r   r-   N)r   
__future__r   objectr   r    r-   r   r   r   <module>r3      s2    & '!6 !H!< !8| r   