
]c           @@  s*   d  d l  m Z d e f d     YZ d S(   i    (   t   absolute_importt   Commentc           B@  sz   e  Z d Z d  d d  Z e d    Z d   Z d   Z d   Z	 d   Z
 d   Z e d	    Z e j d
    Z RS(   iO   i   c         C@  s(   | |  _  | |  _ | |  _ | |  _ d  S(   N(   t   contentt   authort   heightt   width(   t   selft   textR   R   R   (    (    s9   lib/python2.7/site-packages/openpyxl/comments/comments.pyt   __init__   s    			c         C@  s   |  j  S(   N(   t   _parent(   R   (    (    s9   lib/python2.7/site-packages/openpyxl/comments/comments.pyt   parent   s    c         C@  s"   |  j  | j  k o! |  j | j k S(   N(   R   R   (   R   t   other(    (    s9   lib/python2.7/site-packages/openpyxl/comments/comments.pyt   __eq__   s    c         C@  s   d j  |  j |  j  S(   Ns   Comment: {0} by {1}(   t   formatR   R   (   R   (    (    s9   lib/python2.7/site-packages/openpyxl/comments/comments.pyt   __repr__   s    c         C@  s(   |  j  |  j |  j |  j |  j  } | S(   s'   Create a detached copy of this comment.(   t	   __class__R   R   R   R   (   R   t   clone(    (    s9   lib/python2.7/site-packages/openpyxl/comments/comments.pyt   __copy__   s    $c         C@  sa   | d k	 rT |  j d k	 rT |  j | k rT d } t | j | j | j j    n  | |  _ d S(   s3   
        Bind comment to a particular cell
        s_   Comment already assigned to {0} in worksheet {1}. Cannot assign a comment to more than one cellN(   t   NoneR	   t   AttributeErrorR   t
   coordinateR
   t   title(   R   t   cellt   fmt(    (    s9   lib/python2.7/site-packages/openpyxl/comments/comments.pyt   bind$   s    *$c         C@  s   d |  _ d S(   s.   
        Unbind a comment from a cell
        N(   R   R	   (   R   (    (    s9   lib/python2.7/site-packages/openpyxl/comments/comments.pyt   unbind.   s    c         C@  s   |  j  S(   s>   
        Any comment text stripped of all formatting.
        (   R   (   R   (    (    s9   lib/python2.7/site-packages/openpyxl/comments/comments.pyR   5   s    c         C@  s   | |  _  d  S(   N(   R   (   R   t   value(    (    s9   lib/python2.7/site-packages/openpyxl/comments/comments.pyR   <   s    N(   t   __name__t
   __module__R   R	   R   t   propertyR
   R   R   R   R   R   R   t   setter(    (    (    s9   lib/python2.7/site-packages/openpyxl/comments/comments.pyR      s   				
	N(   t
   __future__R    t   objectR   (    (    (    s9   lib/python2.7/site-packages/openpyxl/comments/comments.pyt   <module>   s   