
    Տkh                        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 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)CoreProperties)PackURI)XmlPart)CT_CoreProperties)
OpcPackagec                  D    e Zd ZdZedd       Zed        Zedd       Zy)CorePropertiesPartzCorresponds to part named ``/docProps/core.xml``.

    The "core" is short for "Dublin Core" and contains document metadata relatively common across
    documents of all types, not just DOCX.
    c                    | j                  |      }|j                  }d|_        d|_        d|_        t
        j                  j                  t
        j                  j                        |_
        |S )ziReturn a new |CorePropertiesPart| object initialized with default values for
        its base properties.zWord Documentzpython-docx   )_newcore_propertiestitlelast_modified_byrevisiondtdatetimenowtimezoneutcmodified)clspackagecore_properties_partr   s       T/var/www/teggl/fontify/venv/lib/python3.12/site-packages/docx/opc/parts/coreprops.pydefaultzCorePropertiesPart.default   sY      #xx0.>> /+8(#$ #%;;??2;;??#C ##    c                ,    t        | j                        S )z|A |CoreProperties| object providing read/write access to the core properties
        contained in this core properties part.)r   element)selfs    r   r   z"CorePropertiesPart.core_properties%   s     dll++r   c                |    t        d      }t        j                  }t        j                         }t        ||||      S )Nz/docProps/core.xml)r   CTOPC_CORE_PROPERTIESr	   newr   )r   r   partnamecontent_typecorePropertiess        r   r   zCorePropertiesPart._new+   s7    /0--*..0!(L.'RRr   N)r   r
   )r   r
   returnr   )	__name__
__module____qualname____doc__classmethodr   propertyr   r    r   r   r   r      sE     	$ 	$ , ,
 S Sr   r   )r.   
__future__r   r   r   typingr   docx.opc.constantsr   r$   docx.opc.corepropsr   docx.opc.packurir   docx.opc.partr   docx.oxml.corepropsr	   docx.opc.packager
   r   r1   r   r   <module>r:      s4    R "    1 - $ ! 1+S Sr   