diff options
author | Mikhail Voytenko <mav@openoffice.org> | 2010-06-03 00:10:45 +0200 |
---|---|---|
committer | Mikhail Voytenko <mav@openoffice.org> | 2010-06-03 00:10:45 +0200 |
commit | b6e1fdef1f74ddc7355db66b089c56ed61aee1c4 (patch) | |
tree | 533a22dd7dea650716f67d5b9ee44d15032a4b59 /sc/source/ui/unoobj/confuno.cxx | |
parent | b51799140438243043d5dc3432242a5f5457f807 (diff) |
tl78: #i110383# password to modify support for binary types only
Diffstat (limited to 'sc/source/ui/unoobj/confuno.cxx')
-rw-r--r-- | sc/source/ui/unoobj/confuno.cxx | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/sc/source/ui/unoobj/confuno.cxx b/sc/source/ui/unoobj/confuno.cxx index 90f3b1ce2781..dd8f15359559 100644 --- a/sc/source/ui/unoobj/confuno.cxx +++ b/sc/source/ui/unoobj/confuno.cxx @@ -88,7 +88,6 @@ const SfxItemPropertyMapEntry* lcl_GetConfigPropertyMap() {MAP_CHAR_LEN(SC_UNO_LOADREADONLY), 0, &getBooleanCppuType(), 0, 0}, // <-- {MAP_CHAR_LEN(SC_UNO_SHAREDOC), 0, &getBooleanCppuType(), 0, 0}, - {MAP_CHAR_LEN(SC_UNO_MODIFYPASSWORDHASH), 0, &getCppuType((sal_Int32*)0), 0, 0}, {0,0,0,0,0,0} }; return aConfigPropertyMap_Impl; @@ -275,20 +274,6 @@ void SAL_CALL ScDocumentConfiguration::setPropertyValue( pDocShell->SetSharedXMLFlag( bDocShared ); } } - else if ( aPropertyName.compareToAscii( SC_UNO_MODIFYPASSWORDHASH ) == 0 ) - { - sal_Int32 nHash = 0; - if ( !( aValue >>= nHash ) || nHash < 0 || nHash > SAL_MAX_UINT16 ) - throw lang::IllegalArgumentException( - ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Value of type INT32, representing UINT16 expected!" ) ), - uno::Reference< uno::XInterface >(), - 2 ); - - if ( !pDocShell->SetModifyPasswordHash( static_cast< sal_uInt16 >( nHash ) ) ) - throw beans::PropertyVetoException( - ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "The hash is not allowed to be changed now!" ) ), - uno::Reference< uno::XInterface >() ); - } else { ScGridOptions aGridOpt(aViewOpt.GetGridOptions()); @@ -422,8 +407,6 @@ uno::Any SAL_CALL ScDocumentConfiguration::getPropertyValue( const rtl::OUString { ScUnoHelpFunctions::SetBoolInAny( aRet, pDocShell->HasSharedXMLFlagSet() ); } - else if ( aPropertyName.compareToAscii( SC_UNO_MODIFYPASSWORDHASH ) == 0 ) - aRet <<= static_cast< sal_Int32 >( pDocShell->GetModifyPasswordHash() ); else { const ScGridOptions& aGridOpt = aViewOpt.GetGridOptions(); |