diff options
author | Oliver Bolte <obo@openoffice.org> | 2004-08-11 14:41:27 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2004-08-11 14:41:27 +0000 |
commit | deb9849aab71b041cd8700026009979555196ea0 (patch) | |
tree | 075d98d881bb197774e432662bad1ae4d7d6c676 /sw/source/core/unocore/SwXTextDefaults.cxx | |
parent | 1773b62631657f35e7d03095b669bc05849e52cc (diff) |
INTEGRATION: CWS tleamisc (1.15.466); FILE MERGED
2004/05/28 07:34:23 tl 1.15.466.1: #i24707# PropertyVetoException in setPropert{y|ies}ToDefault replaced be RunTimeException
Diffstat (limited to 'sw/source/core/unocore/SwXTextDefaults.cxx')
-rw-r--r-- | sw/source/core/unocore/SwXTextDefaults.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/core/unocore/SwXTextDefaults.cxx b/sw/source/core/unocore/SwXTextDefaults.cxx index 1522dbad4aa4..22d5b5022cf8 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.15 $ + * $Revision: 1.16 $ * - * last change: $Author: vg $ $Date: 2003-04-17 14:41:13 $ + * last change: $Author: obo $ $Date: 2004-08-11 15:41:27 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -291,9 +291,9 @@ void SAL_CALL SwXTextDefaults::setPropertyToDefault( const OUString& rPropertyNa 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 ) ); - SfxItemPool rSet (pDoc->GetAttrPool()); - rSet.ResetPoolDefaultItem ( pMap->nWID ); + throw RuntimeException( OUString ( RTL_CONSTASCII_USTRINGPARAM ( "setPropertyToDefault: property is read-only: " ) ) + rPropertyName, static_cast < cppu::OWeakObject * > ( this ) ); + SfxItemPool rSet (pDoc->GetAttrPool()); + rSet.ResetPoolDefaultItem ( pMap->nWID ); } |