diff options
Diffstat (limited to 'toolkit/source/controls/eventcontainer.cxx')
-rw-r--r-- | toolkit/source/controls/eventcontainer.cxx | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/toolkit/source/controls/eventcontainer.cxx b/toolkit/source/controls/eventcontainer.cxx index ef860a33b7ac..653f14958cbb 100644 --- a/toolkit/source/controls/eventcontainer.cxx +++ b/toolkit/source/controls/eventcontainer.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -53,7 +53,7 @@ using namespace std; namespace toolkit { - + // Methods XElementAccess Type NameContainer_Impl::getElementType() throw(RuntimeException) @@ -61,7 +61,7 @@ Type NameContainer_Impl::getElementType() return mType; } -sal_Bool NameContainer_Impl::hasElements() +sal_Bool NameContainer_Impl::hasElements() throw(RuntimeException) { sal_Bool bRet = (mnElementCount > 0); @@ -69,7 +69,7 @@ sal_Bool NameContainer_Impl::hasElements() } // Methods XNameAccess -Any NameContainer_Impl::getByName( const OUString& aName ) +Any NameContainer_Impl::getByName( const OUString& aName ) throw(NoSuchElementException, WrappedTargetException, RuntimeException) { NameContainerNameMap::iterator aIt = mHashMap.find( aName ); @@ -88,7 +88,7 @@ Sequence< OUString > NameContainer_Impl::getElementNames() return mNames; } -sal_Bool NameContainer_Impl::hasByName( const OUString& aName ) +sal_Bool NameContainer_Impl::hasByName( const OUString& aName ) throw(RuntimeException) { NameContainerNameMap::iterator aIt = mHashMap.find( aName ); @@ -98,7 +98,7 @@ sal_Bool NameContainer_Impl::hasByName( const OUString& aName ) // Methods XNameReplace -void NameContainer_Impl::replaceByName( const OUString& aName, const Any& aElement ) +void NameContainer_Impl::replaceByName( const OUString& aName, const Any& aElement ) throw(IllegalArgumentException, NoSuchElementException, WrappedTargetException, RuntimeException) { Type aAnyType = aElement.getValueType(); @@ -115,7 +115,7 @@ void NameContainer_Impl::replaceByName( const OUString& aName, const Any& aEleme mValues.getArray()[ iHashResult ] = aElement; // Fire event - ContainerEvent aEvent; + ContainerEvent aEvent; aEvent.Source = *this; aEvent.Element <<= aElement; aEvent.ReplacedElement = aOldElement; @@ -125,7 +125,7 @@ void NameContainer_Impl::replaceByName( const OUString& aName, const Any& aEleme // Methods XNameContainer -void NameContainer_Impl::insertByName( const OUString& aName, const Any& aElement ) +void NameContainer_Impl::insertByName( const OUString& aName, const Any& aElement ) throw(IllegalArgumentException, ElementExistException, WrappedTargetException, RuntimeException) { Type aAnyType = aElement.getValueType(); @@ -146,14 +146,14 @@ void NameContainer_Impl::insertByName( const OUString& aName, const Any& aElemen mHashMap[ aName ] = nCount; // Fire event - ContainerEvent aEvent; + ContainerEvent aEvent; aEvent.Source = *this; aEvent.Element <<= aElement; aEvent.Accessor <<= aName; maContainerListeners.elementInserted( aEvent ); } -void NameContainer_Impl::removeByName( const OUString& Name ) +void NameContainer_Impl::removeByName( const OUString& Name ) throw(NoSuchElementException, WrappedTargetException, RuntimeException) { NameContainerNameMap::iterator aIt = mHashMap.find( Name ); @@ -166,7 +166,7 @@ void NameContainer_Impl::removeByName( const OUString& Name ) Any aOldElement = mValues.getConstArray()[ iHashResult ]; // Fire event - ContainerEvent aEvent; + ContainerEvent aEvent; aEvent.Source = *this; aEvent.Element = aOldElement; aEvent.Accessor <<= Name; |