
    ,h                     F    d Z ddlmZ ddlmZmZ ddlmZ  G d de      Zy)zMain presentation object.    )PartElementProxy)SlideMastersSlides)lazypropertyc                       e Zd ZdZed        Zed        Zd Zed        Zej                  d        Zed        Z
ed        Zed	        Zed
        Zej                  d        Zed        Zy)PresentationzPresentationML (PML) presentation.

    Not intended to be constructed directly. Use :func:`pptx.Presentation` to open or
    create a presentation.
    c                 .    | j                   j                  S )z
        Instance of |CoreProperties| holding the read/write Dublin Core
        document properties for this presentation.
        )partcore_propertiesselfs    S/var/www/html/Resume-Scraper/venv/lib/python3.12/site-packages/pptx/presentation.pyr   zPresentation.core_properties   s     yy(((    c                 .    | j                   j                  S )z
        Instance of |NotesMaster| for this presentation. If the presentation
        does not have a notes master, one is created from a default template
        and returned. The same single instance is returned on each call.
        )r
   notes_masterr   s    r   r   zPresentation.notes_master   s     yy%%%r   c                 :    | j                   j                  |       y)z
        Save this presentation to *file*, where *file* can be either a path
        to a file (a string) or a file-like object.
        N)r
   save)r   files     r   r   zPresentation.save"   s    
 			tr   c                 L    | j                   j                  }|y|j                  S )z
        Height of slides in this presentation, in English Metric Units (EMU).
        Returns |None| if no slide width is defined. Read/write.
        N)_elementsldSzcyr   r   s     r   slide_heightzPresentation.slide_height)   $     ##=xxr   c                 F    | j                   j                         }||_        y N)r   get_or_add_sldSzr   )r   heightr   s      r   r   zPresentation.slide_height4   s    ..0r   c                 4    | j                   d   j                  S )a_  
        Sequence of |SlideLayout| instances belonging to the first
        |SlideMaster| of this presentation. A presentation can have more than
        one slide master and each master will have its own set of layouts.
        This property is a convenience for the common case where the
        presentation has only a single slide master.
        r   )slide_mastersslide_layoutsr   s    r   r"   zPresentation.slide_layouts9   s     !!!$222r   c                      | j                   d   S )z
        First |SlideMaster| object belonging to this presentation. Typically,
        presentations have only a single slide master. This property provides
        simpler access in that common case.
        r   )r!   r   s    r   slide_masterzPresentation.slide_masterD   s     !!!$$r   c                 J    t        | j                  j                         |       S )zR
        Sequence of |SlideMaster| objects belonging to this presentation
        )r   r   get_or_add_sldMasterIdLstr   s    r   r!   zPresentation.slide_mastersM   s    
 DMMCCEtLLr   c                 L    | j                   j                  }|y|j                  S )z
        Width of slides in this presentation, in English Metric Units (EMU).
        Returns |None| if no slide width is defined. Read/write.
        N)r   r   cxr   s     r   slide_widthzPresentation.slide_widthT   r   r   c                 F    | j                   j                         }||_        y r   )r   r   r(   )r   widthr   s      r   r)   zPresentation.slide_width_   s    ..0r   c                     | j                   j                         }| j                  j                  |D cg c]  }|j                   c}       t        ||       S c c}w )zM
        |Slides| object containing the slides in this presentation.
        )r   get_or_add_sldIdLstr
   rename_slide_partsrIdr   )r   sldIdLstsldIds      r   slideszPresentation.slidesd   sJ    
 ==446		$$X%FEeii%FGh%% &Gs   AN)__name__
__module____qualname____doc__propertyr   r   r   r   setterr"   r$   r   r!   r)   r2    r   r   r   r   
   s     ) ) & &     3 3 % % M M     & &r   r   N)	r6   pptx.sharedr   
pptx.slider   r   	pptx.utilr   r   r9   r   r   <module>r=      s"      ( + "a&# a&r   