
    ,hj                     :    d dl mZ  G d dej                        Zy)   )	xmlwriterc                   R     e Zd ZdZ fdZd Zd Zd Zd Zd Z	d Z
d	 Zd
 Z xZS )FeaturePropertyBagzG
    A class for writing the Excel XLSX FeaturePropertyBag file.


    c                 @    t         |           t               | _        y)z
        Constructor.

        N)super__init__setfeature_property_bags)self	__class__s    a/var/www/html/Resume-Scraper/venv/lib/python3.12/site-packages/xlsxwriter/feature_property_bag.pyr   zFeaturePropertyBag.__init__   s     	%(U"    c                 B   | j                          | j                          | j                          | j                          | j	                          | j                          d| j                  v r| j                          | j                  d       | j                          y )NDXFComplementsFeaturePropertyBags)
_xml_declaration_write_feature_property_bags_write_checkbox_bag_write_xf_control_bag_write_xf_compliment_bag_write_xf_compliments_bagr
   _write_dxf_compliments_bag_xml_end_tag
_xml_close)r   s    r   _assemble_xml_filez%FeaturePropertyBag._assemble_xml_file,   s     	 	))+ 	  " 	""$ 	%%' 	&&( t999++-/0 	r   c                 6    d}d|fg}| j                  d|       y )NzIhttp://schemas.microsoft.com/office/spreadsheetml/2022/featurepropertybagxmlnsr   )_xml_start_tag)r   r   
attributess      r   r   z/FeaturePropertyBag._write_feature_property_bagsP   s-     X 	 &'
1:>r   c                 .    dg}| j                  d|       y )N)typeCheckboxbag)_xml_empty_tagr   r   s     r   r   z&FeaturePropertyBag._write_checkbox_bag[   s    *+
E:.r   c                 t    dg}| j                  d|       | j                  dd       | j                  d       y )N)r!   
XFControlsr#   CellControl    r   _write_bag_idr   r%   s     r   r   z(FeaturePropertyBag._write_xf_control_baga   s:    ,-
E:. 	=!,% r   c                 t    dg}| j                  d|       | j                  dd       | j                  d       y )N)r!   XFComplementr#   r'   r   r*   r%   s     r   r   z+FeaturePropertyBag._write_xf_compliment_bagl   s:    ./
E:. 	<+% r   c                     ddg}| j                  d|       | j                  ddg       | j                  dd       | j                  d       | j                  d       y )N)r!   XFComplements)extRefXFComplementsMapperExtRefr#   akMappedFeaturePropertyBags    r*   r%   s     r   r   z,FeaturePropertyBag._write_xf_compliments_bagw   sc     &3


 	E:.C"D!EF2q!#% r   c                     ddg}| j                  d|       | j                  ddg       | j                  dd       | j                  d       | j                  d       y )N)r!   r   )r0   DXFComplementsMapperExtRefr#   r2   r3   r6   r7   r*   r%   s     r   r   z-FeaturePropertyBag._write_dxf_compliments_bag   sc     '4


 	E:.C"D!EF2q!#% r   c                 <    g }|rd|fg}| j                  d||       y )Nr4   bagId)_xml_data_element)r   keybag_idr   s       r   r+   z FeaturePropertyBag._write_bag_id   s'    
*Jw
;r   )__name__
__module____qualname____doc__r   r   r   r   r   r   r   r   r+   __classcell__)r   s   @r   r   r      s6    + H	?/	!	!!!<r   r   N)r6   r   	XMLwriterr    r   r   <module>rF      s    M<,, M<r   