
    Mwg                          G d  d      Z y)c                   z    e Zd ZdZddZed        Zd Zd Zd Z	d Z
d Zed	        Zej                  d
        Zy)CommentNc                 <    || _         || _        || _        || _        y N)contentauthorheightwidth)selftextr   r   r	   s        Q/var/www/horilla/myenv/lib/python3.12/site-packages/openpyxl/comments/comments.py__init__zComment.__init__   s    
    c                     | j                   S r   _parentr
   s    r   parentzComment.parent   s    ||r   c                 j    | j                   |j                   k(  xr | j                  |j                  k(  S r   )r   r   )r
   others     r   __eq__zComment.__eq__   s,    LLEMM) ,u||+	
r   c                 N    dj                  | j                  | j                        S )NzComment: {0} by {1})formatr   r   r   s    r   __repr__zComment.__repr__   s    $++DLL$++FFr   c                 ~    | j                  | j                  | j                  | j                  | j                        }|S )z'Create a detached copy of this comment.)	__class__r   r   r   r	   )r
   clones     r   __copy__zComment.__copy__   s+    t||T[[$++tzzRr   c                     |V| j                   J| j                   |k7  r;d}t        |j                  |j                  |j                  j
                              || _         y)z3
        Bind comment to a particular cell
        Nz_Comment already assigned to {0} in worksheet {1}. Cannot assign a comment to more than one cell)r   AttributeErrorr   
coordinater   title)r
   cellfmts      r   bindzComment.bind$   sN      8T\\T=QsC DOOT[[=N=N!OPPr   c                     d| _         y)z.
        Unbind a comment from a cell
        Nr   r   s    r   unbindzComment.unbind.   s     r   c                     | j                   S )z>
        Any comment text stripped of all formatting.
        r   r   s    r   r   zComment.text5   s    
 ||r   c                     || _         y r   r(   )r
   values     r   r   zComment.text<   s	    r   )O      )__name__
__module____qualname__r   r   propertyr   r   r   r   r$   r&   r   setter r   r   r   r      sf    G  
G   
[[ r   r   N)r   r2   r   r   <module>r3      s   : :r   