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: //lib64/libreoffice/program/wizards/web/WebConfigSet.pyc
�
�\Ofc@svddlZddlmZddlmZddlmZddlmZddl	m
Z
defd	��YZdS(
i����Ni(tConfigGroup(t
Configuration(tEventListenerList(t
ListDataEvent(tListDataListenertWebConfigSetcBs�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�ZRS(s�
    After reading the configuration set items,
    the ConfigSet checks this field.
    If it is true, it will remove any nulls from
    the vector.
    subclasses can change this field in the constructor
    to avoid this "deletion" of nulls.
    cCs1||_i|_g|_t|_d|_dS(N(t
childClasstchildrenMaptchildrenListtTruetnoNullstNonetlistenerList(tselft	childType((s:/usr/lib64/libreoffice/program/wizards/web/WebConfigSet.pyt__init__#s
				cCsad}||jkr%|j|}n||j|<y3t|�}|jj||�|j||�Wn�tk
r\t|d�r�|j}|j	�}x&|j	�|kr�|jj
d�q�W||j|<||kr�|}n|j||�q]|dk	r%|jj|�}||j|<q]|jj
|�|j|j	�d|j	�d�nXdS(Ntcp_Indexi(RRtintRtinsertt!fireListDataListenerIntervalAddedt
ValueErrorthasattrRtgetSizetappendtindex(R
tnametotoldOtitoldSize((s:/usr/lib64/libreoffice/program/wizards/web/WebConfigSet.pytadd*s.

	
	cCs�|jj�}|j}|rdxC|D]8}ytj||�Wq%tk
r\tj�q%Xq%Wnxa|D]Y}y5|j|�}tj	||�}|j
||�Wqktk
r�tj�qkXqkWdS(N(RtkeystElementNamesRt
removeNodet	Exceptiont	tracebackt	print_exct
getElementt
addConfigNodetwriteConfiguration(R
t
configViewtparamtnamestchildrenRtchildt	childView((s:/usr/lib64/libreoffice/program/wizards/web/WebConfigSet.pyR'Fs	



cCs�|j}|r�xx|D]m}yI|j�}|j|j�|j|j|�|�|j||�Wqtk
r�tj	�qXqWn|j
r�d}xP|t|j�kr�|j|dkr�|j|=|d8}n|d7}q�WndS(Nii(R RtsetRoottroottreadConfigurationt	getByNameRR"R#R$R
tlenRR(R
tconfigurationViewR)R*RR,((s:/usr/lib64/libreoffice/program/wizards/web/WebConfigSet.pyR0Zs$	

	

cCsO|j|�}|j|=|jj|�}|jj|�|j||�dS(N(tgetKeyRRRtremovet#fireListDataListenerIntervalRemoved(R
tobjtkeyR((s:/usr/lib64/libreoffice/program/wizards/web/WebConfigSet.pytremove1os

cCs |j|�}|j|�dS(N(tgetElementAtR9(R
RR((s:/usr/lib64/libreoffice/program/wizards/web/WebConfigSet.pyR5vscCs|jj�|j2dS(N(RtclearR(R
((s:/usr/lib64/libreoffice/program/wizards/web/WebConfigSet.pyR;zs
cCs|j||�dS(N(t#fireListDataListenerContentsChanged(R
R((s:/usr/lib64/libreoffice/program/wizards/web/WebConfigSet.pytupdate~scCs_|j}d}xI|t|�krZ||}t|d�rM|j|�n|d7}qW|S(Nit	createDOMi(RR2RR>(R
tparenttitemsRtitem((s:/usr/lib64/libreoffice/program/wizards/web/WebConfigSet.pyR>�s	
cCs4x-|jj�D]\}}||kr|SqWdS(N(RR@R(R
t_objecttktv((s:/usr/lib64/libreoffice/program/wizards/web/WebConfigSet.pyR4�scCs|j|S(N(R(R
R((s:/usr/lib64/libreoffice/program/wizards/web/WebConfigSet.pyR:�scCs(y|j|SWntk
r#dSXdS(N(RtKeyErrorR(R
R((s:/usr/lib64/libreoffice/program/wizards/web/WebConfigSet.pyR%�s
cCs
t|j�S(N(R2R(R
((s:/usr/lib64/libreoffice/program/wizards/web/WebConfigSet.pyR�scCs|jj|�S(N(RR(R
RA((s:/usr/lib64/libreoffice/program/wizards/web/WebConfigSet.pyt
getIndexOf�sc	Cstj|�}g}d}d}d}x�|t|�kr�|||ks�tj|||�}tj||�}x#||j�kr�|jd�qwW|||<n|d7}q*Wd}d}xP|t|�kr||}|dkrtj|d||�n|d7}q�WdS(s�
        First I read all memebrs of the set,
        except the one that should be number 0
        to a vector, ordered by there index property
        iiN(	RtgetChildrenNamesRR2tgetNodetgetInttsizeRtset(	R
tconfViewt
memberNametindexPropertyNameR*RDtmemberRR((s:/usr/lib64/libreoffice/program/wizards/web/WebConfigSet.pyt
reindexSet�s(

cCs|jj|�dS(N(Rtsort(R
t
comparator((s:/usr/lib64/libreoffice/program/wizards/web/WebConfigSet.pyRQ�scCs2|jdkrt�|_n|jj|�dS(N(RRRR(R
tlistener((s:/usr/lib64/libreoffice/program/wizards/web/WebConfigSet.pytaddListDataListener�scCs|jj|�dS(N(RR5(R
RS((s:/usr/lib64/libreoffice/program/wizards/web/WebConfigSet.pytremoveListDataListener�scCsht|tj||�}|jdkr+dSx6|jj�D]%}t|t�r;|j|�q;q;WdS(N(RtINTERVAL_ADDEDRRtgetListenerListt
isinstanceRt
intervalAdded(R
ti0ti1teventRS((s:/usr/lib64/libreoffice/program/wizards/web/WebConfigSet.pyR�scCsht|tj||�}|jdkr+dSx6|jj�D]%}t|t�r;|j|�q;q;WdS(N(RtINTERVAL_REMOVEDRRRWRXRtintervalRemoved(R
RZR[R\RS((s:/usr/lib64/libreoffice/program/wizards/web/WebConfigSet.pyR6�scCsht|tj||�}|jdkr+dSx6|jj�D]%}t|t�r;|j|�q;q;WdS(N(RtCONTENTS_CHANGEDRRRWRXRtcontentsChanged(R
RZR[R\RS((s:/usr/lib64/libreoffice/program/wizards/web/WebConfigSet.pyR<�s(t__name__t
__module__t__doc__RRR'R0R9R5R;R=R>R4R:R%RRFRPRQRTRURR6R<(((s:/usr/lib64/libreoffice/program/wizards/web/WebConfigSet.pyRs,									
					
						(R#tcommon.ConfigGroupRtcommon.ConfigurationRtui.event.EventListenerListRtui.event.ListDataEventRtui.event.ListDataListenerRR(((s:/usr/lib64/libreoffice/program/wizards/web/WebConfigSet.pyt<module>s