summaryrefslogtreecommitdiff
path: root/sot
diff options
context:
space:
mode:
authorMathias Bauer <mba@openoffice.org>2001-02-20 15:31:00 +0000
committerMathias Bauer <mba@openoffice.org>2001-02-20 15:31:00 +0000
commit3c2c968e081c4e6a27221cb1044460adfc804141 (patch)
treee95e74dc4043e973080396027a120dc70f6dd31b /sot
parentfdce80341b78a739dec389db3dbc9c8dabd7e00a (diff)
Don't allow to set the Title as property
Diffstat (limited to 'sot')
-rw-r--r--sot/source/sdstor/ucbstorage.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sot/source/sdstor/ucbstorage.cxx b/sot/source/sdstor/ucbstorage.cxx
index c1c09b8bfebe..e6993a6d6e89 100644
--- a/sot/source/sdstor/ucbstorage.cxx
+++ b/sot/source/sdstor/ucbstorage.cxx
@@ -690,6 +690,9 @@ BOOL UCBStorageStream::CopyTo( BaseStorageStream* pDestStm )
BOOL UCBStorageStream::SetProperty( const String& rName, const ::com::sun::star::uno::Any& rValue )
{
+ if ( rName.CompareToAscii("Title") == COMPARE_EQUAL )
+ return FALSE;
+
try
{
if ( pImp->m_pContent )
@@ -1818,6 +1821,9 @@ BOOL UCBStorage::IsStorageFile( SvStream* pFile )
BOOL UCBStorage::SetProperty( const String& rName, const ::com::sun::star::uno::Any& rValue )
{
+ if ( rName.CompareToAscii("Title") == COMPARE_EQUAL )
+ return FALSE;
+
try
{
if ( pImp->m_pContent )