
    Mwg%                     z    d dl mZ d dlmZmZmZmZ d dlmZm	Z	  G d de      Z
 G d de      Z G d d	e      Zy
)    )Serialisable)FloatBoolIntegerNoneSet)UniversalMeasureRelationc                   0    e Zd ZdZdZ ed      Z ed      Z ed      Z	 ed      Z
 ed      Z ed      Z ed      Z ed      Z ed      Z ed      Z ed      Z ed      Z ed      Z ed      Z ed	      Z ed      Z ed      Z ed      Z e       Z	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dd
Zd Zed        Z ed        Z!e!jD                  d        Z!ed        Z#e#jD                  d        Z#e$ fd       Z% xZ&S )PrintPageSetupz Worksheet print page setup 	pageSetup)defaultportrait	landscape)valuesT
allow_none)downThenOveroverThenDown)asDisplayedatEnd)	displayedblankdashNAc                    || _         || _        || _        || _        || _        || _        || _        || _        |	| _        |
| _	        || _
        || _        || _        || _        || _        || _        || _        || _        || _        || _        y N)_parentorientation	paperSizescalefitToHeight
fitToWidthfirstPageNumberuseFirstPageNumberpaperHeight
paperWidth	pageOrderusePrinterDefaultsblackAndWhitedraftcellCommentserrorshorizontalDpiverticalDpicopiesid)self	worksheetr   r   r    r!   r"   r#   r$   r%   r&   r'   r(   r)   r*   r+   r,   r-   r.   r/   r0   s                        N/var/www/horilla/myenv/lib/python3.12/site-packages/openpyxl/worksheet/page.py__init__zPrintPageSetup.__init__'   s    * !&"
&$."4&$""4*
(*&    c                 *    t        t        |             S r   booldictr1   s    r3   __bool__zPrintPageSetup.__bool__R       DJr5   c                 B    | j                   j                  j                  S )z 
        Proxy property
        )r   sheet_propertiespageSetUpPrr:   s    r3   r>   zPrintPageSetup.sheet_propertiesX   s    
 ||,,888r5   c                 .    | j                   j                  S r   r>   	fitToPager:   s    r3   rB   zPrintPageSetup.fitToPage`   s    $$...r5   c                 &    || j                   _        y r   rA   r1   values     r3   rB   zPrintPageSetup.fitToPagee   s    */'r5   c                 .    | j                   j                  S r   r>   autoPageBreaksr:   s    r3   rH   zPrintPageSetup.autoPageBreaksj   s    $$333r5   c                 &    || j                   _        y r   rG   rD   s     r3   rH   zPrintPageSetup.autoPageBreakso   s    /4,r5   c                 4    t         |   |      }d |_        |S r   )super	from_treer0   )clsnoder1   	__class__s      r3   rL   zPrintPageSetup.from_treet   s    w &r5   )NNNNNNNNNNNNNNNNNNNN)'__name__
__module____qualname____doc__tagnamer   r   r   r   r    r!   r"   r#   r   r$   r   r%   r&   r'   r(   r)   r*   r+   r,   r-   r.   r/   r	   r0   r4   r;   propertyr>   rB   setterrH   classmethodrL   __classcell__)rO   s   @r3   r   r      s   &G!EFK4(It$ET*KD)J.O."d3K!T2J?@I.D)MD!E":;L@AFt,MT*K%F	B  !! !%$(! $(#"#!)(V  9 9 / / 0 0 4 4 5 5  r5   r   c                       e Zd ZdZdZ ed      Z ed      Z ed      Z ed      Z	 ed      Z
	 	 	 	 	 ddZd Zy)	PrintOptionsz Worksheet print options printOptionsTr   Nc                 J    || _         || _        || _        || _        || _        y r   )horizontalCenteredverticalCenteredheadings	gridLinesgridLinesSet)r1   r]   r^   r_   r`   ra   s         r3   r4   zPrintOptions.__init__   s*     #5 0 "(r5   c                 *    t        t        |             S r   r7   r:   s    r3   r;   zPrintOptions.__bool__   r<   r5   )NNNNN)rP   rQ   rR   rS   rT   r   r]   r^   r_   r`   ra   r4   r;    r5   r3   rZ   rZ   {   sW    #G.t,t$H%I4(L*."&"	
) r5   rZ   c                   t    e Zd ZdZdZ e       Z e       Z e       Z e       Z	 e       Z
 e       Z	 	 ddZy)PageMarginsz
    Information about page margins for view/print layouts.
    Standard values (in inches)
    left, right = 0.75
    top, bottom = 1
    header, footer = 0.5
    pageMarginsc                 X    || _         || _        || _        || _        || _        || _        y r   )leftrighttopbottomheaderfooter)r1   rh   ri   rj   rk   rl   rm   s          r3   r4   zPageMargins.__init__   s,    	
r5   N)      ?rn      ro         ?rp   )rP   rQ   rR   rS   rT   r   rh   ri   rj   rk   rl   rm   r4   rc   r5   r3   re   re      sC     G7DGE
'CWFWFWFFIr5   re   N)!openpyxl.descriptors.serialisabler   openpyxl.descriptorsr   r   r   r   openpyxl.descriptors.excelr   r	   r   rZ   re   rc   r5   r3   <module>rt      sA    ;  Bk\ k\ <  6, r5   