HEX
Server: Apache
System: Linux srv1.prosuiteplus.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: prosuiteplus (1001)
PHP: 8.3.20
Disabled: NONE
Upload Files
File: //lib64/libreoffice/program/msgbox.pyc
�
Ʌ`c@sddlmZddlmZddlmZddlZddlZddlmZm	Z	ddl
mZddl
m
Zddl
mZddl
mZdd	lmZdd
lmZddlmZddlmZd
ejfd��YZdejefd��YZedkrej �Z!e!j"j#de!�Z$e$j%d�Z&ee&�Z'e'j(d�e'j(d�e'j(d�e'j)d�de'_*e'j+de,d�e,d�ddd�GHee&�Z'e'j(d�e'j-�de'_*e'j+ddd�GHndS( i����(tpath(tmodulesN(tTOPtSIMPLE(tSTANDARD(tOK(tCANCEL(tHELP(tCENTER(tLEFT(tRIGHT(tXActionListenertMsgBoxcBs\eZdZd�Zd�Zd�Zd�Zd�Zd�Zdd�Z	d	d
�Z
RS(s3Inspect UNO object, link to sdk and recursive callscCssd|_||_|j|_d|_i|_d|_d|_d|_	t
|_d|_g|_
d|_dS(s'acontext : a Valid UNO context
        s0.1i2i�i
i����tN(tVERSIONtctxtServiceManagertsmgrtNonetdialogt
lst_listenerst
ButtonSizetboxSizet
lineHeighttFalsetfromBroxSizet
numberOfLinestButtonstResponse(tselftaContext((s(/usr/lib64/libreoffice/program/msgbox.pyt__init__"s											cCsV|jdkr0t|jjtd���}n	|j}t|j�}|jd|_|jr�d|j	d|d}||_|jd|_n||j|j|j|_	|j
jd|j�}d|_
d|_d|_|j	|_d|j|dd	d|_d
|_t|_t|_|j
jd|j�}|jd�}d|_
d
|_|j|j
|_|j||_d|_t|_t|_|j|_|jd|�d}x�|jD]�}|d7}|jd�}	||j|d|j|	_
d|	_d	|	_|j|	_d|jd|	_t|	_|dkrbt|	_ n	t|	_ ||	_|jdt!|�|	�q�W|j"�s�|j#|�n|j
jd|j�}
t$j%d�}d|_&|j'|j(�d|_d|_d
|_)t$j%d�}t*|_+d|_,||_-|
j.|�}
|j/|
|
�|S(sCreate the Boxi����i
iiis&com.sun.star.awt.UnoControlDialogModeli2iii?s!com.sun.star.awt.UnoControlDialogs)com.sun.star.awt.UnoControlFixedTextModeli	tLabel0is&com.sun.star.awt.UnoControlButtonModelitBtnscom.sun.star.awt.Toolkitscom.sun.star.awt.Rectangleiis!com.sun.star.awt.WindowDescriptor(0RtlentmessagetsplittchrRRtButtonSpaceRRRtcreateInstanceWithContextRt	PositionXtSteptTabIndextWidthRtHeightt	PositionYtTruetSizeableRt	CloseabletcreateInstancetlefttAlignt	MultiLinetLabeltinsertByNametstandardtPushButtonTypet
DefaultButtontstrtgetModeltsetModeltunotcreateUnoStructtXtsetTitlettitletYRtTypetParentIndextBoundstcreateWindowt
createPeer(RRtnumberOfButtonstsizetdialog_modelRtlabeltnbt
buttonNametbuttonttoolkitta_recttwin_descriptortpeer((s(/usr/lib64/libreoffice/program/msgbox.pyt
_createBox<s�!								 										
													cCstd}xg|jD]\}|d7}|jjdt|��}t|�}|j|�||jdt|�<qWdS(sAdd listeners to dialogiiR!N(RRt
getControlR:tButtonListenertaddActionListenerR(RRLRMt	a_controltthe_listener((s(/usr/lib64/libreoffice/program/msgbox.pyt
_addListeners�s

cCsbd}xU|jD]J}|d7}|jjdt|��}|j|jdt|��qWdS(s remove listeners on exitingiiR!N(RRRTR:tremoveActionListenerR(RRLRMRW((s(/usr/lib64/libreoffice/program/msgbox.pyt_removeListeners�s
"cCs_||_||_||_|j�|_|j�|jj�|j�|jj�|j	S(N(
R#t
decorationRARSRRYtexecuteR[tdisposeR(RR#R\RA((s(/usr/lib64/libreoffice/program/msgbox.pytshow�s			



cCs|jj|�dS(N(Rtappend(Rtcaption((s(/usr/lib64/libreoffice/program/msgbox.pyt	addButton�si�cCs||_t|_dS(N(RR.R(RRI((s(/usr/lib64/libreoffice/program/msgbox.pytrenderFromBoxSize�s		i2cCs||_t|_dS(N(RRR(RRI((s(/usr/lib64/libreoffice/program/msgbox.pytrenderFromButtonSize�s		(t__name__t
__module__t__doc__RRSRYR[R_RbRcRd(((s(/usr/lib64/libreoffice/program/msgbox.pyRs		Z					RUcBs)eZdZd�Zd�Zd�ZRS(s=Stops the MessageBox, sets the button label as returned valuecCs
||_dS(N(tcaller(RRh((s(/usr/lib64/libreoffice/program/msgbox.pyR�scCsdS(N((RteventObject((s(/usr/lib64/libreoffice/program/msgbox.pyt	disposing�scCs/|j}|jj|j_|jjj�dS(N(tSourcetModelR5RhRRt
endExecute(RtactionEventRN((s(/usr/lib64/libreoffice/program/msgbox.pytactionPerformed�s	(ReRfRgRRjRo(((s(/usr/lib64/libreoffice/program/msgbox.pyRU�s		t__main__s"com.sun.star.bridge.UnoUrlResolversCuno:socket,host=localhost,port=2002;urp;StarOffice.ComponentContexttYestNosMay bei�is�A very long message A very long message A very long message A very long message A very long message A very long message A very long message A very long message A very long message A very long message i
sDo you agree ?isDialog titletoKsA small message(.tosRtsysRtsyspathR=t	unohelpertcom.sun.star.awt.WindowClassRRtcom.sun.star.awt.PushButtonTypeRR7RtokRtcancelRthelptcom.sun.star.awt.TextAlignRtcenterR	R2R
trighttcom.sun.star.awtRtBaseRRURetgetComponentContexttlocalContextRR'tresolvertresolveRtmyBoxRbRct
numberOflinesR_R%Rd(((s(/usr/lib64/libreoffice/program/msgbox.pyt<module>s>�	



	,