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/common/NumberFormatter.pyc
�
�\Ofc@s6ddlZddlmZdefd��YZdS(i����N(tLocaletNumberFormattercBs�eZdd�Zed��Zed��Zdd�Zd�Zd�Z	d�Z
d�Z
d�Zd	�Zd
�Z
d�Zd�Zd
�Zd�Zd�Zd�ZRS(cCs�d|_d|_d|_d|_d|_d|_t|_||_|dk	ri|j
d�|_n|j|_
|j|_|jj|�dS(Ni����s!com.sun.star.util.NumberFormatter(tiDateFormatKeytiDateTimeFormatKeytiNumberFormatKeytiTextFormatKeytiTimeFormatKeytiLogicalFormatKeytFalsetbNullDateCorrectionIsDefinedtaLocaletNonetcreateInstancetxNumberFormattert
NumberFormatstxNumberFormatstNumberFormatSettingstxNumberFormatSettingstattachNumberFormatsSupplier(tselft_xNumberFormatsSuppliert_aLocalet_xMSF((s@/usr/lib64/libreoffice/program/wizards/common/NumberFormatter.pyt__init__s									cCs |jd�}|j|�|S(Ns!com.sun.star.util.NumberFormatter(RR(RRRtoNumberFormatter((s@/usr/lib64/libreoffice/program/wizards/common/NumberFormatter.pytcreateNumberFormatter1s	
cCs|jj|t��S(N(RtgetFormatIndexR(RtnumberFormatsSuppliertType((s@/usr/lib64/libreoffice/program/wizards/common/NumberFormatter.pytgetNumberFormatterKeyHs	cCs3|dkr|jj||�S|j||�SdS(N(RR
tconvertNumberToString(Rt_nkeyt	_dblValuet_xNumberFormatter((s@/usr/lib64/libreoffice/program/wizards/common/NumberFormatter.pyRMs	
cCs|jj||�S(N(R
tconvertStringToNumber(RRt_sString((s@/usr/lib64/libreoffice/program/wizards/common/NumberFormatter.pyR"TscCs
||_dS(N(tlDateCorrection(RtdateCorrection((s@/usr/lib64/libreoffice/program/wizards/common/NumberFormatter.pytsetNullDateCorrection[scCsmyJ|jj||jt�}|dkrE|jj||j�}n|SWntk
rhtj�dSXdS(Ni����(RtqueryKeyR
tTruetaddNewt	Exceptiont	tracebackt	print_exc(Rt
_FormatStringtNewFormatKey((s@/usr/lib64/libreoffice/program/wizards/common/NumberFormatter.pytdefineNumberFormat^s		

cCsgyD|jj||t�}|dkr?|jj||�}n|SWntk
rbtj�dSXdS(Ni����(RR'R(R)R*R+R,(RR-RR.((s@/usr/lib64/libreoffice/program/wizards/common/NumberFormatter.pyR/rs		

cCs�y�|jj|�}ttj|d��}tj|d�}t||�}|jd|jj��|j	�j
d�r�|jd|�n.|j	�j
d�r�|jd|�nt�Wntk
r�tj
�nXdS(NtFormatStringRtFormatsSuppliertNumberFormatt	FormatKey(RtgetByKeytstrtHelpertgetUnoPropertyValueR/tsetPropertyValueR
tgetNumberFormatsSuppliertgetPropertySetInfothasPropertyByNameR*R+R,(Rt_xFormatObjectt
_FormatKeyt_oNumberFormattert
xNumberFormatR0toLocaleR.((s@/usr/lib64/libreoffice/program/wizards/common/NumberFormatter.pytsetNumberFormats&					

cCs�|js�tj|jd�}tj|�}tjjj�}|j	ddd�|j
�}|j
�}|d}|||_|jS|jSdS(NtNullDateiliii�]i\&(R	R6tgetUnoStructValueRtconvertUnoDatetoIntegertjavatutiltCalendartgetInstancetsettgetTimeR$(Rt	dNullDatet	lNullDatetoCaltdTimetlTimetlDBNullDate((s@/usr/lib64/libreoffice/program/wizards/common/NumberFormatter.pytgetNullDateCorrection�s	

cCs�dtd�dtd�d}|jj||jt�|_y1|jdkrp|jj||j�|_nWn9tk
r�tj	�|jj
tj|j�|_nX|jS(Ns[=1]i&s;[=0]ip�s;0i����(
R5RR'R
R(RR)R*R+R,tgetStandardFormatR2tLOGICAL(RR0((s@/usr/lib64/libreoffice/program/wizards/common/NumberFormatter.pyt#setBooleanReportDisplayNumberFormat�s"		

	cCs7|jdkr0|jjtj|j�|_n|jS(Ni����(RRRRR2tDATER
(R((s@/usr/lib64/libreoffice/program/wizards/common/NumberFormatter.pytgetDateFormatKey�s	cCs7|jdkr0|jjtj|j�|_n|jS(Ni����(RRRRR2tDATETIMER
(R((s@/usr/lib64/libreoffice/program/wizards/common/NumberFormatter.pytgetDateTimeFormatKey�s	cCs7|jdkr0|jjtj|j�|_n|jS(Ni����(RRRRR2RSR
(R((s@/usr/lib64/libreoffice/program/wizards/common/NumberFormatter.pytgetLogicalFormatKey�s	cCs7|jdkr0|jjtj|j�|_n|jS(Ni����(RRRRR2tNUMBERR
(R((s@/usr/lib64/libreoffice/program/wizards/common/NumberFormatter.pytgetNumberFormatKey�s	cCs7|jdkr0|jjtj|j�|_n|jS(Ni����(RRRRR2tTEXTR
(R((s@/usr/lib64/libreoffice/program/wizards/common/NumberFormatter.pytgetTextFormatKey�s	cCs7|jdkr0|jjtj|j�|_n|jS(Ni����(RRRRR2tTIMER
(R((s@/usr/lib64/libreoffice/program/wizards/common/NumberFormatter.pytgetTimeFormatKey�s	N(t__name__t
__module__RRtclassmethodRRRR"R&R/RARQRTRVRXRYR[R]R_(((s@/usr/lib64/libreoffice/program/wizards/common/NumberFormatter.pyRs"				
								(R+tcom.sun.star.langRtobjectR(((s@/usr/lib64/libreoffice/program/wizards/common/NumberFormatter.pyt<module>s