
    ,h
                         d Z ddlmZ ddlmZ ddlmZ  G d de      Z G d de      Z	 G d	 d
e      Z
 G d de      Zy)zxEmbedded Package part objects.

"Package" in this context means another OPC package, i.e. a DOCX, PPTX, or XLSX "file".
    )PROG_ID)CONTENT_TYPE)Partc                   0    e Zd ZdZed        Zed        Zy)EmbeddedPackagePartzA distinct OPC package, e.g. an Excel file, embedded in this PPTX package.

    Has a partname like: `ppt/embeddings/Microsoft_Excel_Sheet1.xlsx`.
    c                    |t         vr( | |j                  d      t        j                  ||      S t         j                  t
        t         j                  t        t         j                  t        i|   }|j                  ||      S )aU  Return a new |EmbeddedPackagePart| subclass instance added to *package*.

        The subclass is determined by `prog_id` which corresponds to the "application"
        used to open the "file-type" of `object_blob`. The returned part contains the
        bytes of `object_blob` and has the content-type also determined by `prog_id`.
        z/ppt/embeddings/oleObject%d.bin)r   next_partnameCTOFC_OLE_OBJECTDOCXEmbeddedDocxPartPPTXEmbeddedPptxPartXLSXEmbeddedXlsxPartnew)clsprog_idobject_blobpackageEmbeddedPartClss        \/var/www/html/Resume-Scraper/venv/lib/python3.12/site-packages/pptx/parts/embeddedpackage.pyfactoryzEmbeddedPackagePart.factory   s}     '!%%&GH!!	  LL*LL*LL*
 	 "";88    c                 ^     | |j                  | j                        | j                  ||      S )zReturn new |EmbeddedPackagePart| subclass object.

        The returned part object contains `blob` and is added to `package`.
        )r	   partname_templatecontent_type)r   blobr   s      r   r   zEmbeddedPackagePart.new-   s4     !!#"7"78	
 	
r   N)__name__
__module____qualname____doc__classmethodr   r    r   r   r   r      s/    
 9 92 

 

r   r   c                   ,    e Zd ZdZdZej                  Zy)r   zA Word .docx file stored in a part.

    This part-type arises when a Word document appears as an embedded OLE-object shape.
    z./ppt/embeddings/Microsoft_Word_Document%d.docxN)r   r    r!   r"   r   r
   WML_DOCUMENTr   r$   r   r   r   r   ;   s    
 I??Lr   r   c                   ,    e Zd ZdZdZej                  Zy)r   zA PowerPoint file stored in a part.

    This part-type arises when a PowerPoint presentation (.pptx file) appears as an
    embedded OLE-object shape.
    z8/ppt/embeddings/Microsoft_PowerPoint_Presentation%d.pptxN)r   r    r!   r"   r   r
   PML_PRESENTATIONr   r$   r   r   r   r   E   s     S&&Lr   r   c                   ,    e Zd ZdZdZej                  Zy)r   zAn Excel file stored in a part.

    This part-type arises as the data source for a chart, but may also be the OLE-object
    for an embedded object shape.
    z,/ppt/embeddings/Microsoft_Excel_Sheet%d.xlsxN)r   r    r!   r"   r   r
   	SML_SHEETr   r$   r   r   r   r   P   s     G<<Lr   r   N)r"   pptx.enum.shapesr   pptx.opc.constantsr   r
   pptx.opc.packager   r   r   r   r   r$   r   r   <module>r.      sI   
 % 1 !+
$ +
\#* #'* ' *  r   