
    h                      N    S SK JrJrJr  SSKJr   " S S\R                  5      rg)    )DictListTuple   )	xmlwriterc                      ^  \ rS rSrSrU 4S jrS\4S jrS\\\	4   4S jr
S\\\4   4S	 jrS
 rS rS rS rS rS rS rS\S\\\\	4      4S jrS\\\	4   4S jrS rS rS rS rS rS rS rSrU =r$ )App   z0
A class for writing the Excel XLSX App file.


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

r   N)super__init__
part_namesheading_pairs
propertiesdoc_security)self	__class__s    aC:\Users\julio\OneDrive\Documentos\Trabajo\Ideas Frescas\venv\Lib\site-packages\xlsxwriter/app.pyr   App.__init__   s.     	    	part_namec                 :    U R                   R                  U5        g N)r   append)r   r   s     r   _add_part_nameApp._add_part_name)   s    y)r   heading_pairc                     US   (       d  g U R                   R                  SUS   45        U R                   R                  SUS   45        g )Nr   lpstrr   i4)r   r   )r   r   s     r   _add_heading_pairApp._add_heading_pair-   sH    
 A!!7LO"<=!!4a"9:r   r   c                     Xl         g r   )r   )r   r   s     r   _set_propertiesApp._set_properties8   s    $r   c                    U R                  5         U R                  5         U R                  5         U R                  5         U R	                  5         U R                  5         U R                  5         U R                  5         U R                  5         U R                  5         U R                  5         U R                  5         U R                  5         U R                  5         U R                  S5        U R                  5         g )N
Properties)_xml_declaration_write_properties_write_application_write_doc_security_write_scale_crop_write_heading_pairs_write_titles_of_parts_write_manager_write_company_write_links_up_to_date_write_shared_doc_write_hyperlink_base_write_hyperlinks_changed_write_app_version_xml_end_tag
_xml_closer   s    r   _assemble_xml_fileApp._assemble_xml_fileB   s     	 !  " !!###%$$& ""$&&(!,' 	r   c                 P    SnUS-   nUS-   nSU4SU4/nU R                  SU5        g )Nz6http://schemas.openxmlformats.org/officeDocument/2006/zextended-propertiesdocPropsVTypesxmlnszxmlns:vtr'   )_xml_start_tag)r   schemar=   xmlns_vt
attributess        r   r)   App._write_propertiesa   sH    I..,, e"


 	L*5r   c                 (    U R                  SS5        g )NApplicationzMicrosoft Excel_xml_data_elementr8   s    r   r*   App._write_applicationn   s    }.?@r   c                 <    U R                  SU R                  5        g )NDocSecurity)rF   r   r8   s    r   r+   App._write_doc_securityr   s    }d.?.?@r   c                 (    U R                  SS5        g )N	ScaleCropfalserE   r8   s    r   r,   App._write_scale_cropv       {G4r   c                     U R                  S5        U R                  SU R                  5        U R                  S5        g )NHeadingPairsvariant)r>   _write_vt_vectorr   r6   r8   s    r   r-   App._write_heading_pairsz   s4    N+i););<.)r   c                     / nU R                  S5        U R                   H  nUR                  SU45        M     U R                  SU5        U R	                  S5        g )NTitlesOfPartsr   )r>   r   r   rS   r6   )r   
parts_datar   s      r   r.   App._write_titles_of_parts   sV    
O,Iw	23 ) 	gz2/*r   	base_typevector_datac                     S[        U5      4SU4/nU R                  SU5        U HD  nUS:X  a  U R                  S5        U R                  U5        US:X  d  M3  U R                  S5        MF     U R                  S5        g )NsizebaseTypez	vt:vectorrR   z
vt:variant)lenr>   _write_vt_datar6   )r   rY   rZ   rA   vt_datas        r   rS   App._write_vt_vector   s     S%&#


 	K4"GI%##L1(I%!!,/ # 	+&r   r`   c                 :    U R                  SUS    3US   5        g )Nzvt:r   r   rE   )r   r`   s     r   r_   App._write_vt_data   s!    WQZL171:>r   c                 `    U R                   R                  SS5      nU R                  SU5        g )Ncompany Companyr   getrF   )r   re   s     r   r0   App._write_company   s(    //%%i4y'2r   c                 d    SU R                   ;  a  g U R                  SU R                   S   5        g )NmanagerManager)r   rF   r8   s    r   r/   App._write_manager   s*    DOO+y$//)*DEr   c                 (    U R                  SS5        g )NLinksUpToDaterM   rE   r8   s    r   r1   App._write_links_up_to_date   s    8r   c                 (    U R                  SS5        g )N	SharedDocrM   rE   r8   s    r   r2   App._write_shared_doc   rO   r   c                 f    U R                   R                  S5      nUc  g U R                  SU5        g )Nhyperlink_baseHyperlinkBaserh   )r   rv   s     r   r3   App._write_hyperlink_base   s0    ,,-=>!?r   c                 (    U R                  SS5        g )NHyperlinksChangedrM   rE   r8   s    r   r4   App._write_hyperlinks_changed   s    2G<r   c                 (    U R                  SS5        g )N
AppVersionz12.0000rE   r8   s    r   r5   App._write_app_version   s    |Y7r   )r   r   r   r   ) __name__
__module____qualname____firstlineno____doc__r   strr   r   intr!   r   r$   r9   r)   r*   r+   r,   r-   r.   r   rS   r_   r0   r/   r1   r2   r3   r4   r5   __static_attributes____classcell__)r   s   @r   r	   r	      s    * *	;eCHo 	;%$sCx. %>6AA5*+'# 'DsCx<Q '(?eCHo ?3
F95@=8 8r   r	   N)typingr   r   r   rf   r   	XMLwriterr	    r   r   <module>r      s$    % $ y8)

 y8r   