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/letter/LetterDocument.pyo
�
�\Ofc@s2ddlmZmZmZmZddlmZddlmZddl	m
Z
ddlmZddl
mZddlmZdd	lmZdd	lmZdd
lmZddlmZddlmZdd
lmZddlmZddl m!Z!defd��YZ"de#fd��YZ$dS(i(tTextDocumentt	tracebacktTextFieldHandlert
Configuration(tTextSectionHandleri����(t
BorderLine(tPARAGRAPH_BREAK(tCENTER(tCURRENT(tARABIC(tNONE(t
PAGE_FRAME(tAT_PAGE(tFIX(tTHROUGHT(tBOLD(tUnknownPropertyExceptiontLetterDocumentcBsYeZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
RS(	cCsPtt|�j||dd�t|_t|_t|_t|_t|_	dS(NtWIZARD_LIVE_PREVIEW(
tsuperRt__init__tNonetTruet
keepLogoFrametkeepBendMarksFrametkeepLetterSignsFrametkeepSenderAddressRepeatedFrametkeepAddressFrame(tselftxMSFtlistener((s?/usr/lib64/libreoffice/program/wizards/letter/LetterDocument.pyR&s				cCsYy7t|j|j�}|jjj|�}||_Wntk
rTtj�nXdS(N(	RRt
xTextDocumenttTextSectionst	getByNamet	IsVisiblet	ExceptionRt	print_exc(RtsElementtbStatetmySectionHandlertoSection((s?/usr/lib64/libreoffice/program/wizards/letter/LetterDocument.pyt
switchElement/s

cCs#t|j|j�}|j�dS(N(RRtupdateDateFields(RtFH((s?/usr/lib64/libreoffice/program/wizards/letter/LetterDocument.pyR*9scCs2|jdk	r.y�|jj�|jj}|jd�}|j|�}|r�t|_|j}||_|r�|j	j
�}	|	jt�|j
|	tt�|	jdt�|jjd�}
|
jdt�t|
_|j|j|
t�q�n	t|_|jj�Wq.tk
r*tj�q.XndS(Nt
PageStylest
ParaAdjusts&com.sun.star.text.TextField.PageNumbertSubType(RRtlockControllerst
StyleFamiliesR!Rt
FooterIsOnt
FooterTexttStringtTexttcreateTextCursortgotoEndtFalsetinsertControlCharacterRtsetPropertyValueRtcreateInstanceRR	t
NumberingTypetinsertTextContenttEndtunlockControllersR#RR$(Rt
sPageStyleR&tbPageNumbertsTexttxNameAccesstxPageStyleCollectiont
xPageStyletxFooterTexttmyCursortxPageNumberField((s?/usr/lib64/libreoffice/program/wizards/letter/LetterDocument.pytswitchFooter>s4
			
	
				
cCs9|jdk	r1t|j|j�}|j|�StSdS(N(RRRRthasTextSectionByNameR7(RR%tSH((s?/usr/lib64/libreoffice/program/wizards/letter/LetterDocument.pyt
hasElement`s
cCsBt|j|j�}|r.|j||�n|j|d�dS(Nt(RRRtchangeUserFieldContent(Rt
sFieldNametsNewContentR&tmyFieldHandler((s?/usr/lib64/libreoffice/program/wizards/letter/LetterDocument.pytswitchUserFieldgs
cCs�y�t|j|j�}tj|jdt�}|jd|jd��|jd|jd��|jd|jd��|jd|jd	��|jd
|jd��Wntk
r�t	j
�nXdS(Nsorg.openoffice.UserProfile/DatatCompanytotStreettstreettPostCodet
postalcodetCitytltStatetst(RRRtgetConfigurationRootRR7RMR!R#RR$(RRPtoUserDataAccess((s?/usr/lib64/libreoffice/program/wizards/letter/LetterDocument.pytfillSenderWithUserDataos"
cCs#t|j|j�}|j�dS(N(RRRtremoveUserFieldByContent(RRP((s?/usr/lib64/libreoffice/program/wizards/letter/LetterDocument.pytkillEmptyUserFields�scCsHy&|js=|jd|j�}|dk	r=|j�q=n|jsw|jd|j�}|dk	rw|j�qwn|js�|jd|j�}|dk	r�|j�q�n|js�|jd|j�}|dk	r�|j�q�n|js%|jd|j�}|dk	r%|j�q%nWnt	k
rCt
j�nXdS(NsCompany Logos
Bend MarkssLetter SignssSender Address RepeatedsSender Address(RtgetFrameByNameRRtdisposeRRRRR#RR$(RtxTF((s?/usr/lib64/libreoffice/program/wizards/letter/LetterDocument.pytkillEmptyFrames�s8					
(t__name__t
__module__RR)R*RHRKRQR^R`Rd(((s?/usr/lib64/libreoffice/program/wizards/letter/LetterDocument.pyR$s			
		"				tBusinessPaperObjectcBs#eZd�Zd�Zd�ZRS(cCs�||_||_||_||_||_d|_yY|jjd�|_|j�t	|j_
t|j_t
|j_t|j_d|j_t�}d|_||j_||j_||j_||j_t|j_|jjj�}|jt�|jj}	|	j||jt�|jj}
|
j�}|jdt�|jdd�|jdd�|jd	d
�|
j ||t�Wnt!k
r�t"j#�nXdS(Nscom.sun.star.text.TextFramei���it
CharWeightt	CharColori���tCharFontNametAlbanyt
CharHeighti($RtiWidthtiHeighttiXPostiYPosRtxFrameR:tsetFramePositionRt
AnchorTypeR
tSizeTypeRtTextWrapRtOpaquet	BackColorRtOuterLineWidtht
LeftBordertRightBordert	TopBordertBottomBorderR7tPrintR4R5R6R<R9RtinsertStringR#RR$(RRt	FrameTexttWidthtHeighttXPostYPostmyBordertxTextCursortxTextt
xFrameTexttxFrameCursor((s?/usr/lib64/libreoffice/program/wizards/letter/LetterDocument.pyR�sJ							
		
	
cCs�ypt|j_t|j_|j|j_|j|j_|j	|j_
|j|j_t
|j_t
|j_Wntk
r�tj�nXdS(N(tNONEHORIRqt
HoriOrienttNONEVERTt
VertOrientRnR�RmR�RotHoriOrientPositionRptVertOrientPositionRtHoriOrientRelationtVertOrientRelationR#RR$(R((s?/usr/lib64/libreoffice/program/wizards/letter/LetterDocument.pyRr�s
cCs^|jdk	rZy|jjj|j�WqZtk
r<qZtk
rVtj�qZXndS(N(	RqRRR4tremoveTextContentRR#RR$(R((s?/usr/lib64/libreoffice/program/wizards/letter/LetterDocument.pytremoveFrame�s

(ReRfRRrR�(((s?/usr/lib64/libreoffice/program/wizards/letter/LetterDocument.pyRg�s	-	
N(%ttext.TextDocumentRRRRttext.TextSectionHandlerRtcom.sun.star.tableRt"com.sun.star.text.ControlCharacterRt"com.sun.star.style.ParagraphAdjustRt com.sun.star.text.PageNumberTypeRt com.sun.star.style.NumberingTypeR	t!com.sun.star.text.HoriOrientationR
R�t!com.sun.star.text.VertOrientationR�t com.sun.star.text.RelOrientationRt'com.sun.star.text.TextContentAnchorTypeRtcom.sun.star.text.SizeTypeR
tcom.sun.star.text.WrapTextModeRtcom.sun.star.awt.FontWeightRtcom.sun.star.beansRRtobjectRg(((s?/usr/lib64/libreoffice/program/wizards/letter/LetterDocument.pyt<module>s "�