HEX
Server: Apache
System: Linux opal14.opalstack.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
User: curbgloabal_opal (1234)
PHP: 8.1.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/share/inkscape/extensions/webslicer_create_rect.pyo
�
��Yc@sXdZddlTddlZdefd��YZedkrTe�Zej�ndS(s�
Copyright (C) 2010 Aurelio A. Heckert, aurium (a) gmail dot com

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
i����(t*NtWebSlicer_CreateRectcBs5eZd�Zd�Zd�Zd�Zd�ZRS(c
Cstj|�|jjddddddddd	�|jjd
dddddddd	�|jjddddd
dddd	�|jjddddddddd	�|jjddddddddd	�|jjddddd
dddd	�|jjddddddddd	�|jjddddd
dddd	�|jjddddddddd	�|jjddddddddd	�|jjddddddddd	�|jjddddddd dd	�|jjd!�dS("Ns--nametactiontstorettypetstringtdesttnamethelpts--formattformats--dpitinttdpis--dimensiont	dimensions
--bg-colortbg_colors	--qualitytqualitys
--gif-typetgif_types--palette-sizetpalette_sizes	--html-idthtml_ids--html-classt
html_classs--layout-dispositiontlayout_dispositions--layout-position-anchortlayout_position_anchors--tab(tWebSlicer_Effectt__init__tOptionParsert
add_option(tself((s7/usr/share/inkscape/extensions/webslicer_create_rect.pyRsd
cCs�|jj}|jjd|ddtj�}t|�dkr�|ddkr^|d }nd}d}xvt|�dkr�|d7}t|�}t|�dkr�d	|}n|jjd|d
|ddtj�}qmW|d
||j_ndS(Ns	//*[@id="s"]t
namespacesii����s-00t00it0t-(toptionsRtdocumenttxpathtinkextNSStlentstr(RRteltnumtnum_s((s7/usr/share/inkscape/extensions/webslicer_create_rect.pytunique_slice_nameOs#


cCsD|jjdd�j�|j_t|jj�s@|jjndS(NR
tpng(Rtensure_valuetlowerR
tis_emptyR
(R((s7/usr/share/inkscape/extensions/webslicer_create_rect.pytvalidate_options_s!cCs�|jd�}|j�|jt�}tjj|d�}t|jj	�r^d|j_	n|j
�|jd|jj	�|jdd�|jdd�|jd	t|d
��|jdt|d
��|jdt|d
��|jdt|d
��tjj|d�}d|jj
d}t|jj�sd|dt|jj�d7}nt|jj�s�|d|jj7}n|j|j��|_dS(Nt1pxtrectsslice-00tidtfilltredtopacitys0.5txidtytwidthi�theighttdescsformat:s
sdpi:shtml-id:(tunittouuR.tget_slicer_layertTrueR"tetreet
SubElementR-RRR)tsetR%R
RRtget_conf_text_from_listt
get_conf_listttext(RtscaletlayerR0R9tconf_txt((s7/usr/share/inkscape/extensions/webslicer_create_rect.pyteffectds*

!cCs|dg}|jjdkr1|jddg�n|jjdkrV|jdg�n|jddd	d
ddd
g�|S(NR
tgifRRtjpgRRR
RRRRR(RR
textend(Rt	conf_list((s7/usr/share/inkscape/extensions/webslicer_create_rect.pyRA}s		
(t__name__t
__module__RR)R.RFRA(((s7/usr/share/inkscape/extensions/webslicer_create_rect.pyRs
	6			t__main__(t__doc__twebslicer_effectR"RRRKtetaffect(((s7/usr/share/inkscape/extensions/webslicer_create_rect.pyt<module>s
u