diff options
author | Mikhail Voytenko <mav@openoffice.org> | 2011-01-14 14:16:44 +0100 |
---|---|---|
committer | Mikhail Voytenko <mav@openoffice.org> | 2011-01-14 14:16:44 +0100 |
commit | 78b9b7bffa0f5de3d5617dd83eeadb0adb9c8886 (patch) | |
tree | 2f64f87d5981ade749d2be68e23edcb8aa20a48f /xmlsecurity/source/dialogs/certificatechooser.cxx | |
parent | 13c1c67ec50995550076b7085d1a955b9df09cd0 (diff) |
removetooltypes01: #i112600# remove tooltypes from xmlsecurity
Diffstat (limited to 'xmlsecurity/source/dialogs/certificatechooser.cxx')
-rw-r--r-- | xmlsecurity/source/dialogs/certificatechooser.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/xmlsecurity/source/dialogs/certificatechooser.cxx b/xmlsecurity/source/dialogs/certificatechooser.cxx index 5a34945c639b..9e934d4e04f8 100644 --- a/xmlsecurity/source/dialogs/certificatechooser.cxx +++ b/xmlsecurity/source/dialogs/certificatechooser.cxx @@ -52,15 +52,15 @@ using namespace ::com::sun::star; #define INVAL_SEL 0xFFFF -USHORT CertificateChooser::GetSelectedEntryPos( void ) const +sal_uInt16 CertificateChooser::GetSelectedEntryPos( void ) const { - USHORT nSel = INVAL_SEL; + sal_uInt16 nSel = INVAL_SEL; SvLBoxEntry* pSel = maCertLB.FirstSelected(); if( pSel ) - nSel = (USHORT) ( sal_uIntPtr ) pSel->GetUserData(); + nSel = (sal_uInt16) ( sal_uIntPtr ) pSel->GetUserData(); - return (USHORT) nSel; + return (sal_uInt16) nSel; } CertificateChooser::CertificateChooser( Window* _pParent, uno::Reference< uno::XComponentContext>& _rxCtx, uno::Reference< dcss::xml::crypto::XSecurityEnvironment >& _rxSecurityEnvironment, const SignatureInformations& _rCertsToIgnore ) @@ -85,7 +85,7 @@ CertificateChooser::CertificateChooser( Window* _pParent, uno::Reference< uno::X mxCtx = _rxCtx; mxSecurityEnvironment = _rxSecurityEnvironment; - mbInitialized = FALSE; + mbInitialized = sal_False; // disable buttons CertificateHighlightHdl( NULL ); @@ -113,12 +113,12 @@ short CertificateChooser::Execute() Window* pMe = this; Window* pParent = GetParent(); if ( pParent ) - pParent->EnableInput( FALSE ); + pParent->EnableInput( sal_False ); pMe->Show(); pMe->Update(); ImplInitialize(); if ( pParent ) - pParent->EnableInput( TRUE ); + pParent->EnableInput( sal_True ); return ModalDialog::Execute(); } @@ -192,7 +192,7 @@ void CertificateChooser::ImplInitialize() // enable/disable buttons CertificateHighlightHdl( NULL ); - mbInitialized = TRUE; + mbInitialized = sal_True; } } @@ -200,7 +200,7 @@ void CertificateChooser::ImplInitialize() uno::Reference< dcss::security::XCertificate > CertificateChooser::GetSelectedCertificate() { uno::Reference< dcss::security::XCertificate > xCert; - USHORT nSelected = GetSelectedEntryPos(); + sal_uInt16 nSelected = GetSelectedEntryPos(); if ( nSelected < maCerts.getLength() ) xCert = maCerts[ nSelected ]; return xCert; @@ -231,7 +231,7 @@ void CertificateChooser::ImplShowCertificateDetails() uno::Reference< dcss::security::XCertificate > xCert = GetSelectedCertificate(); if( xCert.is() ) { - CertificateViewer aViewer( this, mxSecurityEnvironment, xCert, TRUE ); + CertificateViewer aViewer( this, mxSecurityEnvironment, xCert, sal_True ); aViewer.Execute(); } } |