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/text/TextFieldHandler.pyo
�
�\Ofc@sbddlZddlZddlmZddlmZddlmZdefd��YZ	dS(i����N(tDateTime(tRuntimeException(tUnknownPropertyExceptiontTextFieldHandlercBs}eZdZgZiZd�Zd�Zd�Zd�Z	d�Z
d�Zd�Zd�Z
d�Zd	�Zd
�ZRS(cCsA||_||_tj|jk	r=|j�|jt_ndS(N(txMSFDoctxTextFieldsSupplierRtxTextFieldsSupplierAuxt _TextFieldHandler__getTextFields(tselftxMSFt
xTextDocument((s?/usr/lib64/libreoffice/program/wizards/text/TextFieldHandler.pyt__init__s		
cCs|jj}|j�dS(N(Rt
TextFieldstrefresh(RtxUp((s?/usr/lib64/libreoffice/program/wizards/text/TextFieldHandler.pytrefreshTextFields'scCssyQ|j�}|j}tjjjjj|�r7dS|j�}|j	}|SWnt
k
rntj�nXdS(Nt(
tgetEndt	TextFieldtcomtsuntstartunotAnyConvertertisVoidtgetTextFieldMastertContentt	Exceptiont	tracebackt	print_exc(RtxTextCursort
xTextRanget
oTextFieldtxMastertUserFieldContent((s?/usr/lib64/libreoffice/program/wizards/text/TextFieldHandler.pytgetUserFieldContent+s		
cCs�y�|jjd�}|jjjd|�rT|jjjd|�}|j�nt||�}|j|�|j	�j
||t�Wntk
r�t
j�nXdS(Ns com.sun.star.text.TextField.Users#com.sun.star.text.FieldMaster.User.(RtcreateInstanceRtTextFieldMasterst	hasByNamet	getByNametdisposetcreateUserFieldtattachTextFieldMastertgetTexttinsertTextContenttFalseRRR(RRt	FieldNamet
FieldTitletxFieldtoMastertxPSet((s?/usr/lib64/libreoffice/program/wizards/text/TextFieldHandler.pytinsertUserField;s		




cCs(|jjd�}||_||_|S(Ns"com.sun.star.text.FieldMaster.User(RR$tNameR(RR.R/R2((s?/usr/lib64/libreoffice/program/wizards/text/TextFieldHandler.pyR)Ms
				cCs�y|jjj�r~|jjj�}xT|j�rz|j�}tjj|�|j	}|j
r*|tj|j
<q*q*WnWntk
r�t
j�nXdS(N(RRthasElementstcreateEnumerationthasMoreElementstnextElementRtarrayTextFieldstappendtTextFieldMasterR4tdictTextFieldsRRR(RtxEnumR txPropertySet((s?/usr/lib64/libreoffice/program/wizards/text/TextFieldHandler.pyt__getTextFieldsTs		
cCsjytj|}Wntk
r%dSXy,t|d�rQ||j_|j�nWntk
renXdS(NR;(	RR<tKeyErrortNonethasattrR;RRR(Rt
_FieldNamet
_FieldContenttDependentTextFields((s?/usr/lib64/libreoffice/program/wizards/text/TextFieldHandler.pytchangeUserFieldContentcs

cCsryPxItjD]>}|jd�r/|j�n|jd�r
|j�q
q
WWntk
rmtj�nXdS(Ns(com.sun.star.text.TextField.ExtendedUsers com.sun.star.text.TextField.User(RR9tsupportsServicetupdateRRR(Rti((s?/usr/lib64/libreoffice/program/wizards/text/TextFieldHandler.pytupdateDocInfoFieldsps	
	
cCs�y�tjtj��}t�}tjd|�|_tjd|�|_tjd|�|_|jd7_xMtjD]B}|j	d�ryyt
|_||_Wq�t
k
r�q�XqyqyWWntk
r�tj�nXdS(Ns%ds%Ys%mis$com.sun.star.text.TextField.DateTime(ttimet	localtimeRtstrftimetDaytYeartMonthRR9RGR-tIsFixedt
DateTimeValueRRRR(RtnowtdtRI((s?/usr/lib64/libreoffice/program/wizards/text/TextFieldHandler.pytupdateDateFields~s"			


cCsUy3x,tjD]!}|jd�r
||_q
q
WWntk
rPtj�nXdS(Ns$com.sun.star.text.TextField.DateTime(RR9RGRQRRR(Rt
_bSetFixedRI((s?/usr/lib64/libreoffice/program/wizards/text/TextFieldHandler.pyt
fixDateFields�s	
cCsYtj}xI|D]A}y|jjs2|j�nWqtk
rP|j�qXqWdS(N(RR9R;RR(R(RtxDependentTextFieldsRI((s?/usr/lib64/libreoffice/program/wizards/text/TextFieldHandler.pytremoveUserFieldByContent�s	

N(t__name__t
__module__RARR9R<RRR#R3R)RRFRJRURWRY(((s?/usr/lib64/libreoffice/program/wizards/text/TextFieldHandler.pyRs							
				(
RRKtcom.sun.star.utilRtcom.sun.star.unoRtcom.sun.star.beansRtobjectR(((s?/usr/lib64/libreoffice/program/wizards/text/TextFieldHandler.pyt<module>s