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/fax/FaxWizardDialogImpl.pyo
�
�\Ofc@s�ddlZddlZddlmZmZmZddlmZddlmZddlm	Z	ddl
mZdd	lm
Z
dd
lmZddlmZddlmZdd
lmZddlmZddlmZddlmZddlmZddlmZddl m!Z!ddl"m#Z#m$Z$ddl%m&Z&ddl'm(Z(ddl)m*Z*ddl+m,Z,defd��YZ-dS(i����Ni(tFaxWizardDialogtunotHID(tCGFaxWizard(tFaxDocumenti(t
PathSelection(tUnoDataAware(tRadioDataAware(tTerminateListenerProcAdapter(tTextFieldHandler(tTextElement(t
Configuration(tSystemDialog(tNoValidPathException(tHelpIds(t
FileAccess(tDesktop(tOfficeDocument(tYES_NOtDEF_NO(tCloseVetoException(tOPTIMAL(tFULL_UPDATE(tALWAYS_EXECUTEtFaxWizardDialogImplcBs�eZd�Zd�ZdZdZd�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�Z7RS(6cCsdS(N((tselftnOldSteptnNewStep((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pyt	leaveStep-scCsdS(N((RRR((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pyt	enterStep0siicCs>tt|�j|�d|_d|_t|_t|_dS(N(	tsuperRt__init__tNonetlstBusinessStylePostlstPrivateStylePostFalsetbSaveSuccesstfilenameChanged(Rtxmsf((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pyR6s
			cCs�t|_yjd|_t|j�|_t||j�|_|j�|j	�|j
�|j�|j�|j
�|j�|j�|j�|j�|j�|j|�|j�|jjjj�dkr�|jj�n|jjj}|j|�|j�|j�|j�|j �t!|jjj"_#|j$|jj�|j%�|j&�t!|_Wn/t'k
r�|j%�t(j)�t!|_dSXdS(Nit(*tTruetrunningtnMaxStepRtqueryTerminationtterminateListenerRtmyFaxDoctdrawNaviBart
buildStep1t
buildStep2t
buildStep3t
buildStep4t
buildStep5tinitializeSalutationtinitializeGreetingtinitializeCommunicationtinitializePathstinsertPathSelectionControltinitializeTemplatestinitConfigurationtmyPathSelectiontxSaveTextBoxtTexttlowertinitializePathtxFrametContainerWindowtcreateWindowPeert
insertRoadmaptsetConfigurationtH_FaxWizardDialogImpl__setDefaultForGreetingAndSalutationAndCommunicationtinitializeElementsR#tComponentWindowtEnabletexecuteDialogFromComponenttremoveTerminateListenert
closeDocumentt	Exceptiont	tracebackt	print_exc(RtxMSFtxContainerWindow((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pytstartWizard=sH		























	cCs|jj�t|_dS(N(t
xUnoDialogt
endExecuteR#R)(R((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pytcancelWizard~s
cCs�|j|j�|j�t}z�y�|jj�|_|jsWtjj	|j�ry|jj
�|jj�|_n|js�tj
|jdtt|jj|jj�}|dkr�t}tSn|jj|jj|jj�|jj�t|jj�|j_t|jj�|j_ |jj!�t"j#|j|jj$|jd�|_%|j%r�|j&�|jj'd�}t(t)d��}t*j+d�|d<d|d_,t|d_-t*j+d�|d	<d
|d	_,t.|d	_-t*j+d�|d<d|d_,t/|d_-t*j+d�|d<d
|d_,||d_-|j0r]t|d_-n
t|d_-t"j1t2j3|j�|jd|�}t4|j5j6_7nWnt8k
r�t9j:�nXWd|r�|jj;�t|_<nXtS(NtMessBoxitwriter8_templates+com.sun.star.comp.uui.UUIInteractionHandleris com.sun.star.beans.PropertyValueit
AsTemplateitMacroExecutionModeit
UpdateDocModetInteractionHandlert_default(=tswitchToSteptgetCurrentStepR*R(R;tgetSelectedPathtsPathtostpathtexiststtriggerPathPickerR%RtshowMessageBoxRORRt	resourcestresOverwriteWarningRRtPeerR#R-tsetWizardTemplateDocInfotresFaxWizardDialog_titletresTemplateDescriptiontkillEmptyUserFieldstboolt
chkUseLogotStatet
keepLogoFrametchkUseCommunicationTypet
keepTypeFrametkillEmptyFramesRtstoret
xTextDocumentR$tsaveConfigurationtcreateInstancetlisttrangeRtcreateUnoStructtNametValueRRt
bEditTemplatetloadRt
getDesktopRtCurrentControllertViewSettingstZoomTypeRLRMRNRSR)(Rt	endWizardtanswertxIHt
loadValuestoDoc((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pytfinishWizard�sv 
				


	
		











	



cCs9y|jjjt�Wntk
r4tj�nXdS(N(R-R@tcloseR#RRMRN(R((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pyRK�s
cCsY|jjd�}x@|D]8}|jj�}t||jj|�}|j�qWdS(sLocalise the templateiN(R-tsearchFillInItemstStringR>R
Ret
dictConstantstwrite(RtconstRangeListtittexttaux((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pyt
drawConstants�s

cCsZ|j�|j|jjtttttg�|jt�|jt�|jd�dS(Ni(	t
addRoadmaptinsertRoadMapItemsRet
RoadmapLabelsR(R#tsetRoadmapInteractivetsetRoadmapCompletetsetCurrentRoadmapItemID(R((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pyRC�s


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"i#smyFaxTemplate.ottRV(RROtTransferModetSAVEtDialogTypestFILER;tinsertRetreslblTemplatePath_valueR(RtgetHelpIdStringRtsUserTemplatePathtsDefaultDirectorytsDefaultNametsDefaultFiltertaddSelectionListener(R((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pyR8�s		cCs�y�|jd|_tj|d|j|jj�|_tj|d|j|jj�|_t	|jd�|j
j_t	|jd�|j
j
_d|j
j_d|j
j
_tSWntk
r�tj�tSXdS(Ns/wizard/faxtbustprii(i(i(t
sTemplatePathtsFaxPathRtgetFolderTitlesRetdictBusinessTemplatet
BusinessFilestdictPrivateTemplatetPrivateFilesttupletxDialogModeltlstBusinessStyletStringItemListtlstPrivateStylet
SelectedItemsR(R
RMRNR#(RRO((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pyR9�s

cCsb|jjd�|jj_|jjd�|jj_|jjd�|jj_|jj�dS(NsCompany LogosSubject LinetDate(R-t
hasElementR�RmtEnabledt
chkUseSubjectt
chkUseDatetupdateDateFields(R((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pyRFscCst|jj�|jj_dS(N(R�RetSalutationLabelsR�t
lstSalutationR�(R((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pyR4
scCst|jj�|jj_dS(N(R�RetGreetingLabelsR�tlstGreetingR�(R((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pyR5scCst|jj�|jj_dS(N(R�RetCommunicationLabelsR�tlstCommunicationTypeR�(R((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pyR6scCs|jjs)|jj|jjd�n|jjsR|jj|jjd�n|jjs{|jj|jjd�ndS(Ni(	R�R=tsetTextReR�R�R�R�R�(R((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pyt4__setDefaultForGreetingAndSalutationAndCommunications	cCs�y�t�|_tj|jdt�}|jj|d�tj|jd|j	|j
ft�j�t
j|jjd|jt�j�t
j|jjd|jt�j�|jj}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|jt�j�t
j|d|jt�j�t
j|d
|jt�j�t
j|d|jt�j�tj|d|j|j ft�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�tj|d|j'|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|j/j0t�j�Wnt1k
r�t2j3�nXdS(Ns)/org.openoffice.Office.Writer/Wizards/Faxtcp_t
cp_FaxTypetcp_Styletcp_PrintCompanyLogotcp_PrintSubjectLinetcp_PrintSalutationtcp_PrintDatetcp_PrintCommunicationTypetcp_PrintGreetingtcp_PrintFootert
cp_Salutationtcp_Greetingtcp_CommunicationTypetcp_SenderAddressTypetcp_SenderCompanyNametcp_SenderStreettcp_SenderPostCodetcp_SenderStatet
cp_SenderCitytcp_SenderFaxtcp_ReceiverAddressTypet	cp_Footertcp_FooterOnlySecondPagetcp_FooterPageNumberstcp_CreationTypetcp_TemplateNametcp_TemplatePath(4RtmyConfigRtgetConfigurationRootROR#treadConfigurationRtattachRadioButtonstoptBusinessFaxt
optPrivateFaxR(tupdateUIRt
attachListBoxtcp_BusinessFaxR�t
cp_PrivateFaxR�tattachCheckBoxRmR�tchkUseSalutationR�RptchkUseGreetingtchkUseFootertattachEditControlR�R�R�toptSenderDefinetoptSenderPlaceholdert
txtSenderNamettxtSenderStreetttxtSenderPostCodettxtSenderStatet
txtSenderCityttxtSenderFaxtoptReceiverDatabasetoptReceiverPlaceholdert	txtFootertchkFooterNextPagestchkFooterPageNumberstoptCreateFaxtoptMakeChangesttxtTemplateNameR;R<RLRMRN(Rtroottcgl((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pyR:'s�	
								

	
cCs[y9tj|jdt�}|jj|d�|j�Wntk
rVtj	�nXdS(Ns)/org.openoffice.Office.Writer/Wizards/FaxR�(
RR�ROR(R�twriteConfigurationt
commitChangesRLRMRN(RR�((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pyRuls
cCs6|jjr|j�n|jjr2|j�ndS(N(R�RntoptBusinessFaxItemChangedR�toptPrivateFaxItemChanged(R((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pyRDus
cCsjd|_t|jj_t|jj_t|jj_t|jj	_|j
�|j�|jt�dS(N(
R R"R(R�tlblBusinessStyleR�R�R#tlblPrivateStyleR�tlstBusinessStyleItemChangedt*_FaxWizardDialogImpl__enableSenderReceivert'_FaxWizardDialogImpl__setPossibleFooter(R((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pyR�|s	

cCsg|jj}|j|krc||_|jj|jd|t�|j�|j�|j	�ndS(Ni(
R�tSelectedItemPosR!R-t
loadAsPreviewR�R#RFtsetElementsR�(RtselectedItemPos((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pyR�s		

cCsjd|_t|jj_t|jj_t|jj_t|jj	_|j
�|j�|jt�dS(N(
R R!R#R�RR�R�R(RR�tlstPrivateStyleItemChangedt+_FaxWizardDialogImpl__disableSenderReceiverR(R((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pyR�s	

cCs]|jj}|j|krY||_|jj|jd|t�|j�|j�ndS(Ni(	R�RR"R-RR�R#RFR(RR	((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pyR
�s		
cCs"|jjj}|jj|_dS(N(R-RttDocumentPropertiesR�R=tTitle(Rt	xDocProps((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pyttxtTemplateNameTextChanged�scCs�t|jj_t|jj_t|jj_t|jj_t|jj_t|jj_t|jj	_t|jj
_t|jj_t|jj_|j
j�dS(N(R#R�t
lblSenderNameR�tlblSenderStreettlblPostCodeCitytlblSenderFaxR�R�R�R�R�R�R-tfillSenderWithUserData(R((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pytoptSenderPlaceholderItemChanged�scCs�t|jj_t|jj_t|jj_t|jj_t|jj_t|jj_t|jj	_t|jj
_t|jj_t|jj_t
|jj|jj�|_|j�|j�|j�|j�|j�|j�dS(N(R(R�RR�RRRR�R�R�R�R�R�R	R-RORttmyFieldHandlerttxtSenderNameTextChangedttxtSenderStreetTextChangedttxtSenderPostCodeTextChangedttxtSenderStateTextChangedttxtSenderCityTextChangedttxtSenderFaxTextChanged(R((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pytoptSenderDefineItemChanged�s$




cCs|jjd|jj�dS(NtCompany(RtchangeUserFieldContentR�R=(R((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pyR�s	cCs|jjd|jj�dS(NtStreet(RRR�R=(R((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pyR�s	cCs|jjd|jj�dS(NtCity(RRR�R=(R((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pyR�s	cCs|jjd|jj�dS(NtPostCode(RRR�R=(R((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pyR�s	cCs|jjd|jj�dS(NRn(RRR�R=(R((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pyR�s	cCs|jjd|jj�dS(NtFax(RRR�R=(R((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pyR�s	cCs�|jjr|j�n|jjr2|j�n|j�|j�|j�|j�|j	�|j
�|j�|j�|j
jr�|j�n|jjr�|j�n|jjr�|j�n|jjr�|j�ndS(N(R�RnRR�RtchkUseLogoItemChangedtchkUseSubjectItemChangedtchkUseSalutationItemChangedtchkUseGreetingItemChangedtchkUseCommunicationItemChangedtchkUseDateItemChangedtchkUseFooterItemChangedRR�toptReceiverDatabaseItemChangedR�t!optReceiverPlaceholderItemChangedR�t optCreateFromTemplateItemChangedR�toptMakeChangesItemChanged(R((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pyR�s(












cCs8|jjd�r4|jjdt|jj��ndS(NsCompany Logo(R-R�t
switchElementRlRmRn(R((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pyR$scCs8|jjd�r4|jjdt|jj��ndS(NsSubject Line(R-R�R/RlR�Rn(R((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pyR%
scCs8|jjd�r4|jjdt|jj��ndS(NR�(R-R�R/RlR�Rn(R((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pyR)scCs)yt|jj�o't|jjj�}t|jj�r�|jjdtt|j	j�|j
j�|jjd|t|j	j�|j
j�nV|jjd|t|j	j�|j
j�|jjd|t|j	j�|j
j�|jt
j�}||_Wntk
r$tj�nXdS(Ns
First PagetStandard(RlR�RnR�R�R�R-tswitchFooterR#R�R�R=tgetRoadmapItemByIDRt	RM_FOOTERRLRMRN(RtbFooterPossiblet
BPaperItem((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pyR*s*




cCs|j�dS(N(R*(R((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pytchkFooterNextPagesItemChanged.scCs|j�dS(N(R*(R((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pytchkFooterPageNumbersItemChanged1scCs/|jjdtt|jj�|jj�dS(Ns
First Page(R-R1R(RlR�RnR�R=(R((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pyttxtFooterTextChanged4scCsG|jjd|jjt|jj��t|jj�|jj_dS(Nt
Salutation(	R-tswitchUserFieldR�R=RlR�RnR�R�(R((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pyR&9scCs,|jjd|jjt|jj��dS(NR9(R-R:R�R=RlR�Rn(R((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pytlstSalutationItemChanged?scCsG|jjd|jjt|jj��t|jj�|jj_dS(NtCommunicationType(	R-R:R�R=RlRpRnR�R�(R((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pyR(Cs	cCs,|jjd|jjt|jj��dS(NR<(R-R:R�R=RlRpRn(R((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pytlstCommunicationItemChangedJs	cCsG|jjd|jjt|jj��t|jj�|jj_dS(NtGreeting(	R-R:R�R=RlR�RnR�R�(R((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pyR'OscCs,|jjd|jjt|jj��dS(NR>(R-R:R�R=RlR�Rn(R((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pytlstGreetingItemChangedUscCs2||jj_|s$d|j_n|j�dS(Ni(R�R�R�RnR*(RtbState((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pyt__setPossibleFooterYscCs tj|jjddd�dS(NtOnNewt	StarBasics.macro:///Template.Correspondence.Placeholder()(RtattachEventCallR-Rt(R((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pyR,`scCs tj|jjddd�dS(NRBRCs+macro:///Template.Correspondence.Database()(RRDR-Rt(R((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pyR+escCs|jtj�}t|_dS(N(R2RtRM_SENDERRECEIVERR(R�(RR5((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pyt__enableSenderReceiverjscCs|jtj�}t|_dS(N(R2RRER#R�(RR5((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pyt__disableSenderReceiveroscCs(|jjrt|_nt|j_dS(N(R;tusedPathPickerR(R%R#(R((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pytvalidatePathts(8t__name__t
__module__RRRER3RRQRTR�RKR�RCR8R9RFR4R5R6RER:RuRDR�RRR
RRRRRRRRRRR$R%R)R*R6R7R8R&R;R(R=R'R?RR,R+RRRI(((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pyR+sl				A		J						
								E							
		
																										(.RMtos.pathR`RRRRRtui.PathSelectionRtui.event.UnoDataAwareRtui.event.RadioDataAwareRtui.event.CommonListenerRttext.TextFieldHandlerR	ttext.TextElementR
tcommon.ConfigurationRtcommon.SystemDialogRtcommon.NoValidPathExceptionR
tcommon.HelpIdsRtcommon.FileAccessRtcommon.DesktopRtdocument.OfficeDocumentRt'com.sun.star.awt.VclWindowPeerAttributeRRtcom.sun.star.utilRt"com.sun.star.view.DocumentZoomTypeRt#com.sun.star.document.UpdateDocModeRt#com.sun.star.document.MacroExecModeRR(((sA/usr/lib64/libreoffice/program/wizards/fax/FaxWizardDialogImpl.pyt<module>s.