
    h                     J    S SK JrJr  SSKJr   " S S\R
                  5      rg)    )ListTuple   )	xmlwriterc                      ^  \ rS rSrSrU 4S jrS\\\\\4      4S jr	S r
S rS\\\\4   4S	 jrS
\4S jrS
\4S jrS
\4S jrS
\4S jrS
\4S jrSrU =r$ )Custom   zE
A class for writing the Excel XLSX Custom Workbook Property file.


c                 >   > [         TU ]  5         / U l        SU l        g)z
Constructor.

r   N)super__init__
propertiespid)self	__class__s    dC:\Users\julio\OneDrive\Documentos\Trabajo\Ideas Frescas\venv\Lib\site-packages\xlsxwriter/custom.pyr   Custom.__init__   s     	    r   c                     Xl         g )N)r   )r   r   s     r   _set_propertiesCustom._set_properties(   s    $r   c                     U R                  5         U R                  5         U R                  S5        U R                  5         g )N
Properties)_xml_declaration_write_properties_xml_end_tag
_xml_close)r   s    r   _assemble_xml_fileCustom._assemble_xml_file2   s6     	 ,' 	r   c                     SnUS-   nUS-   nSU4SU4/nU R                  SU5        U R                   H  nU R                  U5        M     g )Nz6http://schemas.openxmlformats.org/officeDocument/2006/zcustom-propertiesdocPropsVTypesxmlnszxmlns:vtr   )_xml_start_tagr   _write_property)r   schemar!   xmlns_vt
attributescustom_propertys         r   r   Custom._write_propertiesE   sd    I,,,, e"


 	L*5#O  1  /r   r'   c                    SnUu  p4nU =R                   S-  sl         SU4SU R                   4SU4/nU R                  SU5        US:X  a  U R                  U5        OYUS:X  a  U R                  U5        OAUS	:X  a  U R	                  U5        O)US
:X  a  U R                  U5        OU R                  U5        U R                  S5        g )Nz&{D5CDD505-2E9C-101B-9397-08002B2CF9AE}r   fmtidr   nameproperty
number_intnumberdatebool)r   r"   _write_vt_i4_write_vt_r8_write_vt_filetime_write_vt_bool_write_vt_lpwstrr   )r   r'   r*   r+   valueproperty_typer&   s          r   r#   Custom._write_propertyV   s     9%4"]A eDHHTN

 	J
3L(e$h&e$f$##E*f$& !!%(*%r   r6   c                 (    U R                  SU5        g )Nz	vt:lpwstr_xml_data_elementr   r6   s     r   r5   Custom._write_vt_lpwstrx   s    {E2r   c                 (    U R                  SU5        g )Nzvt:filetimer:   r<   s     r   r3   Custom._write_vt_filetime|   s    }e4r   c                 (    U R                  SU5        g )Nzvt:i4r:   r<   s     r   r1   Custom._write_vt_i4       w.r   c                 (    U R                  SU5        g )Nzvt:r8r:   r<   s     r   r2   Custom._write_vt_r8   rB   r   c                 (    U R                  SU5        g )Nzvt:boolr:   r<   s     r   r4   Custom._write_vt_bool   s    y%0r   )r   r   )__name__
__module____qualname____firstlineno____doc__r   r   r   strr   r   r   r#   r5   r3   r1   r2   r4   __static_attributes____classcell__)r   s   @r   r   r      s    	%$uS#s]/C*D %&2" &uS#s]/C  &D3c 35 5/# //# /1C 1 1r   r   N)typingr   r    r   	XMLwriterr    r   r   <module>rS      s!     z1Y   z1r   