summaryrefslogtreecommitdiff
path: root/cui/source/options/webconninfo.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cui/source/options/webconninfo.cxx')
-rw-r--r--cui/source/options/webconninfo.cxx34
1 files changed, 17 insertions, 17 deletions
diff --git a/cui/source/options/webconninfo.cxx b/cui/source/options/webconninfo.cxx
index 2c9a7ebbdd7c..1bf84960b642 100644
--- a/cui/source/options/webconninfo.cxx
+++ b/cui/source/options/webconninfo.cxx
@@ -2,7 +2,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
@@ -202,7 +202,7 @@ void WebConnectionInfoDialog::FillPasswordList()
uno::Sequence< task::UrlRecord > aURLEntries = xPasswdContainer->getAllPersistent( xInteractionHandler );
sal_Int32 nCount = 0;
for ( sal_Int32 nURLInd = 0; nURLInd < aURLEntries.getLength(); nURLInd++ )
- {
+ {
for ( sal_Int32 nUserInd = 0; nUserInd < aURLEntries[nURLInd].UserList.getLength(); nUserInd++ )
{
::rtl::OUString aUIEntry( aURLEntries[nURLInd].Url );
@@ -216,10 +216,10 @@ void WebConnectionInfoDialog::FillPasswordList()
// remember pos of first url container entry.
m_nPos = nCount;
- uno::Reference< task::XUrlContainer > xUrlContainer(
+ uno::Reference< task::XUrlContainer > xUrlContainer(
xPasswdContainer, uno::UNO_QUERY_THROW );
- uno::Sequence< rtl::OUString > aUrls
+ uno::Sequence< rtl::OUString > aUrls
= xUrlContainer->getUrls( sal_True /* OnlyPersistent */ );
for ( sal_Int32 nURLIdx = 0; nURLIdx < aUrls.getLength(); nURLIdx++ )
@@ -249,7 +249,7 @@ IMPL_LINK( WebConnectionInfoDialog, RemovePasswordHdl, PushButton*, EMPTYARG )
uno::Reference< task::XPasswordContainer > xPasswdContainer(
comphelper::getProcessServiceFactory()->createInstance(
- rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(
+ rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(
"com.sun.star.task.PasswordContainer" ) ) ),
uno::UNO_QUERY_THROW );
@@ -260,7 +260,7 @@ IMPL_LINK( WebConnectionInfoDialog, RemovePasswordHdl, PushButton*, EMPTYARG )
}
else
{
- uno::Reference< task::XUrlContainer > xUrlContainer(
+ uno::Reference< task::XUrlContainer > xUrlContainer(
xPasswdContainer, uno::UNO_QUERY_THROW );
xUrlContainer->removeUrl( aURL );
}
@@ -280,20 +280,20 @@ IMPL_LINK( WebConnectionInfoDialog, RemoveAllPasswordsHdl, PushButton*, EMPTYARG
{
uno::Reference< task::XPasswordContainer > xPasswdContainer(
comphelper::getProcessServiceFactory()->createInstance(
- rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(
+ rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(
"com.sun.star.task.PasswordContainer" ) ) ),
uno::UNO_QUERY_THROW );
// should the master password be requested before?
xPasswdContainer->removeAllPersistent();
- uno::Reference< task::XUrlContainer > xUrlContainer(
+ uno::Reference< task::XUrlContainer > xUrlContainer(
xPasswdContainer, uno::UNO_QUERY_THROW );
- uno::Sequence< rtl::OUString > aUrls
+ uno::Sequence< rtl::OUString > aUrls
= xUrlContainer->getUrls( sal_True /* OnlyPersistent */ );
for ( sal_Int32 nURLIdx = 0; nURLIdx < aUrls.getLength(); nURLIdx++ )
- xUrlContainer->removeUrl( aUrls[ nURLIdx ] );
-
+ xUrlContainer->removeUrl( aUrls[ nURLIdx ] );
+
m_aPasswordsLB.Clear();
}
catch( uno::Exception& )
@@ -313,15 +313,15 @@ IMPL_LINK( WebConnectionInfoDialog, ChangePasswordHdl, PushButton*, EMPTYARG )
::rtl::OUString aURL = m_aPasswordsLB.GetEntryText( pEntry, 0 );
::rtl::OUString aUserName = m_aPasswordsLB.GetEntryText( pEntry, 1 );
- ::comphelper::DocPasswordRequest* pPasswordRequest
+ ::comphelper::DocPasswordRequest* pPasswordRequest
= new ::comphelper::DocPasswordRequest(
- ::comphelper::DocPasswordRequestType_STANDARD,
+ ::comphelper::DocPasswordRequestType_STANDARD,
task::PasswordRequestMode_PASSWORD_CREATE, aURL );
uno::Reference< task::XInteractionRequest > rRequest( pPasswordRequest );
uno::Reference< task::XInteractionHandler > xInteractionHandler(
comphelper::getProcessServiceFactory()->createInstance(
- rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(
+ rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(
"com.sun.star.task.InteractionHandler" ) ) ),
uno::UNO_QUERY_THROW );
xInteractionHandler->handle( rRequest );
@@ -334,10 +334,10 @@ IMPL_LINK( WebConnectionInfoDialog, ChangePasswordHdl, PushButton*, EMPTYARG )
uno::Reference< task::XPasswordContainer > xPasswdContainer(
comphelper::getProcessServiceFactory()->createInstance(
- rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(
+ rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(
"com.sun.star.task.PasswordContainer" ) ) ),
uno::UNO_QUERY_THROW );
- xPasswdContainer->addPersistent(
+ xPasswdContainer->addPersistent(
aURL, aUserName, aPasswd, xInteractionHandler );
}
}
@@ -361,7 +361,7 @@ IMPL_LINK( WebConnectionInfoDialog, EntrySelectedHdl, void*, EMPTYARG )
{
m_aRemoveBtn.Enable( TRUE );
- // url container entries (-> use system credentials) have
+ // url container entries (-> use system credentials) have
// no password
sal_Int32 nPos = (sal_Int32)(sal_IntPtr)pEntry->GetUserData();
m_aChangeBtn.Enable( nPos < m_nPos );