summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Voytenko <mav@openoffice.org>2010-06-03 00:10:45 +0200
committerMikhail Voytenko <mav@openoffice.org>2010-06-03 00:10:45 +0200
commitb6e1fdef1f74ddc7355db66b089c56ed61aee1c4 (patch)
tree533a22dd7dea650716f67d5b9ee44d15032a4b59
parentb51799140438243043d5dc3432242a5f5457f807 (diff)
tl78: #i110383# password to modify support for binary types only
-rw-r--r--sc/inc/unonames.hxx1
-rw-r--r--sc/source/ui/unoobj/confuno.cxx17
2 files changed, 0 insertions, 18 deletions
diff --git a/sc/inc/unonames.hxx b/sc/inc/unonames.hxx
index 1656299c3efb..f5de35c9d033 100644
--- a/sc/inc/unonames.hxx
+++ b/sc/inc/unonames.hxx
@@ -610,7 +610,6 @@
// --> PB 2004-08-23 #i33095# Security Options
#define SC_UNO_LOADREADONLY "LoadReadonly"
// <--
-#define SC_UNO_MODIFYPASSWORDHASH "ModifyPasswordHash"
// FormulaParser
#define SC_UNO_COMPILEENGLISH "CompileEnglish"
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();