summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore/unoidx.cxx
diff options
context:
space:
mode:
authorThomas Lange <tl@openoffice.org>2002-08-14 08:44:44 +0000
committerThomas Lange <tl@openoffice.org>2002-08-14 08:44:44 +0000
commitd545970b74bf0bd6dce54956c959b975b6b8b6ea (patch)
treec517c2e4904b09d6dd3cde4733afe13589ea12ec /sw/source/core/unocore/unoidx.cxx
parent542a0d7260e4767d8aff839eb593e748a82ced48 (diff)
#99404# setting of read-only properties now raises PropertyVetoException
Diffstat (limited to 'sw/source/core/unocore/unoidx.cxx')
-rw-r--r--sw/source/core/unocore/unoidx.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/core/unocore/unoidx.cxx b/sw/source/core/unocore/unoidx.cxx
index cf1cff2befcc..0b47ce180789 100644
--- a/sw/source/core/unocore/unoidx.cxx
+++ b/sw/source/core/unocore/unoidx.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: unoidx.cxx,v $
*
- * $Revision: 1.45 $
+ * $Revision: 1.46 $
*
- * last change: $Author: tl $ $Date: 2002-06-24 11:22:42 $
+ * last change: $Author: tl $ $Date: 2002-08-14 09:42:21 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -486,7 +486,7 @@ void SwXDocumentIndex::setPropertyValue(const OUString& rPropertyName,
if (!pMap)
throw UnknownPropertyException(OUString ( RTL_CONSTASCII_USTRINGPARAM ( "Unknown property: " ) ) + rPropertyName, static_cast < cppu::OWeakObject * > ( this ) );
if ( pMap->nFlags & PropertyAttribute::READONLY)
- throw IllegalArgumentException ( OUString ( RTL_CONSTASCII_USTRINGPARAM ( "Property is read-only: " ) ) + rPropertyName, static_cast < cppu::OWeakObject * > ( this ), 0 );
+ throw PropertyVetoException ( OUString ( RTL_CONSTASCII_USTRINGPARAM ( "Property is read-only: " ) ) + rPropertyName, static_cast < cppu::OWeakObject * > ( this ) );
SwTOXBase* pTOXBase;
if(GetFmt())
@@ -1730,7 +1730,7 @@ void SwXDocumentIndexMark::setPropertyValue(const OUString& rPropertyName,
if (!pMap)
throw UnknownPropertyException(OUString ( RTL_CONSTASCII_USTRINGPARAM ( "Unknown property: " ) ) + rPropertyName, static_cast < cppu::OWeakObject * > ( this ) );
if ( pMap->nFlags & PropertyAttribute::READONLY)
- throw IllegalArgumentException ( OUString ( RTL_CONSTASCII_USTRINGPARAM ( "Property is read-only: " ) ) + rPropertyName, static_cast < cppu::OWeakObject * > ( this ), 0 );
+ throw PropertyVetoException ( OUString ( RTL_CONSTASCII_USTRINGPARAM ( "Property is read-only: " ) ) + rPropertyName, static_cast < cppu::OWeakObject * > ( this ) );
if(pType)
{
SwDoc* pLocalDoc = m_pDoc;