summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore/unosrch.cxx
diff options
context:
space:
mode:
authorThomas Lange <tl@openoffice.org>2002-08-14 09:29:45 +0000
committerThomas Lange <tl@openoffice.org>2002-08-14 09:29:45 +0000
commit622ef15baa772ae9c6e61db8ecdbfdd691d9f9b0 (patch)
treea11b816a8b8b2eaf5585eb73772f0fafefb64d62 /sw/source/core/unocore/unosrch.cxx
parent5f5256c5a173e0b680fb60cb2f436663b4153e39 (diff)
#99404# setting of read-only properties now raises PropertyVetoException
Diffstat (limited to 'sw/source/core/unocore/unosrch.cxx')
-rw-r--r--sw/source/core/unocore/unosrch.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/sw/source/core/unocore/unosrch.cxx b/sw/source/core/unocore/unosrch.cxx
index 06867b437500..14d19c17bc2e 100644
--- a/sw/source/core/unocore/unosrch.cxx
+++ b/sw/source/core/unocore/unosrch.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: unosrch.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: os $ $Date: 2002-05-13 12:12:39 $
+ * last change: $Author: tl $ $Date: 2002-08-14 10:29:45 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -596,7 +596,7 @@ void SwXTextSearch::setPropertyValue(const OUString& rPropertyName, const Any& a
if(pMap)
{
if ( pMap->nFlags & PropertyAttribute::READONLY)
- throw lang::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 ) );
sal_Bool bVal = FALSE;
if(aValue.getValueType() == ::getBooleanCppuType())
bVal = *(sal_Bool*)aValue.getValue();
@@ -824,6 +824,9 @@ void SwXTextSearch::FillSearchOptions( SearchOptions& rSearchOpt ) const
/*------------------------------------------------------------------------
$Log: not supported by cvs2svn $
+ Revision 1.5 2002/05/13 12:12:39 os
+ #90353# new[]-delete[] mix fixed
+
Revision 1.4 2001/11/28 20:25:04 mtg
#95176# throw correct exceptions at the correct times