
    fh                           G d  d          Z dS )c                       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dS )CommentNO      c                 >    || _         || _        || _        || _        d S N)contentauthorheightwidth)selftextr	   r
   r   s        Q/var/www/histauto/venv/lib/python3.11/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                 B    | j         |j         k    o| j        |j        k    S r   )r   r	   )r   others     r   __eq__zComment.__eq__   s$    LEM) ,u|+	
r   c                 B    d                     | j        | j                  S )NzComment: {0} by {1})formatr   r	   r   s    r   __repr__zComment.__repr__   s    $++DL$+FFFr   c                 ^    |                      | 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[$+tzRRr   c                     |F| j         ?| j         |k    r4d}t          |                    |j        |j        j                            || _         dS )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$   sP      8T\T=Q=QsC DOT[=N!O!OPPPr   c                     d| _         dS )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                     || _         d S r   r*   )r   values     r   r   zComment.text<   s    r   )r   r   )__name__
__module____qualname__r   r   propertyr   r   r   r   r&   r(   r   setter r   r   r   r      s        G      X
 
 
G G G         X 
[  [  r   r   N)r   r2   r   r   <module>r3      s7   : : : : : : : : : :r   