
    liS                    ~    d Z ddlmZ ddlZddlmZ ddlmZ	 ddl
mZ ddlmZ ddlmZ erdd	lmZ  G d
 de      Zy)zLCore properties part, corresponds to ``/docProps/core.xml`` part in package.    )annotationsN)TYPE_CHECKING)CONTENT_TYPE)XmlPart)PackURI)CT_CoreProperties)Packagec                     e Zd ZU dZded<   ed%d       Zed&d       Zej                  d'd       Zed&d       Z
e
j                  d'd       Z
ed&d	       Zej                  d'd
       Zed&d       Zej                  d'd       Zed        Zej                  d(d       Zed&d       Zej                  d'd       Zed&d       Zej                  d'd       Zed&d       Zej                  d'd       Zed&d       Zej                  d'd       Zed        Zej                  d(d       Zed        Zej                  d(d       Zed        Zej                  d)d       Zed&d       Zej                  d'd       Zed&d       Zej                  d'd        Zed&d!       Zej                  d'd"       Zed*d#       Zy$)+CorePropertiesPartzzCorresponds to part named `/docProps/core.xml`.

    Contains the core document properties for this document package.
    r   _elementc                    | j                  |      }d|_        d|_        d|_        t        j
                  j                  t        j                  j                        j                  d      |_
        |S )zReturn default new |CorePropertiesPart| instance suitable as starting point.

        This provides a base for adding core-properties to a package that doesn't yet
        have any.
        zPowerPoint Presentationzpython-pptx   N)tzinfo)_newtitlelast_modified_byrevisiondtdatetimenowtimezoneutcreplacemodified)clspackage
core_propss      R/var/www/html/eduruby.in/venv/lib/python3.12/site-packages/pptx/parts/coreprops.pydefaultzCorePropertiesPart.default   s[     XXg&
4
&3
#
 kkoobkkoo>FFdFS
    c                .    | j                   j                  S Nr   author_textselfs    r   authorzCorePropertiesPart.author'   s    }}(((r    c                &    || j                   _        y r"   r#   r&   values     r   r'   zCorePropertiesPart.author+   s    $)!r    c                .    | j                   j                  S r"   r   category_textr%   s    r   categoryzCorePropertiesPart.category/       }}***r    c                &    || j                   _        y r"   r,   r)   s     r   r.   zCorePropertiesPart.category3       &+#r    c                .    | j                   j                  S r"   r   comments_textr%   s    r   commentszCorePropertiesPart.comments7   r/   r    c                &    || j                   _        y r"   r3   r)   s     r   r5   zCorePropertiesPart.comments;   r1   r    c                .    | j                   j                  S r"   r   contentStatus_textr%   s    r   content_statusz!CorePropertiesPart.content_status?   s    }}///r    c                &    || j                   _        y r"   r8   r)   s     r   r:   z!CorePropertiesPart.content_statusC   s    +0(r    c                .    | j                   j                  S r"   r   created_datetimer%   s    r   createdzCorePropertiesPart.createdG   s    }}---r    c                &    || j                   _        y r"   r=   r)   s     r   r?   zCorePropertiesPart.createdK   s    ).&r    c                .    | j                   j                  S r"   r   identifier_textr%   s    r   
identifierzCorePropertiesPart.identifierO       }},,,r    c                &    || j                   _        y r"   rB   r)   s     r   rD   zCorePropertiesPart.identifierS       (-%r    c                .    | j                   j                  S r"   r   keywords_textr%   s    r   keywordszCorePropertiesPart.keywordsW   r/   r    c                &    || j                   _        y r"   rI   r)   s     r   rK   zCorePropertiesPart.keywords[   r1   r    c                .    | j                   j                  S r"   r   language_textr%   s    r   languagezCorePropertiesPart.language_   r/   r    c                &    || j                   _        y r"   rN   r)   s     r   rP   zCorePropertiesPart.languagec   r1   r    c                .    | j                   j                  S r"   r   lastModifiedBy_textr%   s    r   r   z#CorePropertiesPart.last_modified_byg   s    }}000r    c                &    || j                   _        y r"   rS   r)   s     r   r   z#CorePropertiesPart.last_modified_byk   s    ,1)r    c                .    | j                   j                  S r"   r   lastPrinted_datetimer%   s    r   last_printedzCorePropertiesPart.last_printedo   s    }}111r    c                &    || j                   _        y r"   rW   r)   s     r   rY   zCorePropertiesPart.last_printeds   s    -2*r    c                .    | j                   j                  S r"   r   modified_datetimer%   s    r   r   zCorePropertiesPart.modifiedw   s    }}...r    c                &    || j                   _        y r"   r\   r)   s     r   r   zCorePropertiesPart.modified{   s    */'r    c                .    | j                   j                  S r"   r   revision_numberr%   s    r   r   zCorePropertiesPart.revision   rE   r    c                &    || j                   _        y r"   r`   r)   s     r   r   zCorePropertiesPart.revision   rG   r    c                .    | j                   j                  S r"   r   subject_textr%   s    r   subjectzCorePropertiesPart.subject       }})))r    c                &    || j                   _        y r"   rd   r)   s     r   rf   zCorePropertiesPart.subject       %*"r    c                .    | j                   j                  S r"   r   
title_textr%   s    r   r   zCorePropertiesPart.title   s    }}'''r    c                &    || j                   _        y r"   rk   r)   s     r   r   zCorePropertiesPart.title   s    #( r    c                .    | j                   j                  S r"   r   version_textr%   s    r   versionzCorePropertiesPart.version   rg   r    c                &    || j                   _        y r"   ro   r)   s     r   rq   zCorePropertiesPart.version   ri   r    c                p    t        t        d      t        j                  |t	        j
                               S )z/Return new empty |CorePropertiesPart| instance.z/docProps/core.xml)r   r   CTOPC_CORE_PROPERTIESr   new_coreProperties)r   r   s     r   r   zCorePropertiesPart._new   s2     "()""002	
 	
r    N)r   r	   )returnstr)r*   rx   )r*   zdt.datetime)r*   int)r   r	   rw   r   )__name__
__module____qualname____doc____annotations__classmethodr   propertyr'   setterr.   r5   r:   r?   rD   rK   rP   r   rY   r   r   rf   r   rq   r    r    r   r   r      s   
    ) ) ]]* * + + __, , + + __, , 0 0 1 1 . . ^^/ / - - . . + + __, , + + __, , 1 1 2 2 2 2 3 3 / / __0 0 - - __. . * * ^^+ + ( ( \\) ) * * ^^+ + 
 
r    r   )r}   
__future__r   r   r   typingr   pptx.opc.constantsr   rt   pptx.opc.packager   pptx.opc.packurir   pptx.oxml.corepropsr   pptx.packager	   r   r   r    r   <module>r      s1    R "    1 $ $ 1$V
 V
r    