U
    rÎ·h  ã                   @   sd   d Z ddlmZ ddlmZmZmZ ddlmZ G dd„ deƒZ	G dd„ deƒZ
G d	d
„ d
eƒZdS )zWorksheet Propertiesé    )ÚSerialisable)ÚStringÚBoolÚTyped)ÚColorDescriptorc                   @   sB   e Zd ZdZedd�Zedd�Zedd�Zedd�Zddd„Z	dS )ÚOutlineÚ	outlinePrT©Ú
allow_noneNc                 C   s   || _ || _|| _|| _d S ©N)ÚapplyStylesÚsummaryBelowÚsummaryRightÚshowOutlineSymbols)Úselfr   r   r   r   © r   úA/tmp/pip-unpacked-wheel-49e_hfpc/openpyxl/worksheet/properties.pyÚ__init__   s    zOutline.__init__)NNNN)
Ú__name__Ú
__module__Ú__qualname__Útagnamer   r   r   r   r   r   r   r   r   r   r   
   s   



    ür   c                   @   s.   e Zd ZdZedd�Zedd�Zddd„ZdS )ÚPageSetupPropertiesÚpageSetUpPrTr	   Nc                 C   s   || _ || _d S r   )ÚautoPageBreaksÚ	fitToPage)r   r   r   r   r   r   r   '   s    zPageSetupProperties.__init__)NN)r   r   r   r   r   r   r   r   r   r   r   r   r       s   

r   c                   @   sš   e Zd ZdZedd�Zedd�Zedd�Zedd�Z	edd�Z
edd�Zedd�Zedd�Zedd�Zedd�Zeedd�Zeedd�ZdZd	dd„ZdS )
ÚWorksheetPropertiesZsheetPrTr	   )Zexpected_typer
   )ÚtabColorr   r   Nc                 C   sr   || _ || _|| _|| _|| _|| _|| _|| _|	| _|
| _	|dkrTt
ddd�| _n|| _|dkrhtƒ }|| _dS )z Attributes NT)r   r   )ÚcodeNameÚ!enableFormatConditionsCalculationÚ
filterModeÚ	publishedÚsyncHorizontalÚsyncRefÚsyncVerticalÚtransitionEvaluationÚtransitionEntryr   r   r   r   r   )r   r   r   r    r!   r"   r#   r$   r%   r&   r   r   r   r   r   r   r   @   s     zWorksheetProperties.__init__)NNNNNNNNNNNN)r   r   r   r   r   r   r   r   r    r!   r"   r#   r$   r%   r&   r   r   r   r   r   r   r   Z__elements__r   r   r   r   r   r   ,   s6   









            ôr   N)Ú__doc__Z!openpyxl.descriptors.serialisabler   Zopenpyxl.descriptorsr   r   r   Zopenpyxl.styles.colorsr   r   r   r   r   r   r   r   Ú<module>   s   