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/ui/ImageList.pyc
�
�\Ofc@s�ddlZddlZddlmZddlmZddlmZddlmZddl	m
Z
dd	lmZdd
l
mZddlmZddlmZd
�Zdefd��YZdS(i����N(tabstractmethod(tRLocki(t
PeerConfig(tOMouseListenerProcAdapteri(t
PropertyNames(tHelpIds(t	IRenderer(tListDataListener(tSizecs�fd�}|S(s Synchronization decorator. cs��fd�}|S(Ncs-�j�z�||�SWd�j�XdS(N(tacquiretrelease(targstkw(tftlock(s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pytnewFunction#s
((R
R(R(R
s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pytwrap"s((RR((Rs6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pytsynchronized st	ImageListcBsieZdZdZdZdZdZddejej	ej
ejdejej
dejfZej
ejejfZe�Zd9Zd9Zd9Zd	�Zd
�Zd�Zd�Zd
�Zd�Zd�Zd�Zd�Zd�Z d�Z!d�Z"d�Z#d�Z$d�Z%d�Z&e'e�d��Z(e'e�d��Z)d�Z*d�Z+d�Z,d�Z-d�Z.d �Z/d!�Z0d"�Z1d#�Z2d$�Z3d%�Z4d&�Z5d'�Z6d(�Z7d)e8fd*��YZ9d+e8fd,��YZ:d-e;fd.��YZ<d/�Z=d0�Z>d1�Z?d2�Z@d3�ZAd4�ZBd5�ZCd6�ZDd7�ZEd8�ZFRS(:iiici����itBordertBackgroundColort
ScaleImagetTabstopcCs�t|_tdd�|_d|_d|_tdd�|_tdd�|_t|_t|_	d|_
t|_t|_
d|_d|_d|_d|_d|_|j�|_ttd��|_d|_dS(	Niiiiitili����i(tTruetbenabledRtgaptcolstrowst	imageSizetselectionGaptshowButtonstrefreshOverNulltimageTextLinestFalset	rowSelecttscaleImagestnametselectedt	pageStartthelpURLtNonetrenderertSimpleCounterRenderertcounterRenderertlisttrangetMOVE_SELECTION_VALStitemListenerList(tself((s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pyt__init__Bs&													cCs|j|j|j��dS(N(tfocustgetImageIndexForR&(R1tevent((s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pytonMousePressedWsc

Cs�||_|j|_|jtj}t|�}|j|jd<|j	|j
dddtjtj
tjtjtjftjd|jj|jj|j|jj|d|jj|jj|j|jj|jj|j|jjf�}|j|dt�|jrF|jj|jj|j|jj|jjd}n|jj|jjd}|j|j
dddtjtj
tjtjdtjftjd|jj|jjdd	d	|jt|f�|_|j}|j t!|j"��tjtj#tj
tjtjtj$dtjf}|j|j
d
||d|jjd|jj|jj|jj|j|jj|jd	t%|j|jj|jj|jjdf�|_&|j'r�|j(|j
dd
|dt)j*|j+d�|jj|jj|jj|jj|j|jj|d|j|j,dtdf|�t_-|j(|j
dd|dt)j*|j+d�|jj|jj|jj|j|jjdd|jj|jj|jj|j|jj|d|j|j,dtdf|�t_.|j|j
d|tjd|jjddt/|jj|jj|jj|j|jj|dtjd�|jd	t%|j|jj|jj|jjddf�|_0d|j0j1_2dtj-j1_3dtj.j1_3ndg|j|j|_5xXt6|j�D]G}x>t6|j�D]-}	|j7|||	�|j5||j|	<q<Wq&W|j8�|j9j:|�dS(NitlblContainerRRitMouseTransparentt
_grbxSelectedRit
_imageTexttt_btnBacktprevPageit_btnNexttnextPaget_lblCountert<t>i(;t
oUnoDialogtxDialogModeltdialogModelR!RtLINE_HEIGHTRtstepR/tinsertImageR%RtPROPERTY_HEIGHTtPROPERTY_POSITION_XtPROPERTY_POSITION_Yt
PROPERTY_STEPtPROPERTY_WIDTHtBACKGROUND_COLORRtHeightRRtpostWidthRtsetPeerPropertiesRR#RtinsertLabeltTRANSPARENTtgrbxSelectedImagetaddMouseListenerRR6tPROPERTY_HELPURLtPROPERTY_TABINDEXR"tlblImageTextRtinsertButtonRtgetHelpIdStringR(ttabIndextbtnBacktbtnNexttintt
lblCountertModeltAligntLabelR)t	m_aImagesR.tcreateImaget
refreshImagest	listModeltaddListDataListener(
R1tdialogtimageTextHeighttopeerConfigtimgContainertselectionWidthtxWindowtpNames1trtc((s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pytcreate[s�	
		,	8
					
:4		6%66%
28/
cCs�|jdt||j|�}|j|tjtjtj|jj	t
j|jd�|j
|�|j|�|j|j|jt|jjf�}|jt|j��|jd�|S(Nt_imagei(R%tstrRRHRtIMAGE_PROPSt	NO_BORDERRNRRORR[R(tgetImagePosXtgetImagePosYR$RGR\R"RQRVRtmousePressedtaddKeyListenerR)(R1Rit_rowt_colt	imageNametimage((s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pyRe�s "		
cCs,|jj||jj|jj|jjS(N(RPRQRR(R1tcol((s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pyRw�scCs,|jj||jj|jj|jjS(N(RPRORR(R1trow((s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pyRx�scCs;|jr|j�n|j�|jrOd}x|jD]}t|_q9Wnt}x�t|j�D]�\}}|j	j
|j|��}|dk	ret
|�dkr�|d|j_n<t
|�dkr�|jj�j|j|d|d�nt|�|j_|jr t|_nt}qeqeW|j�dS(Niii(RtrefreshCounterTextt
hideSelectionR RdR"tVisibleRt	enumerateR*tgetImageUrlstgetObjectForR)tlenRatImageURLRCtgetPeerConfigurationtsetImageUrltboolRtrefreshSelection(R1tit	focusabletindextitemt
oResources((s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pyRf�s*	

		
cCsD|jj|j|jd|j�|jj���|jj_	dS(Ni(
R,trendertCounterR'tpageEndRgtgetSizeR`RaRc(R1((s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pyR��s	cCsE|j|j|j}||jj�dkr=|jj�S|SdS(Ni(R'RRRgR�(R1R�((s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pyR��s
cCs\|j|jks2|j|j|j|jkr?|j�n|j|j|j��dS(N(R&R'RRR�t
moveSelectionR4(R1((s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pyR��s 
cCs"tj|jj_t|j_dS(N(Rt	HIDE_PAGERURatStepR"R�(R1((s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pyR�scCs0t|j_t||j�}|jr1d}n|||j}t|j|�|jj�|j	d<t|j
|�|jj�|j	d<tj
|jjdtjt|j	�f�|jj|jkr�t|j_nxLt|j�D];\}}||kr|j|�q�t|j|j_q�WdS(NiitsetPropertyValues(R"RUR�R_RR#RwRRQR/RxROtunotinvokeRaRtMOVE_SELECTIONttupleRER�RGRR�RdtdefocusR(R1R~R�RR�R�((s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pyR�s 		&&cCs<|j|�}|jj�|kr(dS|jj|�SdS(N(tgetIndexForRgR�R)tgetElementAt(R1R�tii((s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pyR�,scCs|j|S(N(R'(R1R�((s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pyR�8scCs||jS(N(R'(R1R�((s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pyR4;scCs�|j�|jkrS|j�|jkrS|j|j�|j�d7_qSn|j�|jks�|j�|j|j|jkr�|j�ndS(Ni(t	getIndex0R&t	getIndex1R'RRRf(R1R5((s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pyt
intervalAdded>s)#cCs/|jdkrg|_n|jj|�dS(N(R0R)tappend(R1tlistener((s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pytaddItemListenerLscCs&|jdk	r"|jj|�ndS(N(R0R)tremove(R1R�((s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pytremoveItemListenerWscCsD|jdkrdSt|j�}x|D]}|jd�q)WdS(N(R0R)R-titemStateChanged(R1tauxlistR�((s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pytfireItemSelectedas

cCs|jS(N(R&(R1((s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pytgetSelectedhscCs�t|t�r|j|�n�|dks7|dkrG|jd�n[d}xR||jj�kr�|jj|�}||kr�|j|�dS|d7}qPWdS(NR;i����ii(t
isinstanceR_tsetSelected1R)RgR�R�(R1t_objectR�R�((s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pytsetSelectedks
cCsp|jr2|dkr2t||j�|j}n|j|krEdS||_|j�|j�|j�dS(Ni(R#R_RR&trefreshImageTextR�R�(R1R�((s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pyR�ys	

cCsx|jdkrOy|jj|j�}WqUtk
rKd}tj�qUXnd}d|jj|�|j	j
_dS(Nit (R&RgR�t
IndexErrorR)t	tracebackt	print_excR*R�RYRaRc(R1R�((s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pyR��s
cCsK|j|jj�|j|jkrG|j|j|j|j�ndS(N(R'RgR�RRtsetPageStart(R1((s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pyR?�s&cCsP|jdkrdS|j|j|j}|dkr?d}n|j|�dS(Ni(R'RRR�(R1R�((s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pyR=�s	cCs4||jkrdS||_|j�|j�dS(N(R't
enableButtonsRf(R1R�((s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pyR��s
	
cCs_|jtjt|j|j|j|jj�k��|jtj	t|jdk��dS(Ni(
tenableRR^R�R'RRRgR�R](R1((s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pyR��s-cCs||j_dS(N(RatEnabled(R1tcontrolR�((s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pyR��scCs tj|jddtf�dS(NR�R(R�R�RaR�(R1R�tborder((s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pyt	setBorder�scCs0|j}|jj}t|dt|j��S(Ni(tSourceRatNameR_R�R%(R1R5R~tcontrolName((s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pytgetImageFromEvent�s	cCsT|j|�}|j|�}||jj�krP|j|�|j|�ndS(N(R�R�RgR�R3R�(R1R5R~R�((s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pyRy�s

cCs|jj|j�gS(N(RgR�R&(R1((s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pytgetSelectedObjects�stIImageRenderercBseZed��ZRS(cCsdS(N((R1tlistItem((s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pyR��s(t__name__t
__module__RR�(((s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pyR��sR+cBseZd�ZRS(cCs!d|jd|jd|jS(NR;s..t/(tstarttendtmax(R1tcounter((s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pyR��s(R�R�R�(((s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pyR+�sR�cBseZd�ZRS(cCs||_||_||_dS(N(R�R�R�(R1tstart_tend_tmax_((s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pyR2�s		(R�R�R2(((s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pyR��scCsK|jdkrGy|jj|j�SWqGtk
rCtj�qGXndS(Ni(R&RgR�R�R�R�R)(R1((s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pytgetSelectedObject�s
cCsq|j}|jdkrGt|jt|j�t|j��|_n||jkrm|j�|j�ndS(Ni����(R'R&R_R�RdR�Rf(R1toldPageStart((s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pytshowSelected�s	/
cCs�|j|�}||j}|||j}|j|||�}||}||kr\dS|j|�r~|j||�ndS(N(R�Rt
getKeyMovetisFocusabletchangeFocus(R1tkeR~RpRqtdtnewImage((s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pyt
keyPressed�s

cCs(|dko'|j|�|jj�kS(Ni(R�RgR�(R1R~((s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pyR��scCs|j|�|j|�dS(N(R3R�(R1t
oldFocusImaget
newFocusImage((s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pyR��s
cCs#|j|j|j|���dS(N(R�R�R�(R1R�((s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pytselect�scCs.t|j|j_|j|}|j�dS(N(RRdRaRtsetFocus(R1R~Rn((s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pyR3s
cCst|j|j_dS(N(R"RdRaR(R1R~((s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pyR�scCs8|j|j}|jj�||}|j|�dS(N(RRRgR�R�(R1R�tisAuxtps((s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pytdisplayscCs�d}x:|t|j�krBtj|j||�|d7}q	Wtj|j|�tj|j|�|jr�tjtj|�tjtj	|�tj|j
|�n||_dS(Nii(R�Rdt
UnoDialog2t
setEnabledRURYRRR]R^R`R(R1tbR�((s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pyt
setenableds	N(GR�R�RvRNR�RTRFRRIRWRJRKRLRXRMRuR�RRR)RgR^R]R2R6RrReRwRxRfR�R�R�R�R�R�R�R4R�RR�R�R�R�R�R�R�R?R=R�R�R�R�R�RyR�RR�R+tobjectR�R�R�R�R�R�R�R3R�R�R�(((s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pyR,s�						a													
				
			
										
							(R�R�tabcRt	threadingRRtevent.CommonListenerRtcommon.PropertyNamesRtcommon.HelpIdsRtcommon.IRendererRtevent.ListDataListenerRtcom.sun.star.awtRRR(((s6/usr/lib64/libreoffice/program/wizards/ui/ImageList.pyt<module>s