INTEGRATION: CWS dvoqbfix4 (1.94.48); FILE MERGED

2005/06/09 14:14:10 mav 1.94.48.1: #123297# set the password to the storage
This commit is contained in:
Kurt Zenker 2005-07-14 10:45:44 +00:00
parent 9fab82a57d
commit 4acdc71249

View file

@ -2,9 +2,9 @@
*
* $RCSfile: appopen.cxx,v $
*
* $Revision: 1.94 $
* $Revision: 1.95 $
*
* last change: $Author: obo $ $Date: 2005-04-22 11:27:04 $
* last change: $Author: kz $ $Date: 2005-07-14 11:45:44 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@ -424,6 +424,18 @@ ULONG CheckPasswd_Impl
if ( pPasswordRequest->isPassword() )
{
pSet->Put( SfxStringItem( SID_PASSWORD, pPasswordRequest->getPassword() ) );
try
{
::comphelper::OStorageHelper::SetCommonStoragePassword(
xStorage,
pPasswordRequest->getPassword() );
}
catch( uno::Exception& )
{
// TODO/LATER: set the error code
}
nRet = ERRCODE_NONE;
}
else