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/UnoDialog.pyc
�
�\Ofc@s�ddlZddlZddlmZddlmZddlmZddlmZddlm	Z	d	e
fd
��YZdS(i����Ni(t
PeerConfig(tUIConstsi(t
PropertyNames(t	Rectangle(tPOSt	UnoDialogcBsLeZeZdZdZdZd�Zd�Z	d�Z
d�Zd�Zd�Z
d�Zd�Zd�Zd	�Zd
�Zd�Zd�Zd
�Zd�Zd�Zd�Zd�Zd�Zd�Zdd�Zd�Zed��Zed��Z ed��Z!d�Z"d�Z#d�Z$d�Z%d�Z&d�Z'RS( cCs�y_||_i|_|jd�|_|jd�|_|jj|j�d|_d|_Wnt	k
r|t
j�nXdS(Ns&com.sun.star.awt.UnoControlDialogModels!com.sun.star.awt.UnoControlDialog(txMSFtControlListtcreateInstancetxDialogModelt
xUnoDialogtsetModeltNonet
m_oPeerConfigtxWindowPeert	Exceptiont	tracebackt	print_exc(tselfRRtPropertyValues((s6/usr/lib64/libreoffice/program/wizards/ui/UnoDialog.pyt__init__#s			

cCs(|jdkr!t|�|_n|jS(N(R
RR(R((s6/usr/lib64/libreoffice/program/wizards/ui/UnoDialog.pytgetPeerConfiguration1scCs2|jj|�}|j}|jj}|j|S(N(R
t
getControltSizetModeltWidth(RtControlNamet	xControl2taSizetdblMAPWidth((s6/usr/lib64/libreoffice/program/wizards/ui/UnoDialog.pytgetMAPConversionFactor6s	cCsB|jj|�}|j}|j|�|j}|j|�|S(N(R
RtTexttsetTextt
PreferredSize(Rt	LabelNametsLabelRtOldTextR((s6/usr/lib64/libreoffice/program/wizards/ui/UnoDialog.pytgetpreferredLabelSize<s	
	
cCsQ|j}|j}|d}x.|dkrL|j||d�|d8}qWdS(Nii(tSelectedItemsPostlengthtremoveItems(RtxListBoxtSelListtSellenti((s6/usr/lib64/libreoffice/program/wizards/ui/UnoDialog.pytremoveSelectedItemsDs		
cCst|�j}|jS(N(tgetModeltStringItemListR'(Rt	_xListBoxt
fieldnames((s6/usr/lib64/libreoffice/program/wizards/ui/UnoDialog.pytgetListBoxItemCountLscCst|�j}|dS(Ni(R.t
SelectedItems(RR0tipos((s6/usr/lib64/libreoffice/program/wizards/ui/UnoDialog.pytgetSelectedItemPosSscCst|�j}|jdkS(Ni(R.R3R'(RR0R4((s6/usr/lib64/libreoffice/program/wizards/ui/UnoDialog.pytisListBoxSelectedWscCs�y`tt|tj��}t|jj�}|rIt|tj|�nt|tjtj�Wnt	k
r}t
j�nXdS(N(tinttgetControlPropertyRt
PROPERTY_STEPR	tSteptsetControlPropertyRt
INVISIBLESTEPRRR(Rtcontrolnamet
bIsVisibletiCurControlSteptiCurDialogStep((s6/usr/lib64/libreoffice/program/wizards/ui/UnoDialog.pytsetControlVisiblehs	
cCsPy.t|jj�}d|j_||j_Wntk
rKtj�nXdS(Nic(R7R	R:RRR(Rtncurstep((s6/usr/lib64/libreoffice/program/wizards/ui/UnoDialog.pytrepaintDialogStepzs
cCsyK|jj|�}tj|d||f�|jj||�||_Wntk
rhtj�nX|j	j
|�}|S(NtsetPropertyValues(R	RtunotinvoketinsertByNametNameRRRR
R(RtserviceNamet
componentNamet
sPropNamestoPropValuest
xControlModeltaObj((s6/usr/lib64/libreoffice/program/wizards/ui/UnoDialog.pytinsertControlModel�s


cCs |jj|�}|j�dS(N(R
RtsetFocus(RRt
oFocusControl((s6/usr/lib64/libreoffice/program/wizards/ui/UnoDialog.pyRP�scCsg|dkrc|j�}|dkrc||krC|j|t�q`|jt|d�t�qcndS(Ni����ii(tgetItemCountt
selectItemPostTruetshort(RR)tiFieldsSelIndext
FieldCount((s6/usr/lib64/libreoffice/program/wizards/ui/UnoDialog.pytselectListBoxItem�scCs1t|�}|j}ggg|_||_dS(N(R.R/(Rt_xBasisListBoxt
oListBoxModeltsList((s6/usr/lib64/libreoffice/program/wizards/ui/UnoDialog.pytdeselectListBox�s	c	Csw|jj�}|j}|j}|j}|j}|d|d}|d|d}|jj||||t�dS(Ni(R
t
getPosSizetHeightRt
setPosSizeR(	RtFramePosSizet
CurPosSizetWindowHeighttWindowWidthtDialogWidthtDialogHeighttiXPostiYPos((s6/usr/lib64/libreoffice/program/wizards/ui/UnoDialog.pytcalculateDialogPosition�s					cCsu|jj�dkr$td��n|j|�|jdkrM|j�n|j|_|j�|_	|jj
�S(Ns*Please create a peer, using your own frame(R
tgetPeerRtAttributeErrorRhRtcreateWindowPeertxVclWindowPeertisHighContrastModeActivatedtBisHighContrastModeActivatedtexecute(RR`((s6/usr/lib64/libreoffice/program/wizards/ui/UnoDialog.pyt
executeDialog�s

cCsF|j|jj��|jdkr2|j�n|jjt�dS(N(RhR
R]RRRkt
setVisibleRT(Rtparent((s6/usr/lib64/libreoffice/program/wizards/ui/UnoDialog.pyRq�s
cCs|j|jj�S(N(RpR
tPosSize(RRr((s6/usr/lib64/libreoffice/program/wizards/ui/UnoDialog.pytexecuteDialogFromParent�scCsP|dk	r4|j}|dk	r4|j|j�Sn|jtdddd��S(Nii�i�(RtComponentWindowRpRsR(Rt
xComponenttw((s6/usr/lib64/libreoffice/program/wizards/ui/UnoDialog.pytexecuteDialogFromComponent�s
	cCs)tj�}||_t|d|�dS(NtFontDescriptor(RytWeightR;(RRt
FontWeightt	oFontDesc((s6/usr/lib64/libreoffice/program/wizards/ui/UnoDialog.pytmodifyFontWeight�s	cCso|jjt�|jjd�}|dkr=|j�}n|jj||�|jj�|_	|jj�S(Nscom.sun.star.awt.Toolkit(
R
RqtFalseRRRtgetDesktopWindowt
createPeerRiR(Rt
parentPeertxToolkit((s6/usr/lib64/libreoffice/program/wizards/ui/UnoDialog.pyRk�scCs�|jj|�}|jd�}|j|�r�|j�}|jdd�|dkr�t|d|g�|jt|d�t	�q�ndS(NiiR3(
R
RtgetItemtequalsR5R(R;RSRURT(RtListBoxNametDelEntryNameR)t	FirstItemtSelPos((s6/usr/lib64/libreoffice/program/wizards/ui/UnoDialog.pytdeletefirstListboxEntry�scCs||j_dS(N(RtEnabled(Rtcontroltenabled((s6/usr/lib64/libreoffice/program/wizards/ui/UnoDialog.pyt
setEnabledscCs
|j�S(N(R.(RR�((s6/usr/lib64/libreoffice/program/wizards/ui/UnoDialog.pyR.scCsJ|jd�rtjS|jd�r,tjS|jd�r?dS|jd�rRdS|jd�rhtjS|jd�r{d	S|jd
�r�dS|jd�r�dS|jd
�r�dS|jd�r�dS|jd�r�tjS|jd�r�tjS|jd�r	tjS|jd�rdS|jd�r/dS|jd�rBdSdSdS(Ns)com.sun.star.awt.UnoControlFixedTextModels&com.sun.star.awt.UnoControlButtonModels-com.sun.star.awt.UnoControlCurrencyFieldModeltValues)com.sun.star.awt.UnoControlDateFieldModeltDates)com.sun.star.awt.UnoControlFixedLineModels.com.sun.star.awt.UnoControlFormattedFieldModeltEffectiveValues,com.sun.star.awt.UnoControlNumericFieldModels,com.sun.star.awt.UnoControlPatternFieldModelRs+com.sun.star.awt.UnoControlProgressBarModelt
ProgressValues)com.sun.star.awt.UnoControlTimeFieldModeltTimes,com.sun.star.awt.UnoControlImageControlModels+com.sun.star.awt.UnoControlRadioButtonModels(com.sun.star.awt.UnoControlCheckBoxModels$com.sun.star.awt.UnoControlEditModels(com.sun.star.awt.UnoControlComboBoxModels'com.sun.star.awt.UnoControlListBoxModelR3t(tsupportsServiceRtPROPERTY_LABELtPROPERTY_IMAGEURLtPROPERTY_STATE(RtxServiceInfo((s6/usr/lib64/libreoffice/program/wizards/ui/UnoDialog.pytgetDisplayPropertysb																cCs�|jdk	r�|jdkr�d}y|jjd�}Wntk
rXtj�tSX|j|�}|j	|�}|j
|�}|d|d|dd}|dk}t|�|_|S|jSntSdS(NitDisplayBackgroundColorii�iMii(RlRRntgetPropertytIllegalArgumentExceptionRRR~tgetRedColorSharetgetGreenColorSharetgetBlueColorSharetbool(RtnUIColortnRedtnGreentnBluet
nLuminancetbisactivated((s6/usr/lib64/libreoffice/program/wizards/ui/UnoDialog.pyRmEs"


cCs2|d}|d}|d}|d}|}|S(Nii((Rt_nColorR�t
nRedModuloR�tnGreenModuloR�((s6/usr/lib64/libreoffice/program/wizards/ui/UnoDialog.pyR�]s



cCs"|d}|d}|d}|S(Nii((RR�R�R�R�((s6/usr/lib64/libreoffice/program/wizards/ui/UnoDialog.pyR�es


cCs2|d}|d}|d}|d}|}|S(Nii((RR�R�R�R�R�R�((s6/usr/lib64/libreoffice/program/wizards/ui/UnoDialog.pyR�ks



cCs,|j�rdt|�Sdt|�SdS(Nsprivate:resource/wzi/image/(Rmtstr(Rt_nResIdt	_nHCResId((s6/usr/lib64/libreoffice/program/wizards/ui/UnoDialog.pytgetWizardImageUrlsscCs|j�r|S|SdS(N(Rm(Rt_surlt_shcurl((s6/usr/lib64/libreoffice/program/wizards/ui/UnoDialog.pytgetImageUrlysN((t__name__t
__module__R~t
createDictRtdictPropertiesRnRlRRRR%R-R2R5R6RARCRORPRXR\RhRpRqRtRxR}RkR�tclassmethodR�R.R�RmR�R�R�R�R�(((s6/usr/lib64/libreoffice/program/wizards/ui/UnoDialog.pyRsF											
		
				
				
	
5					(RERRRtcommon.PropertyNamesRtcom.sun.star.awtRtcom.sun.star.awt.PosSizeRtobjectR(((s6/usr/lib64/libreoffice/program/wizards/ui/UnoDialog.pyt<module>s