BYPASS SHELL BY ./RAZORGANZ
Server: nginx/1.20.1
System: Linux iZdzfnv9mwfppeZ 5.10.134-19.2.al8.x86_64 #1 SMP Wed Oct 29 22:47:09 CST 2025 x86_64
User: apache (48)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: //usr/local/lib/python3.6/site-packages/pptx/__pycache__/presentation.cpython-36.pyc
3

Zƍh
�@s@dZddlmZddlmZmZddlmZGdd�de�ZdS)zMain presentation object.�)�PartElementProxy)�SlideMasters�Slides)�lazypropertyc@s�eZdZdZedd��Zedd��Zdd�Zedd	��Zej	d
d	��Zedd��Z
ed
d��Zedd��Z
edd��Zej	dd��Zedd��ZdS)�Presentationz�PresentationML (PML) presentation.

    Not intended to be constructed directly. Use :func:`pptx.Presentation` to open or
    create a presentation.
    cCs|jjS)z�
        Instance of |CoreProperties| holding the read/write Dublin Core
        document properties for this presentation.
        )�part�core_properties)�self�r
�;/usr/local/lib/python3.6/site-packages/pptx/presentation.pyrszPresentation.core_propertiescCs|jjS)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_master)r	r
r
rrszPresentation.notes_mastercCs|jj|�dS)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	�filer
r
rr
"szPresentation.savecCs|jj}|dkrdS|jS)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	rr
r
r�slide_height)szPresentation.slide_heightcCs|jj�}||_dS)N)r�get_or_add_sldSzr)r	�heightrr
r
rr4s
cCs|jdjS)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_layouts)r	r
r
rr9s	zPresentation.slide_layoutscCs
|jdS)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	r
r
r�slide_masterDszPresentation.slide_mastercCst|jj�|�S)zR
        Sequence of |SlideMaster| objects belonging to this presentation
        )rrZget_or_add_sldMasterIdLst)r	r
r
rrMszPresentation.slide_masterscCs|jj}|dkrdS|jS)z�
        Width of slides in this presentation, in English Metric Units (EMU).
        Returns |None| if no slide width is defined. Read/write.
        N)rr�cx)r	rr
r
r�slide_widthTszPresentation.slide_widthcCs|jj�}||_dS)N)rrr)r	�widthrr
r
rr_s
cCs*|jj�}|jjdd�|D��t||�S)zM
        |Slides| object containing the slides in this presentation.
        cSsg|]
}|j�qSr
)ZrId)�.0ZsldIdr
r
r�
<listcomp>jsz'Presentation.slides.<locals>.<listcomp>)rZget_or_add_sldIdLstrZrename_slide_partsr)r	ZsldIdLstr
r
r�slidesds
zPresentation.slidesN)�__name__�
__module__�__qualname__�__doc__�propertyrrr
r�setterrrrrrrr
r
r
rr
s		rN)	r!Zpptx.sharedrZ
pptx.sliderrZ	pptx.utilrrr
r
r
r�<module>s