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
commit3c9e62c0d5ed8934342c448a64f194517c12490a (patch)
tree1eb9a27fb1728357250db67e3cbc0e77d9896200
parentd0d49414696149c8ecb15ef03f47b12ea395ad06 (diff)
tl78: #i110383# password to modify support for binary types only
-rw-r--r--sw/source/ui/uno/SwXDocumentSettings.cxx22
1 files changed, 0 insertions, 22 deletions
diff --git a/sw/source/ui/uno/SwXDocumentSettings.cxx b/sw/source/ui/uno/SwXDocumentSettings.cxx
index 96213e8de6..59fbcef91f 100644
--- a/sw/source/ui/uno/SwXDocumentSettings.cxx
+++ b/sw/source/ui/uno/SwXDocumentSettings.cxx
@@ -124,7 +124,6 @@ enum SwDocumentSettingsPropertyHandles
// --> OD 2008-06-05 #i89181#
HANDLE_TAB_AT_LEFT_INDENT_FOR_PARA_IN_LIST,
// <--
- HANDLE_MODIFYPASSWORDHASH
};
MasterPropertySetInfo * lcl_createSettingsInfo()
@@ -178,7 +177,6 @@ MasterPropertySetInfo * lcl_createSettingsInfo()
{ RTL_CONSTASCII_STRINGPARAM("ProtectForm"), HANDLE_PROTECT_FORM, CPPUTYPE_BOOLEAN, 0, 0},
// --> OD 2008-06-05 #i89181#
{ RTL_CONSTASCII_STRINGPARAM("TabAtLeftIndentForParagraphsInList"), HANDLE_TAB_AT_LEFT_INDENT_FOR_PARA_IN_LIST, CPPUTYPE_BOOLEAN, 0, 0},
- { RTL_CONSTASCII_STRINGPARAM("ModifyPasswordHash"), HANDLE_MODIFYPASSWORDHASH, CPPUTYPE_INT32, 0, 0},
/*
* As OS said, we don't have a view when we need to set this, so I have to
@@ -673,21 +671,6 @@ void SwXDocumentSettings::_setSingleValue( const comphelper::PropertyInfo & rInf
}
break;
// <--
- case HANDLE_MODIFYPASSWORDHASH:
- {
- sal_Int32 nHash = 0;
- if ( !( rValue >>= 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 ( !mpDocSh->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 >() );
- }
- break;
default:
throw UnknownPropertyException();
}
@@ -1015,11 +998,6 @@ void SwXDocumentSettings::_getSingleValue( const comphelper::PropertyInfo & rInf
}
break;
// <--
- case HANDLE_MODIFYPASSWORDHASH:
- {
- rValue <<= static_cast< sal_Int32 >( mpDocSh->GetModifyPasswordHash() );
- }
- break;
default:
throw UnknownPropertyException();