
    i                        S r SSKJr  SSKrSSKJrJr  SSKJr  SSK	J
r
  SSKJr  SSKJr  SS	KJr  SS
KJr  SSKJr  SSKJr  \(       a  SS	KJr  SSKJr   " S S\5      rg)z(Contains comments added to the document.    )annotationsN)TYPE_CHECKINGcast)Self)Comments)CONTENT_TYPE)PackURI)CT_Comments)	parse_xml)Package)	StoryPartc                  |   ^  \ rS rSrSr        SU 4S jjr\S	S j5       r\S
S j5       r	\SS j5       r
SrU =r$ )CommentsPart   z2Container part for comments added to the document.c                2   > [         TU ]  XX45        X0l        g )N)super__init__	_comments)selfpartnamecontent_typeelementpackage	__class__s        S/var/www/html/banglarbhumi/venv/lib/python3.13/site-packages/docx/parts/comments.pyr   CommentsPart.__init__   s     	B     c                .    [        U R                  U 5      $ )zIA |Comments| proxy object for the `w:comments` root element of this part.)r   r   )r   s    r   commentsCommentsPart.comments    s     --r   c                    [        S5      n[        R                  n[        S[	        U R                  5       5      5      nU " X#XA5      $ )zOA newly created comments part, containing a default empty `w:comments` element.z/word/comments.xmlr
   )r	   CTWML_COMMENTSr   r   _default_comments_xml)clsr   r   r   r   s        r   defaultCommentsPart.default%   s?     /0}i0I0I0K&LM87<<r   c                    [         R                  R                  [         R                  R                  [        5      S   SSS5      n[        US5       nUR                  5       nSSS5        U$ ! , (       d  f       W$ = f)z9A byte-string containing XML for a default comments part.r   z..	templateszdefault-comments.xmlrbN)ospathjoinsplit__file__openread)r%   r,   f	xml_bytess       r   r$   "CommentsPart._default_comments_xml-   s`     ww||BGGMM(3A6kKab$I  s   A..
A=)r   )r   r	   r   strr   r
   r   r   )returnr   )r   r   r6   r   )r6   bytes)__name__
__module____qualname____firstlineno____doc__r   propertyr   classmethodr&   r$   __static_attributes____classcell__)r   s   @r   r   r      sg    <!!/2!=H!SZ! . . = =  r   r   )r<   
__future__r   r+   typingr   r   typing_extensionsr   docx.commentsr   docx.opc.constantsr   r"   docx.opc.packurir	   docx.oxml.commentsr
   docx.oxml.parserr   docx.packager   docx.parts.storyr   r    r   r   <module>rL      s>    . " 	 & " " 1 $ * &   &.$9 r   