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/LetterWizardDialogImpl.pyc
�
�\Ofc@s�ddlZddlZddlmZmZmZmZddlmZmZddl	m	Z	ddl
mZddlm
Z
dd	lmZdd
lmZddlmZddlmZdd
lmZddlmZddlmZddlmZddlmZddl m!Z!m"Z"ddl#m$Z$ddl%m&Z&ddl'm(Z(ddl)m*Z*defd��YZ+dS(i����Ni(tLetterWizardDialogtunotHelpIdstHID(tLetterDocumenttBusinessPaperObject(tCGLetterWizardi(t
FileAccess(t
Configuration(tSystemDialog(tDesktop(t
PathSelection(tUnoDataAware(tRadioDataAware(tTerminateListenerProcAdapter(tTextElement(tTextFieldHandler(tOfficeDocument(tYES_NOtDEF_NO(tCloseVetoException(tOPTIMAL(tFULL_UPDATE(tALWAYS_EXECUTEtLetterWizardDialogImplcBs�eZdZdZdZdZd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z d�Z!d �Z"d!�Z#d"�Z$d#�Z%d$�Z&d%�Z'd&�Z(d'�Z)d(�Z*d)�Z+d*�Z,d+�Z-d,�Z.d-�Z/d.�Z0d/�Z1d0�Z2d1�Z3d2�Z4d3�Z5d4�Z6d5�Z7d6�Z8d7�Z9d8�Z:d9�Z;d:�Z<d;�Z=d<�Z>d=�Z?d>�Z@d?�ZAd@�ZBdA�ZCdB�ZDdC�ZEdD�ZFdE�ZGdF�ZHdG�ZIdH�ZJdI�ZKdJ�ZLdK�ZMRS(LiiiicCsdS(N((tselftOldSteptNewStep((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pyt	enterStep1scCsdS(N((RRR((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pyt	leaveStep4scCsttt|�j|�d|_d|_d|_||_t|_	t|_
d|_d|_d|_
d|_dS(N(tsuperRt__init__tNonetlstBusinessStylePostlstPrivateStylePostlstPrivOfficialStylePostxmsftFalsetbSaveSuccesstfilenameChangedtBusCompanyLogotBusCompanyAddresstBusCompanyAddressReceivert	BusFooter(RR$((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pyR7s									cCs�t|_yxd|_t|j�|_t||j�|_|j�|j	�|j
�|j�|j�|j
�|j�|j�|j�|j�|j�t�|_|j|�|j�|jjjr�|jjd|jj_n|jjjr#|jjd|jj_n|jjjrN|jjd|jj_n|jjjry|jjd|jj_n|jjjr�|jjd|jj_n|jjjr�|jjd|jj_n|jj j!j"�dkr�|jj#�n|jj$j%}|j&|�|j'�|j(�|j)�|j*�t+|jj$j,_-|j.|jj$�|j/�|j0�t+|_Wn/t1k
r�|j/�t2j3�t+|_dSXdS(Niiiit(4tTruetrunningtnMaxStepRtqueryTerminationtterminateListenerRtmyLetterDoctdrawNaviBart
buildStep1t
buildStep2t
buildStep3t
buildStep4t
buildStep5t
buildStep6tinitializePathstinitializeSalutationtinitializeGreetingtinsertPathSelectionControlRtmyConfigtinitializeTemplatestinitConfigurationtcp_BusinessLettertcp_Greetingt	resourcestGreetingLabelst
cp_SalutationtSalutationLabelstcp_PrivateOfficialLettertcp_PrivateLettertmyPathSelectiontxSaveTextBoxtTexttlowertinitializePathtxFrametContainerWindowtcreateWindowPeert
insertRoadmaptsetConfigurationt"setDefaultForGreetingAndSalutationtinitializeElementsR%tComponentWindowtEnabletexecuteDialogFromComponenttremoveTerminateListenert
closeDocumentt	Exceptiont	tracebackt	print_exc(RtxMSFtxContainerWindow((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pytstartWizardDsb		























	cCs|jj�t|_dS(N(t
xUnoDialogt
endExecuteR%R.(R((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pytcancelWizard�s
c	Cs�|j|j�|j�t}zoyM|jj�|_|jsWtjj	|j�ry|jj
�|jj�|_n|js�tj
|jdtt|jj|jj�}|dkr�t}tSn|jj|jj|jj�|jj�|jjdk|j_|jjdkr@|jjdkr@t|j_n|j jdk|j_!|j"jdk|j_#|j$jdk|j_%|j&jr�|jjdkr�|j'jdkr�t|j_%n|jjdkr�|j(jdkr�t|j_)q�n|jj*�t+j,|j|jj-|jd�|_.|j.rn|j/�|jj0d�}t1t2d��}t3j4d�|d<d|d_5t3j4d�|d	<d
|d	_5t6|d	_7t3j4d�|d<d|d_5t8|d_7t3j4d�|d<d
|d_5||d_7|j9r(t|d_7n
t|d_7t+j:t;j<|j�|jd|�}t=|j>j?_@nWntAk
r�tBjC�nXWd|r�|jjD�t|_EnXtS(NtMessBoxiitwriter8_templates+com.sun.star.comp.uui.UUIInteractionHandleris com.sun.star.beans.PropertyValuet
AsTemplateitMacroExecutionModeit
UpdateDocModetInteractionHandlert_default(FtswitchToSteptgetCurrentStepR/R-RItgetSelectedPathtsPathtostpathtexiststtriggerPathPickerR'R	tshowMessageBoxR]RRRCtresOverwriteWarningR`tPeerR%R2tsetWizardTemplateDocInfotresLetterWizardDialog_titletresTemplateDescriptiontkillEmptyUserFieldst
chkUseLogotStatet
keepLogoFrametchkBusinessPapertchkPaperCompanyLogotchkUseBendMarkstkeepBendMarksFrametchkUseSignstkeepLetterSignsFrametchkUseAddressReceivertkeepSenderAddressRepeatedFrametoptBusinessLettertchkCompanyReceivertchkPaperCompanyAddresstkeepAddressFrametkillEmptyFramesRtstoret
xTextDocumentR&tsaveConfigurationtcreateInstancetlisttrangeRtcreateUnoStructtNameRtValueRt
bEditTemplatetloadR
t
getDesktopRtCurrentControllertViewSettingstZoomTypeRZR[R\RaR.(Rt	endWizardtanswertxIHt
loadValuestoDoc((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pytfinishWizard�s� 
				


	
		










	



cCs?y|jj}|jt�Wntk
r:tj�nXdS(N(R2RNtcloseR%RR[R\(Rt
xCloseable((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pyRY�s

cCs�d|_d|_t|jj_t|jj_t|jj_t	|jj
_t	|jj_t	|jj_t	|jj
_|j�|j�|jt�|jjjj�dkr�|jj�ndS(NR,(R R"R#R-txDialogModeltlblBusinessStyletEnabledtlstBusinessStyleR|R%tlblPrivOfficialStyletlstPrivOfficialStyletlblPrivateStyletlstPrivateStyletlstBusinessStyleItemChangedtenableSenderReceivertsetPossibleFooterRIRJRKRLRM(R((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pytoptBusinessLetterItemChanged�s		


cCs�d|_d|_t|jj_t|jj_t|jj_t	|jj
_t	|jj_t|jj_t|jj
_|j�|j�|j�|jt	�|jjjj�dkr�|jj�n|jj�dS(NR,(R R!R"R%R�R�R�R�R|R-R�R�R�R�tlstPrivOfficialStyleItemChangedtdisableBusinessPapertdisableSenderReceiverR�RIRJRKRLRMR2tfillSenderWithUserData(R((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pyt optPrivOfficialLetterItemChangeds 		



cCs�d|_d|_t|jj_t|jj_t|jj_t|jj	_t|jj
_t|jj_t|jj
_|j�|j�|j�|jt�|jjjj�dkr�|jj�ndS(NR,(R R!R#R%R�R�R�R�R|R�R�R-R�R�tlstPrivateStyleItemChangedR�R�R�RIRJRKRLRM(R((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pytoptPrivateLetterItemChangeds		



cCs�t|jj_t|jj_t|jj_t|jj_t|jj_t|jj_t|jj	_t|jj
_|jj�dS(N(
R%R�t
lblSenderNameR�tlblSenderStreettlblPostCodeCityt
txtSenderNamettxtSenderStreetttxtSenderPostCodettxtSenderStatet
txtSenderCityR2R�(R((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pytoptSenderPlaceholderItemChanged)scCs�t|jj_t|jj_t|jj_t|jj_t|jj_t|jj_t|jj	_t|jj
_|j�|j�|j
�|j�|j�dS(N(R-R�R�R�R�R�R�R�R�R�R�ttxtSenderNameTextChangedttxtSenderStreetTextChangedttxtSenderPostCodeTextChangedttxtSenderStateTextChangedttxtSenderCityTextChanged(R((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pytoptSenderDefineItemChanged4s



cCst|jj}|j|krp||_|jj|jd|t�|j�|j�|j	t�|j
�ndS(Ni(R�tSelectedItemPosR!R2t
loadAsPreviewt
BusinessFilesR%RTtchkBusinessPaperItemChangedtsetElementst
drawConstants(RtselectedItemPos((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pyR�Cs		


cCsw|jj}|j|krs||_|jj|jd|t�|j�|jt	�|j
t�|j�ndS(Ni(R�R�R#R2R�t
OfficialFilesR%RTtsetPossibleSenderDataR-R�R�(RR�((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pyR�Ns		


cCsh|jj}|j|krd||_|jj|jd|t�|j_|j�|j	t
�ndS(Ni(R�R�R"R2R�tPrivateFilesR%R�RTR�R-(RR�((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pyR�Ys		
cCs-t|jjd�|j_|jj�dS(Ni�(tintt
numLogoHeightR�R(tiHeighttsetFramePosition(R((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pytnumLogoHeightTextChangedcscCs-t|jjd�|j_|jj�dS(Ni�(R�tnumLogoWidthR�R(tiWidthR�(R((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pytnumLogoWidthTextChangedgscCs-t|jjd�|j_|jj�dS(Ni�(R�tnumLogoXR�R(tiXPosR�(R((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pytnumLogoXTextChangedkscCs-t|jjd�|j_|jj�dS(Ni�(R�tnumLogoYR�R(tiYPosR�(R((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pytnumLogoYTextChangedoscCs-t|jjd�|j_|jj�dS(Ni�(R�tnumAddressWidthR�R)R�R�(R((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pytnumAddressWidthTextChangedsscCs-t|jjd�|j_|jj�dS(Ni�(R�tnumAddressXR�R)R�R�(R((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pytnumAddressXTextChangedwscCs-t|jjd�|j_|jj�dS(Ni�(R�tnumAddressYR�R)R�R�(R((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pytnumAddressYTextChanged{scCs-t|jjd�|j_|jj�dS(Ni�(R�tnumAddressHeightR�R)R�R�(R((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pytnumAddressHeightTextChangedscCsLt|jjd�|j_|jjj|jj|j_|jj	�dS(Ni�(
R�tnumFooterHeightR�R+R�R2tDocSizetHeightR�R�(R((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pytnumFooterHeightTextChanged�scCsj|jjdkr�|jjdkr3d|j_n|jjdkrTd|j_nt|jjdt|jjd�t|jjd�t|j	jd�|j
jd�|_t|j
j_t|j
j_t|j
j	_t|j
j
_|jt�nh|jdk	r|jj�nt|j
j_t|j
j_t|j
j	_t|j
j
_|jt�dS(Nig�������?sCompany Logoi�(R}RzR�R�R�RR2R�R�R�R�R(R-R�R�tsetPossibleLogoR%R tremoveFrame(R((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pytchkPaperCompanyLogoItemChanged�s.c	Cs|jjdkrA|jjdkr3d|j_n|jjdkrTd|j_nt|jjdt|jjd�t|jjd�t|j	jd�t|j
jd��|_t|j
j_t|j
j_t|j
j	_t|j
j
_|jjd�r|jjdt�n|jjdkr|jt�qn�|jdk	r`|jj�nt|j
j_t|j
j_t|j
j	_t|j
j
_|jjd�r�|jjdt�n|jt�|jjr�|j�n|jjr|j�ndS(Nig�������?sCompany Addressi�sSender Address(R�RzR�R�R�RR2R�R�R�R�R)R-R�R�t
hasElementt
switchElementR%R�R�R R�toptSenderDefineR�toptSenderPlaceholderR�(R((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pyt!chkPaperCompanyAddressItemChanged�sB	


cCsWd}|jjdkr�y�|jjd|jj�}t|j�}t|j�}t|j	�}td�}t
|jjd|||||�|_|jt
�Wntk
r�tj�nX|jjdkrS|jt
�qSnk|jdk	r|jj�n|jt�|jt�|jjr:|j�n|jjrS|j�ndS(NisReceiver Addressg�?i�t g@@(R R�RzR2tgetFrameByNameR�R�tWidthtHoriOrientPositiontVertOrientPositionRR*tsetPossibleAddressReceiverR%RZR[R\R�R�R�R-R�R�R�R�(RtxReceiverFrametiFrameWidthtiFrameXtiFrameYtiReceiverHeight((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pytchkCompanyReceiverItemChanged�s2	



c
Cs	|jjdkr�|jjdkr3d|j_nt|jjd|jjjt	|jjd�dt	|jjj
|jjd��|_t|j
j_t|j
j_|jt�nJ|jdk	r�|jj�nt|j
j_t|j
j_|jt�dS(Nig�������?tFooteri�(tchkPaperFooterRzR�R�RR2R�R�R�R�R�R+R-R�R�tlblFooterHeightR�R%R R�(R((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pytchkPaperFooterItemChanged�s"cCsuyS|jjd�rRt|jjj�o9|jjdk}|jjd|�nWntk
rpt	j
�nXdS(NsCompany Logoi(R2R�tboolR�RyR�RzR�RZR[R\(Rt
logostatus((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pytchkUseLogoItemChangeds	
cCsuyS|jjd�rRt|jjj�o9|jjdk}|jjd|�nWntk
rpt	j
�nXdS(NsSender Address Repeatedi(R2R�R�R�R�R�RzR�RZR[R\(Rtrstatus((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pyt chkUseAddressReceiverItemChangeds	
cCs8|jjd�r4|jjd|jjdk�ndS(NsLetter Signsi(R2R�R�R�Rz(R((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pytchkUseSignsItemChangeds	cCs8|jjd�r4|jjd|jjdk�ndS(NsSubject Linei(R2R�R�t
chkUseSubjectRz(R((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pytchkUseSubjectItemChanged!s	cCs8|jjd�r4|jjd|jjdk�ndS(Ns
Bend Marksi(R2R�R�R~Rz(R((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pytchkUseBendMarksItemChanged&s	cCs)y|jjdko't|jjj�}|jjdkr�|jjdt|j	jdk|j
j�|jjd||j	jdk|j
j�nV|jjd||j	jdk|j
j�|jjd||j	jdk|j
j�|jt
j�}||_Wntk
r$tj�nXdS(Nis
First PagetStandard(tchkUseFooterRzR�R�R�tchkFooterNextPagesR2tswitchFooterR%tchkFooterPageNumberst	txtFooterRKtgetRoadmapItemByIDRt	RM_FOOTERRZR[R\(RtbFooterPossiblet
BPaperItem((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pytchkUseFooterItemChanged+s&	
		

cCs|j�dS(N(R(R((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pytchkFooterNextPagesItemChangedCscCs|j�dS(N(R(R((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pytchkFooterPageNumbersItemChangedFscCs||jj_|j�dS(N(R�RR�R(RtbState((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pyR�IscCs2|jjd�r.||jj_|j�ndS(NsSender Address Repeated(R2R�R�R�R�R(RR((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pyR�MscCs2|jjd�r.||jj_|j�ndS(NsCompany Logo(R2R�R�RyR�R(RR((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pyR�RscCs|j�dS(N(R(R((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pyttxtFooterTextChangedWscCs5t|jj|jj�}|jd|jj�dS(NtCompany(RR2R]R�tchangeUserFieldContentR�RK(RtmyFieldHandler((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pyR�ZscCs5t|jj|jj�}|jd|jj�dS(NtStreet(RR2R]R�RR�RK(RR((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pyR�`scCs5t|jj|jj�}|jd|jj�dS(NtCity(RR2R]R�RR�RK(RR((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pyR�fscCs5t|jj|jj�}|jd|jj�dS(NtPostCode(RR2R]R�RR�RK(RR((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pyR�lscCs5t|jj|jj�}|jd|jj�dS(NRz(RR2R]R�RR�RK(RR((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pyR�rscCs(|jjj}|jj}||_dS(N(R2R�tDocumentPropertiesttxtTemplateNameRKtTitle(Rt	xDocPropst	TitleName((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pyttxtTemplateNameTextChangedxscCsG|jjd|jj|jjdk�|jjdk|jj_dS(Nt
Salutationi(R2tswitchUserFieldt
lstSalutationRKtchkUseSalutationRzR�R�(R((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pytchkUseSalutationItemChanged}s	cCs,|jjd|jj|jjdk�dS(NR"i(R2R#R$RKR%Rz(R((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pytlstSalutationItemChanged�s	cCsG|jjd|jj|jjdk�|jjdk|jj_dS(NtGreetingi(R2R#tlstGreetingRKtchkUseGreetingRzR�R�(R((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pytchkUseGreetingItemChanged�s	cCsN|jjr%|jjd|j_n|jjrJ|jjd|j_ndS(Ni(R$RKRCRFR)RD(R((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pyRS�scCs,|jjd|jj|jjdk�dS(NR(i(R2R#R)RKR*Rz(R((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pytlstGreetingItemChanged�s	cCs:|jjdkr|j�n|j�|jt�dS(Ni(R|RztenableBusinessPaperR�R�R-(R((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pyR��s

cCs�||jj_||jj_||jj_|s�||jj_||jj_||jj_||jj_||jj_||jj	_||jj
_||jj_||jj_ndS(N(
R�R�R�R�tlblSenderAddressR�R�R�R�R�R�R�R�(RR((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pyR��scCs|jtj�}t|_dS(N(R
RtRM_SENDERRECEIVERR-R�(RR((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pyR��scCs|jtj�}t|_dS(N(R
RR/R%R�(RR((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pyR��scCsiyG|jtj�}t|_|j�|j�|j�|j�Wnt	k
rdt
j�nXdS(N(R
RtRM_BUSINESSPAPERR-R�R�R�R�R�RZR[R\(RR((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pyR-�s	



cCsy�|jtj�}t|_|jdk	r=|jj�n|jdk	r\|jj�n|j	dk	r{|j	j�n|j
dk	r�|j
j�n|jt�|j
t�|jt�|jjd�r�|jjdt�nWntk
rtj�nXdS(NsSender Address(R
RR0R%R�R(R R�R)R+R*R�R-R�R�R2R�R�RZR[R\(RR((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pyR��s(	


	
cCst|jj�|jj_dS(N(ttupleRCRFR�R$tStringItemList(R((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pyR;�scCst|jj�|jj_dS(N(R1RCRDR�R)R2(R((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pyR<�scCs\|jjdkr|jjS|jjdkr8|jjS|jjdkrT|jjSdSdS(Niii(R>t
cp_LetterTypeRARGRHR (R((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pytgetCurrentLetter�s


cCs�|jd}tj|d||jj�|_tj|d||jj�|_tj|d||jj�|_	t
|jd�|jj_
t
|jd�|jj_
t
|j	d�|jj_
d|jj_d|jj_d|jj_tS(	Ns/wizard/lettertbustofftprii(i(i(i(t
sTemplatePathRtgetFolderTitlesRCtdictBusinessTemplateR�tdictOfficialTemplateR�tdictPrivateTemplateR�R1R�R�R2R�R�t
SelectedItemsR-(RR]tsLetterPath((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pyR?�s
cCs�|jjd�|jj_|jjd�|jj_|jjd�|jj_|jjd�|jj_|jjd�|jj_|jj	�dS(NsCompany Logos
Bend MarkssSender Address RepeatedsSubject LinesLetter Signs(
R2R�R�RyR�R~R�RR�tupdateDateFields(R((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pyRTscCsO|jjr|j�n2|jjr2|j�n|jjrK|j�ndS(N(R�RzR�toptPrivOfficialLetterR�toptPrivateLetterR�(R((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pyRRs

cCs tj|jjddd�dS(NtOnNewt	StarBasics.macro:///Template.Correspondence.Placeholder()(RtattachEventCallR2R�(R((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pyt!optReceiverPlaceholderItemChangedscCs tj|jjddd�dS(NRBRCs+macro:///Template.Correspondence.Database()(RRDR2R�(R((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pytoptReceiverDatabaseItemChanged$scCs�|jjr|j�n|jjr2|j�n|j�|j�|j�|j�|j	�|j
�|j�|jjr�|r�|j
�n|jjr�|r�|j�n|jjr�|j�n|jjr�|j�ndS(N(R�RzR�R�R�RRR&R+RRR!toptReceiverDatabaseRFtoptReceiverPlaceholderREtoptCreateLettert optCreateFromTemplateItemChangedtoptMakeChangestoptMakeChangesItemChanged(Rt
privLetter((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pyR�)s&











cCsY|jjd�}x@|D]8}|jj�}t||jj|�}|j�qWdS(sLocalise the templateiN(R2tsearchFillInItemstStringRLRRCt
dictConstantstwrite(RtconstRangeListtittexttaux((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pyR�Cs

cCs]|j�|j|jjttttttg�|jt�|jt�|jd�dS(Ni(	t
addRoadmaptinsertRoadMapItemsRCt
RoadmapLabelsR-R%tsetRoadmapInteractivetsetRoadmapCompletetsetCurrentRoadmapItemID(R((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pyRQLs
	

cCs�t|j|tjjtjj�|_|jjddddd|jj	t
tjt
d�tjt
d��	|j|j_d|j_d	|j_|jj|�dS(
NiiaiFi�i-i/i0smyLetterTemplate.ottRd(RR]tTransferModetSAVEtDialogTypestFILERItinsertRCtreslblTemplatePath_valueR-RtgetHelpIdStringRtsUserTemplatePathtsDefaultDirectorytsDefaultNametsDefaultFiltertaddSelectionListener(R((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pyR=Us	cCs�y�tj|jdt�}|jj|d�tj|jd|j|j	|j
ft�j�t
j|jjd|jt�j�t
j|jjd|jt�j�t
j|jjd|jt�j�t
j|jjd|jt�j�|jj}|jjj}|jjj}t
j|d|jt�j�t
j|d|jt�j�t
j|d|jt�j�t
j|d	|jt�j�t
j|d
|jt�j�t
j|d|jt�j�t
j|d|j t�j�t
j|d|j!t�j�t
j|d	|j"t�j�t
j|d
|j#t�j�t
j|d|j$t�j�t
j|d|j%t�j�t
j|d
|j&t�j�t
j|d|j't�j�t
j|d|j(t�j�t
j|d|j)t�j�t
j|d|j*t�j�t
j|d|j+t�j�t
j|d|j,t�j�t
j|d|j-t�j�t
j|d|j.t�j�t
j/|d|j0t�j�t
j/|d|j1t�j�tj|d|j2|j3ft�j�t
j/|d|j4t�j�t
j/|d|j5t�j�t
j/|d|j6t�j�t
j/|d|j7t�j�t
j/|d|j8t�j�tj|d|j9|j:ft�j�t
j/|d|j;t�j�t
j|d |j<t�j�t
j|d!|j=t�j�tj|d"|j>|j?ft�j�t
j/|d#|j@t�j�t
j/|d$|jAjBt�j�WntCk
r�tDjE�nXdS(%Ns,/org.openoffice.Office.Writer/Wizards/Lettertcp_R3tcp_Styletcp_BusinessPapert
cp_Displaytcp_Widtht	cp_Heighttcp_Xtcp_Yt#cp_PaperCompanyAddressReceiverFieldtcp_PaperFootertcp_PaperFooterHeighttcp_PrintCompanyLogot#cp_PrintCompanyAddressReceiverFieldtcp_PrintLetterSignstcp_PrintSubjectLinetcp_PrintSalutationtcp_PrintBendMarkstcp_PrintGreetingtcp_PrintFooterRERBtcp_SenderAddressTypetcp_SenderCompanyNametcp_SenderStreettcp_SenderPostCodetcp_SenderStatet
cp_SenderCitytcp_ReceiverAddressTypet	cp_Footertcp_FooterOnlySecondPagetcp_FooterPageNumberstcp_CreationTypetcp_TemplateNametcp_TemplatePath(FRtgetConfigurationRootR]R%R>treadConfigurationR
tattachRadioButtonsR�R@RAR-tupdateUIRt
attachListBoxRAR�RGR�RHR�tattachCheckBoxR|tcp_CompanyLogotcp_CompanyAddressR}tattachNumericControlR�R�R�R�R�R�R�R�R�R�R�R�RyR�R�RR%R~R*RtattachEditControlR$R)R�R�R�R�R�R�R�RGRHRR	RRIRKRRIRJRZR[R\(Rtroottcgltcgpltcgpa((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pyR@bs�		

cCs[y9tj|jdt�}|jj|d�|j�Wntk
rVtj	�nXdS(Ns,/org.openoffice.Office.Writer/Wizards/LetterRh(
RR�R]R-R>twriteConfigurationt
commitChangesRZR[R\(RR�((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pyR��s
cCs(|jjrt|_nt|j_dS(N(RItusedPathPickerR-R'R%(R((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pytvalidatePath�s(Nt__name__t
__module__tRM_TYPESTYLER0R/RRRRR_RbR�RYR�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�RRRRRRRRR�R�R�RR�R�R�R�R�R!R&R'R+RSR,R�R�R�R�R-R�R;R<R4R?RTRRRERFR�R�RQR=R@R�R�(((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pyR*s�			
	N		Y									
											*	 																																	
		
	
								
	l		(,R[tos.pathRnRRRRRRRtcommon.FileAccessRtcommon.ConfigurationRtcommon.SystemDialogR	tcommon.DesktopR
tui.PathSelectionRtui.event.UnoDataAwareRtui.event.RadioDataAwareR
tui.event.CommonListenerRttext.TextElementRttext.TextFieldHandlerRtdocument.OfficeDocumentRt'com.sun.star.awt.VclWindowPeerAttributeRRtcom.sun.star.utilRt"com.sun.star.view.DocumentZoomTypeRt#com.sun.star.document.UpdateDocModeRt#com.sun.star.document.MacroExecModeRR(((sG/usr/lib64/libreoffice/program/wizards/letter/LetterWizardDialogImpl.pyt<module>s*"