diff options
author | Caolán McNamara <cmc@openoffice.org> | 2002-10-16 08:21:50 +0000 |
---|---|---|
committer | Caolán McNamara <cmc@openoffice.org> | 2002-10-16 08:21:50 +0000 |
commit | aa4d36b52c33fa4b2a8d5e62042d12e4dc322bc7 (patch) | |
tree | ae6949fe07ca6906cefc5fea67e7e8b9732566c6 /sw/source/core/unocore/SwXTextDefaults.cxx | |
parent | a93e3b025cadb8548c9cf29535071149c4c41cb2 (diff) |
#103700# no throw readonly exception getting properties from readonly things, only on setting
Diffstat (limited to 'sw/source/core/unocore/SwXTextDefaults.cxx')
-rw-r--r-- | sw/source/core/unocore/SwXTextDefaults.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sw/source/core/unocore/SwXTextDefaults.cxx b/sw/source/core/unocore/SwXTextDefaults.cxx index dbc4e6fd650a..233adce90b9d 100644 --- a/sw/source/core/unocore/SwXTextDefaults.cxx +++ b/sw/source/core/unocore/SwXTextDefaults.cxx @@ -2,9 +2,9 @@ * * $RCSfile: SwXTextDefaults.cxx,v $ * - * $Revision: 1.12 $ + * $Revision: 1.13 $ * - * last change: $Author: tl $ $Date: 2002-10-16 08:56:04 $ + * last change: $Author: cmc $ $Date: 2002-10-16 09:19:00 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -244,8 +244,6 @@ PropertyState SAL_CALL SwXTextDefaults::getPropertyState( const OUString& rPrope const SfxItemPropertyMap *pMap = SfxItemPropertyMap::GetByName( aPropSet.getPropertyMap(), rPropertyName); if (!pMap) throw UnknownPropertyException(OUString ( RTL_CONSTASCII_USTRINGPARAM ( "Unknown property: " ) ) + rPropertyName, static_cast < cppu::OWeakObject * > ( this ) ); - if ( pMap->nFlags & PropertyAttribute::READONLY) - throw PropertyVetoException ( OUString ( RTL_CONSTASCII_USTRINGPARAM ( "Property is read-only: " ) ) + rPropertyName, static_cast < cppu::OWeakObject * > ( this ) ); const SfxPoolItem& rItem = pDoc->GetDefault(pMap->nWID); if (IsStaticDefaultItem ( &rItem ) ) @@ -292,8 +290,6 @@ Any SAL_CALL SwXTextDefaults::getPropertyDefault( const OUString& rPropertyName const SfxItemPropertyMap *pMap = SfxItemPropertyMap::GetByName( aPropSet.getPropertyMap(), rPropertyName); if (!pMap) throw UnknownPropertyException(OUString ( RTL_CONSTASCII_USTRINGPARAM ( "Unknown property: " ) ) + rPropertyName, static_cast < cppu::OWeakObject * > ( this ) ); - if ( pMap->nFlags & PropertyAttribute::READONLY) - throw RuntimeException ( OUString ( RTL_CONSTASCII_USTRINGPARAM ( "Property is read-only: " ) ) + rPropertyName, static_cast < cppu::OWeakObject * > ( this ) ); Any aRet; SfxItemPool rSet (pDoc->GetAttrPool()); const SfxPoolItem *pItem = rSet.GetPoolDefaultItem ( pMap->nWID ); |