U
    dR
                     @   sd   d dl mZ d dlmZmZmZmZmZmZm	Z	 G dd deZ
G dd deZG dd deZd	S )
    )Serialisable)TypedSequenceStringFloatIntegerBoolNoneSetc                   @   sJ   e Zd ZdZe Ze ZeddZe Z	eddZ
eddZdddZdS )WebPublishObjectZwebPublishingObjectT
allow_noneNc                 C   s(   || _ || _|| _|| _|| _|| _d S N)iddivIdsourceObjectdestinationFiletitleautoRepublish)selfr   r   r   r   r   r    r   9/tmp/pip-unpacked-wheel-rwywncvq/openpyxl/workbook/web.py__init__   s    zWebPublishObject.__init__)NNNNNN)__name__
__module____qualname__tagnamer   r   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edZdZ	ddd	Z
ed
d ZdS )WebPublishObjectListZwebPublishingObjectsTr   )Zexpected_typewebPublishObjectNr   c                 C   s
   || _ d S r   r   )r   countr   r   r   r   r   3   s    zWebPublishObjectList.__init__c                 C   s
   t | jS r   )lenr   )r   r   r   r   r   :   s    zWebPublishObjectList.count)Nr   )r   r   r   r   r   r   r   r
   r   Z__elements__r   propertyr   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dddd	d
ddddgdZeddZeddZeddZdddZdS )WebPublishingZwebPublishingTr   Z544x376Z640x480Z720x512800x600Z1024x768Z1152x882Z1152x900Z	1280x1024Z	1600x1200Z	1800x1440Z	1920x1200)valuesNc
           
      C   s:   || _ || _|| _|| _|| _|| _|| _|| _|	| _d S r   )	cssthicketlongFileNamesvmlallowPngtargetScreenSizedpicodePagecharacterSet)
r   r%   r&   r'   r(   r)   r*   r+   r,   r-   r   r   r   r   O   s    zWebPublishing.__init__)	NNNNNr#   NNN)r   r   r   r   r   r%   r&   r'   r(   r)   r	   r*   r   r+   r,   r   r-   r   r   r   r   r   r"   ?   s8   





     


         r"   N)Z!openpyxl.descriptors.serialisabler   Zopenpyxl.descriptorsr   r   r   r   r   r   r	   r
   r   r"   r   r   r   r   <module>   s   $