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/web/export/AbstractExporter.pyc
�
�\Ofc@s�ddlZddlmZddlTddlmZddlmZdd	lmZdd
l	m
Z
ddlmZddl
mZdd
lmZddlmZdefd��YZdS(i����Ni(tExporteri(t*i(tDesktop(t
Properties(t
FileAccess(tOfficeDocument(tTextDocument(tIllegalArgumentException(t
NEVER_EXECUTE(t	NO_UPDATEtAbstractExportercBsneZd
Zd
Zd�Zd�Zd�Zd�Zd�Z	d�Z
d�Zd�Zd�Z
d	�ZRS(cCs
||_dS(N(texporter(tselft	exporter_((sE/usr/lib64/libreoffice/program/wizards/web/export/AbstractExporter.pyt__init__%scCsXt�}||d<t|�dkr2||d<n|j�}|j|t|��dS(Nt
FilterNameit
FilterData(RtlentgetProperties1t
storeToURLttuple(RtofficeDocumenttpropst	targetUrlt
filterNamet
filterDatato((sE/usr/lib64/libreoffice/program/wizards/web/export/AbstractExporter.pyR(s	

cCs |j|t�|||�dS(N(RR(RRRRR((sE/usr/lib64/libreoffice/program/wizards/web/export/AbstractExporter.pytstoreToURL10scCs |j|t�||g�dS(N(RR(RRRR((sE/usr/lib64/libreoffice/program/wizards/web/export/AbstractExporter.pytstoreToURL23scCs|jj|�jS(N(tcp_Argumentst
getElementtcp_Value(Rtnametp((sE/usr/lib64/libreoffice/program/wizards/web/export/AbstractExporter.pytgetArgument6scCs�d}y�tj|�}ttd��}tjdt�|d<tjdt�|d<tjdt	�|d<|j
|jddt|��}Wnt
k
r�tj�nXy|j||�Wntk
r�tj�nX|S(	NitHiddenitMacroExecutionModeit
UpdateDocModeit_blank(tNoneRt
getDesktoptlisttrangeRtcreatePropertytTrueRR	tloadComponentFromURLtcp_URLRRt	tracebackt	print_exct	pageCountt	Exception(RtdoctxmsftdocumenttdesktopR((sE/usr/lib64/libreoffice/program/wizards/web/export/AbstractExporter.pytopenDocument9s%

cCs3y|jt�Wntk
r.tj�nXdS(N(tclosetFalseR2R/R0(RR3R4((sE/usr/lib64/libreoffice/program/wizards/web/export/AbstractExporter.pyt
closeDocumentMs
cCsp|jtkr$tj|�|_nH|jtkrHtj|�|_n$|jtkrltj|�|_ndS(N(	tappTypet
WRITER_DOCRtgetPageCounttpagestIMPRESS_DOCRt
getSlideCounttDRAW_DOC(RR3R5((sE/usr/lib64/libreoffice/program/wizards/web/export/AbstractExporter.pyR1SscCsJ|jdkrCyt|�|_WqCtk
r?tj�qCXn|jS(N(t
fileAccessR'RR2R/R0(RR4((sE/usr/lib64/libreoffice/program/wizards/web/export/AbstractExporter.pyt
getFileAccess[s
cCs.|jjr*|j|�j|�|_ndS(N(Rt	cp_BinaryRCtgetSizet	sizeBytes(RR3turlR4((sE/usr/lib64/libreoffice/program/wizards/web/export/AbstractExporter.pytcalcFileSizecsN(t__name__t
__module__R'RRBRRRRR"R7R:R1RCRH(((sE/usr/lib64/libreoffice/program/wizards/web/export/AbstractExporter.pyR
 s									(R/Rt
TypeDetectiontcommon.DesktopRtcommon.PropertiesRtcommon.FileAccessRtdocument.OfficeDocumentRttext.TextDocumentRtcom.sun.star.langRt#com.sun.star.document.MacroExecModeRt#com.sun.star.document.UpdateDocModeR	R
(((sE/usr/lib64/libreoffice/program/wizards/web/export/AbstractExporter.pyt<module>s