diff options
Diffstat (limited to 'xmlsecurity/source/dialogs/warnings.cxx')
-rw-r--r-- | xmlsecurity/source/dialogs/warnings.cxx | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/xmlsecurity/source/dialogs/warnings.cxx b/xmlsecurity/source/dialogs/warnings.cxx index b92266f427d7..a603731c4b2d 100644 --- a/xmlsecurity/source/dialogs/warnings.cxx +++ b/xmlsecurity/source/dialogs/warnings.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -44,7 +44,7 @@ using namespace ::com::sun::star::security; /* HACK: disable some warnings for MS-C */ #ifdef _MSC_VER -#pragma warning (disable : 4355) // 4355: this used in initializer-list +#pragma warning (disable : 4355) // 4355: this used in initializer-list #endif using namespace ::com::sun::star; @@ -52,19 +52,19 @@ using namespace ::com::sun::star; MacroWarning::MacroWarning( Window* _pParent, uno::Reference< dcss::xml::crypto::XSecurityEnvironment >& _rxSecurityEnvironment, cssu::Reference< dcss::security::XCertificate >& _rxCert ) - :ModalDialog ( _pParent, XMLSEC_RES( RID_XMLSECTP_MACROWARN ) ) - ,maDocNameFI ( this, ResId( FI_DOCNAME ) ) - ,maDescr1aFI ( this, ResId( FI_DESCR1A ) ) - ,maDescr1bFI ( this, ResId( FI_DESCR1B ) ) - ,maSignsFI ( this, ResId( FI_SIGNS ) ) - ,maViewSignsBtn ( this, ResId( PB_VIEWSIGNS ) ) - ,maDescr2FI ( this, ResId( FI_DESCR2 ) ) - ,maAlwaysTrustCB ( this, ResId( CB_ALWAYSTRUST ) ) - ,maBottomSepFL ( this, ResId( FL_BOTTOM_SEP ) ) - ,maEnableBtn ( this, ResId( PB_DISABLE ) ) - ,maDisableBtn ( this, ResId( PB_DISABLE ) ) - ,maHelpBtn ( this, ResId( BTN_HELP ) ) - ,mbSignedMode ( true ) + :ModalDialog ( _pParent, XMLSEC_RES( RID_XMLSECTP_MACROWARN ) ) + ,maDocNameFI ( this, ResId( FI_DOCNAME ) ) + ,maDescr1aFI ( this, ResId( FI_DESCR1A ) ) + ,maDescr1bFI ( this, ResId( FI_DESCR1B ) ) + ,maSignsFI ( this, ResId( FI_SIGNS ) ) + ,maViewSignsBtn ( this, ResId( PB_VIEWSIGNS ) ) + ,maDescr2FI ( this, ResId( FI_DESCR2 ) ) + ,maAlwaysTrustCB ( this, ResId( CB_ALWAYSTRUST ) ) + ,maBottomSepFL ( this, ResId( FL_BOTTOM_SEP ) ) + ,maEnableBtn ( this, ResId( PB_DISABLE ) ) + ,maDisableBtn ( this, ResId( PB_DISABLE ) ) + ,maHelpBtn ( this, ResId( BTN_HELP ) ) + ,mbSignedMode ( true ) { FreeResource(); @@ -76,7 +76,7 @@ MacroWarning::MacroWarning( Window* _pParent, uno::Reference< dcss::xml::crypto: maViewSignsBtn.SetClickHdl( LINK( this, MacroWarning, ViewSignsBtnHdl ) ); maEnableBtn.SetClickHdl( LINK( this, MacroWarning, EnableBtnHdl ) ); -// maDisableBtn.SetClickHdl( LINK( this, MacroWarning, DisableBtnHdl ) ); +// maDisableBtn.SetClickHdl( LINK( this, MacroWarning, DisableBtnHdl ) ); if( mxCert.is() ) maSignsFI.SetText( XmlSec::GetContentPart( mxCert->getSubjectName() ) ); @@ -86,19 +86,19 @@ MacroWarning::MacroWarning( Window* _pParent, uno::Reference< dcss::xml::crypto: } MacroWarning::MacroWarning( Window* _pParent ) - :ModalDialog ( _pParent, XMLSEC_RES( RID_XMLSECTP_MACROWARN ) ) - ,maDocNameFI ( this, ResId( FI_DOCNAME ) ) - ,maDescr1aFI ( this, ResId( FI_DESCR1A ) ) - ,maDescr1bFI ( this, ResId( FI_DESCR1B ) ) - ,maSignsFI ( this, ResId( FI_SIGNS ) ) - ,maViewSignsBtn ( this, ResId( PB_VIEWSIGNS ) ) - ,maDescr2FI ( this, ResId( FI_DESCR2 ) ) - ,maAlwaysTrustCB ( this, ResId( CB_ALWAYSTRUST ) ) - ,maBottomSepFL ( this, ResId( FL_BOTTOM_SEP ) ) - ,maEnableBtn ( this, ResId( PB_DISABLE ) ) - ,maDisableBtn ( this, ResId( PB_DISABLE ) ) - ,maHelpBtn ( this, ResId( BTN_HELP ) ) - ,mbSignedMode ( false ) + :ModalDialog ( _pParent, XMLSEC_RES( RID_XMLSECTP_MACROWARN ) ) + ,maDocNameFI ( this, ResId( FI_DOCNAME ) ) + ,maDescr1aFI ( this, ResId( FI_DESCR1A ) ) + ,maDescr1bFI ( this, ResId( FI_DESCR1B ) ) + ,maSignsFI ( this, ResId( FI_SIGNS ) ) + ,maViewSignsBtn ( this, ResId( PB_VIEWSIGNS ) ) + ,maDescr2FI ( this, ResId( FI_DESCR2 ) ) + ,maAlwaysTrustCB ( this, ResId( CB_ALWAYSTRUST ) ) + ,maBottomSepFL ( this, ResId( FL_BOTTOM_SEP ) ) + ,maEnableBtn ( this, ResId( PB_DISABLE ) ) + ,maDisableBtn ( this, ResId( PB_DISABLE ) ) + ,maHelpBtn ( this, ResId( BTN_HELP ) ) + ,mbSignedMode ( false ) { FreeResource(); @@ -121,7 +121,7 @@ IMPL_LINK( MacroWarning, ViewSignsBtnHdl, void*, EMPTYARG ) { DBG_ASSERT( mxCert.is(), "*MacroWarning::ViewSignsBtnHdl(): no certificate set!" ); - CertificateViewer aViewer( this, mxSecurityEnvironment, mxCert ); + CertificateViewer aViewer( this, mxSecurityEnvironment, mxCert ); aViewer.Execute(); return 0; @@ -130,7 +130,7 @@ IMPL_LINK( MacroWarning, ViewSignsBtnHdl, void*, EMPTYARG ) IMPL_LINK( MacroWarning, EnableBtnHdl, void*, EMPTYARG ) { if( mbSignedMode && maAlwaysTrustCB.IsChecked() ) - { // insert path into trusted path list + { // insert path into trusted path list } |