diff options
Diffstat (limited to 'stoc/source/inspect')
-rw-r--r-- | stoc/source/inspect/introspection.cxx | 182 |
1 files changed, 55 insertions, 127 deletions
diff --git a/stoc/source/inspect/introspection.cxx b/stoc/source/inspect/introspection.cxx index da3b8c961ead..75443c0bd55a 100644 --- a/stoc/source/inspect/introspection.cxx +++ b/stoc/source/inspect/introspection.cxx @@ -706,115 +706,85 @@ public: ImplIntrospectionAccess( const Any& obj, rtl::Reference< IntrospectionAccessStatic_Impl > const & pStaticImpl_ ); // Methods from XIntrospectionAccess - virtual sal_Int32 SAL_CALL getSuppliedMethodConcepts() - throw( RuntimeException, std::exception ) override; - virtual sal_Int32 SAL_CALL getSuppliedPropertyConcepts() - throw( RuntimeException, std::exception ) override; - virtual Property SAL_CALL getProperty(const OUString& Name, sal_Int32 PropertyConcepts) - throw( NoSuchElementException, RuntimeException, std::exception ) override; - virtual sal_Bool SAL_CALL hasProperty(const OUString& Name, sal_Int32 PropertyConcepts) - throw( RuntimeException, std::exception ) override; - virtual Sequence< Property > SAL_CALL getProperties(sal_Int32 PropertyConcepts) - throw( RuntimeException, std::exception ) override; - virtual Reference<XIdlMethod> SAL_CALL getMethod(const OUString& Name, sal_Int32 MethodConcepts) - throw( NoSuchMethodException, RuntimeException, std::exception ) override; - virtual sal_Bool SAL_CALL hasMethod(const OUString& Name, sal_Int32 MethodConcepts) - throw( RuntimeException, std::exception ) override; - virtual Sequence< Reference<XIdlMethod> > SAL_CALL getMethods(sal_Int32 MethodConcepts) - throw( RuntimeException, std::exception ) override; - virtual Sequence< Type > SAL_CALL getSupportedListeners() - throw( RuntimeException, std::exception ) override; + virtual sal_Int32 SAL_CALL getSuppliedMethodConcepts() override; + virtual sal_Int32 SAL_CALL getSuppliedPropertyConcepts() override; + virtual Property SAL_CALL getProperty(const OUString& Name, sal_Int32 PropertyConcepts) override; + virtual sal_Bool SAL_CALL hasProperty(const OUString& Name, sal_Int32 PropertyConcepts) override; + virtual Sequence< Property > SAL_CALL getProperties(sal_Int32 PropertyConcepts) override; + virtual Reference<XIdlMethod> SAL_CALL getMethod(const OUString& Name, sal_Int32 MethodConcepts) override; + virtual sal_Bool SAL_CALL hasMethod(const OUString& Name, sal_Int32 MethodConcepts) override; + virtual Sequence< Reference<XIdlMethod> > SAL_CALL getMethods(sal_Int32 MethodConcepts) override; + virtual Sequence< Type > SAL_CALL getSupportedListeners() override; using OWeakObject::queryAdapter; - virtual Reference<XInterface> SAL_CALL queryAdapter( const Type& rType ) - throw( IllegalTypeException, RuntimeException, std::exception ) override; + virtual Reference<XInterface> SAL_CALL queryAdapter( const Type& rType ) override; // Methods from XMaterialHolder - virtual Any SAL_CALL getMaterial() throw(RuntimeException, std::exception) override; + virtual Any SAL_CALL getMaterial() override; // Methods from XExactName - virtual OUString SAL_CALL getExactName( const OUString& rApproximateName ) throw( RuntimeException, std::exception ) override; + virtual OUString SAL_CALL getExactName( const OUString& rApproximateName ) override; // Methods from XInterface - virtual Any SAL_CALL queryInterface( const Type& rType ) throw( RuntimeException, std::exception ) override; + virtual Any SAL_CALL queryInterface( const Type& rType ) override; virtual void SAL_CALL acquire() throw() override { OWeakObject::acquire(); } virtual void SAL_CALL release() throw() override { OWeakObject::release(); } // Methods from XPropertySet - virtual Reference<XPropertySetInfo> SAL_CALL getPropertySetInfo() throw( RuntimeException, std::exception ) override; - virtual void SAL_CALL setPropertyValue(const OUString& aPropertyName, const Any& aValue) - throw( UnknownPropertyException, PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException, std::exception ) override; - virtual Any SAL_CALL getPropertyValue(const OUString& aPropertyName) - throw( UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception ) override; - virtual void SAL_CALL addPropertyChangeListener(const OUString& aPropertyName, const Reference<XPropertyChangeListener>& aListener) - throw( UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception ) override; - virtual void SAL_CALL removePropertyChangeListener(const OUString& aPropertyName, const Reference<XPropertyChangeListener>& aListener) - throw( UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception ) override; - virtual void SAL_CALL addVetoableChangeListener(const OUString& aPropertyName, const Reference<XVetoableChangeListener>& aListener) - throw( UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception ) override; - virtual void SAL_CALL removeVetoableChangeListener(const OUString& aPropertyName, const Reference<XVetoableChangeListener>& aListener) - throw( UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception ) override; + virtual Reference<XPropertySetInfo> SAL_CALL getPropertySetInfo() override; + virtual void SAL_CALL setPropertyValue(const OUString& aPropertyName, const Any& aValue) override; + virtual Any SAL_CALL getPropertyValue(const OUString& aPropertyName) override; + virtual void SAL_CALL addPropertyChangeListener(const OUString& aPropertyName, const Reference<XPropertyChangeListener>& aListener) override; + virtual void SAL_CALL removePropertyChangeListener(const OUString& aPropertyName, const Reference<XPropertyChangeListener>& aListener) override; + virtual void SAL_CALL addVetoableChangeListener(const OUString& aPropertyName, const Reference<XVetoableChangeListener>& aListener) override; + virtual void SAL_CALL removeVetoableChangeListener(const OUString& aPropertyName, const Reference<XVetoableChangeListener>& aListener) override; // Methods from XFastPropertySet - virtual void SAL_CALL setFastPropertyValue(sal_Int32 nHandle, const Any& aValue) - throw( UnknownPropertyException, PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException, std::exception ) override; - virtual Any SAL_CALL getFastPropertyValue(sal_Int32 nHandle) - throw( UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception ) override; + virtual void SAL_CALL setFastPropertyValue(sal_Int32 nHandle, const Any& aValue) override; + virtual Any SAL_CALL getFastPropertyValue(sal_Int32 nHandle) override; // Methods from XPropertySetInfo - virtual Sequence< Property > SAL_CALL getProperties() throw( RuntimeException, std::exception ) override; - virtual Property SAL_CALL getPropertyByName(const OUString& Name) throw( RuntimeException, std::exception ) override; - virtual sal_Bool SAL_CALL hasPropertyByName(const OUString& Name) throw( RuntimeException, std::exception ) override; + virtual Sequence< Property > SAL_CALL getProperties() override; + virtual Property SAL_CALL getPropertyByName(const OUString& Name) override; + virtual sal_Bool SAL_CALL hasPropertyByName(const OUString& Name) override; // Methods from XElementAccess - virtual Type SAL_CALL getElementType() throw( RuntimeException, std::exception ) override; - virtual sal_Bool SAL_CALL hasElements() throw( RuntimeException, std::exception ) override; + virtual Type SAL_CALL getElementType() override; + virtual sal_Bool SAL_CALL hasElements() override; // Methods from XNameAccess - virtual Any SAL_CALL getByName(const OUString& Name) - throw( NoSuchElementException, WrappedTargetException, RuntimeException, std::exception ) override; - virtual Sequence< OUString > SAL_CALL getElementNames() throw( RuntimeException, std::exception ) override; - virtual sal_Bool SAL_CALL hasByName(const OUString& Name) throw( RuntimeException, std::exception ) override; + virtual Any SAL_CALL getByName(const OUString& Name) override; + virtual Sequence< OUString > SAL_CALL getElementNames() override; + virtual sal_Bool SAL_CALL hasByName(const OUString& Name) override; // Methods from XNameReplace - virtual void SAL_CALL replaceByName(const OUString& Name, const Any& Element) - throw( IllegalArgumentException, NoSuchElementException, WrappedTargetException, RuntimeException, std::exception ) override; + virtual void SAL_CALL replaceByName(const OUString& Name, const Any& Element) override; // Methods from XNameContainer - virtual void SAL_CALL insertByName(const OUString& Name, const Any& Element) - throw( IllegalArgumentException, ElementExistException, WrappedTargetException, RuntimeException, std::exception ) override; - virtual void SAL_CALL removeByName(const OUString& Name) - throw( NoSuchElementException, WrappedTargetException, RuntimeException, std::exception ) override; + virtual void SAL_CALL insertByName(const OUString& Name, const Any& Element) override; + virtual void SAL_CALL removeByName(const OUString& Name) override; // Methods from XIndexAccess - virtual sal_Int32 SAL_CALL getCount() throw( RuntimeException, std::exception ) override; - virtual Any SAL_CALL getByIndex(sal_Int32 Index) - throw( IndexOutOfBoundsException, WrappedTargetException, RuntimeException, std::exception ) override; + virtual sal_Int32 SAL_CALL getCount() override; + virtual Any SAL_CALL getByIndex(sal_Int32 Index) override; // Methods from XIndexReplace - virtual void SAL_CALL replaceByIndex(sal_Int32 Index, const Any& Element) - throw( IllegalArgumentException, IndexOutOfBoundsException, WrappedTargetException, RuntimeException, std::exception ) override; + virtual void SAL_CALL replaceByIndex(sal_Int32 Index, const Any& Element) override; // Methods from XIndexContainer - virtual void SAL_CALL insertByIndex(sal_Int32 Index, const Any& Element) - throw( IllegalArgumentException, IndexOutOfBoundsException, WrappedTargetException, RuntimeException, std::exception ) override; - virtual void SAL_CALL removeByIndex(sal_Int32 Index) - throw( IndexOutOfBoundsException, WrappedTargetException, RuntimeException, std::exception ) override; + virtual void SAL_CALL insertByIndex(sal_Int32 Index, const Any& Element) override; + virtual void SAL_CALL removeByIndex(sal_Int32 Index) override; // Methods from XEnumerationAccess - virtual Reference<XEnumeration> SAL_CALL createEnumeration() throw( RuntimeException, std::exception ) override; + virtual Reference<XEnumeration> SAL_CALL createEnumeration() override; // Methods from XIdlArray - virtual void SAL_CALL realloc(Any& array, sal_Int32 length) - throw( IllegalArgumentException, RuntimeException, std::exception ) override; - virtual sal_Int32 SAL_CALL getLen(const Any& array) throw( IllegalArgumentException, RuntimeException, std::exception ) override; - virtual Any SAL_CALL get(const Any& array, sal_Int32 index) - throw( IllegalArgumentException, ArrayIndexOutOfBoundsException, RuntimeException, std::exception ) override; - virtual void SAL_CALL set(Any& array, sal_Int32 index, const Any& value) - throw( IllegalArgumentException, ArrayIndexOutOfBoundsException, RuntimeException, std::exception ) override; + virtual void SAL_CALL realloc(Any& array, sal_Int32 length) override; + virtual sal_Int32 SAL_CALL getLen(const Any& array) override; + virtual Any SAL_CALL get(const Any& array, sal_Int32 index) override; + virtual void SAL_CALL set(Any& array, sal_Int32 index, const Any& value) override; // Methods from XUnoTunnel - virtual sal_Int64 SAL_CALL getSomething( const Sequence< sal_Int8 >& aIdentifier ) - throw (RuntimeException, std::exception) override; + virtual sal_Int64 SAL_CALL getSomething( const Sequence< sal_Int8 >& aIdentifier ) override; }; ImplIntrospectionAccess::ImplIntrospectionAccess @@ -1011,7 +981,6 @@ Reference<XIdlArray> ImplIntrospectionAccess::getXIdlArray() // Methods from XInterface Any SAL_CALL ImplIntrospectionAccess::queryInterface( const Type& rType ) - throw( RuntimeException, std::exception ) { Any aRet( ::cppu::queryInterface( rType, @@ -1051,25 +1020,21 @@ Any SAL_CALL ImplIntrospectionAccess::queryInterface( const Type& rType ) // Methods from XPropertySet Reference<XPropertySetInfo> ImplIntrospectionAccess::getPropertySetInfo() - throw( RuntimeException, std::exception ) { return static_cast<XPropertySetInfo *>(this); } void ImplIntrospectionAccess::setPropertyValue(const OUString& aPropertyName, const Any& aValue) - throw( UnknownPropertyException, PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException, std::exception ) { mpStaticImpl->setPropertyValue( maInspectedObject, aPropertyName, aValue ); } Any ImplIntrospectionAccess::getPropertyValue(const OUString& aPropertyName) - throw( UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception ) { return mpStaticImpl->getPropertyValue( maInspectedObject, aPropertyName ); } void ImplIntrospectionAccess::addPropertyChangeListener(const OUString& aPropertyName, const Reference<XPropertyChangeListener>& aListener) - throw( UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception ) { if( mxIface.is() ) { @@ -1082,7 +1047,6 @@ void ImplIntrospectionAccess::addPropertyChangeListener(const OUString& aPropert } void ImplIntrospectionAccess::removePropertyChangeListener(const OUString& aPropertyName, const Reference<XPropertyChangeListener>& aListener) - throw( UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception ) { if( mxIface.is() ) { @@ -1095,7 +1059,6 @@ void ImplIntrospectionAccess::removePropertyChangeListener(const OUString& aProp } void ImplIntrospectionAccess::addVetoableChangeListener(const OUString& aPropertyName, const Reference<XVetoableChangeListener>& aListener) - throw( UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception ) { if( mxIface.is() ) { @@ -1108,7 +1071,6 @@ void ImplIntrospectionAccess::addVetoableChangeListener(const OUString& aPropert } void ImplIntrospectionAccess::removeVetoableChangeListener(const OUString& aPropertyName, const Reference<XVetoableChangeListener>& aListener) - throw( UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception ) { if( mxIface.is() ) { @@ -1122,150 +1084,131 @@ void ImplIntrospectionAccess::removeVetoableChangeListener(const OUString& aProp // Methods from XFastPropertySet void ImplIntrospectionAccess::setFastPropertyValue(sal_Int32, const Any&) - throw( UnknownPropertyException, PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException, std::exception ) { } Any ImplIntrospectionAccess::getFastPropertyValue(sal_Int32) - throw( UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception ) { return Any(); } // Methods from XPropertySetInfo -Sequence< Property > ImplIntrospectionAccess::getProperties() throw( RuntimeException, std::exception ) +Sequence< Property > ImplIntrospectionAccess::getProperties() { return comphelper::containerToSequence(mpStaticImpl->getProperties()); } Property ImplIntrospectionAccess::getPropertyByName(const OUString& Name) - throw( RuntimeException, std::exception ) { return getProperty( Name, PropertyConcept::ALL ); } sal_Bool ImplIntrospectionAccess::hasPropertyByName(const OUString& Name) - throw( RuntimeException, std::exception ) { return hasProperty( Name, PropertyConcept::ALL ); } // Methods from XElementAccess -Type ImplIntrospectionAccess::getElementType() throw( RuntimeException, std::exception ) +Type ImplIntrospectionAccess::getElementType() { return getXElementAccess()->getElementType(); } -sal_Bool ImplIntrospectionAccess::hasElements() throw( RuntimeException, std::exception ) +sal_Bool ImplIntrospectionAccess::hasElements() { return getXElementAccess()->hasElements(); } // Methods from XNameAccess Any ImplIntrospectionAccess::getByName(const OUString& Name) - throw( NoSuchElementException, WrappedTargetException, RuntimeException, std::exception ) { return getXNameAccess()->getByName( Name ); } Sequence< OUString > ImplIntrospectionAccess::getElementNames() - throw( RuntimeException, std::exception ) { return getXNameAccess()->getElementNames(); } sal_Bool ImplIntrospectionAccess::hasByName(const OUString& Name) - throw( RuntimeException, std::exception ) { return getXNameAccess()->hasByName( Name ); } // Methods from XNameContainer void ImplIntrospectionAccess::insertByName(const OUString& Name, const Any& Element) - throw( IllegalArgumentException, ElementExistException, WrappedTargetException, RuntimeException, std::exception ) { getXNameContainer()->insertByName( Name, Element ); } void ImplIntrospectionAccess::replaceByName(const OUString& Name, const Any& Element) - throw( IllegalArgumentException, NoSuchElementException, WrappedTargetException, RuntimeException, std::exception ) { getXNameReplace()->replaceByName( Name, Element ); } void ImplIntrospectionAccess::removeByName(const OUString& Name) - throw( NoSuchElementException, WrappedTargetException, RuntimeException, std::exception ) { getXNameContainer()->removeByName( Name ); } // Methods from XIndexAccess // Already in XNameAccess: virtual Reference<XIdlClass> getElementType() const -sal_Int32 ImplIntrospectionAccess::getCount() throw( RuntimeException, std::exception ) +sal_Int32 ImplIntrospectionAccess::getCount() { return getXIndexAccess()->getCount(); } Any ImplIntrospectionAccess::getByIndex(sal_Int32 Index) - throw( IndexOutOfBoundsException, WrappedTargetException, RuntimeException, std::exception ) { return getXIndexAccess()->getByIndex( Index ); } // Methods from XIndexContainer void ImplIntrospectionAccess::insertByIndex(sal_Int32 Index, const Any& Element) - throw( IllegalArgumentException, IndexOutOfBoundsException, WrappedTargetException, RuntimeException, std::exception ) { getXIndexContainer()->insertByIndex( Index, Element ); } void ImplIntrospectionAccess::replaceByIndex(sal_Int32 Index, const Any& Element) - throw( IllegalArgumentException, IndexOutOfBoundsException, WrappedTargetException, RuntimeException, std::exception ) { getXIndexReplace()->replaceByIndex( Index, Element ); } void ImplIntrospectionAccess::removeByIndex(sal_Int32 Index) - throw( IndexOutOfBoundsException, WrappedTargetException, RuntimeException, std::exception ) { getXIndexContainer()->removeByIndex( Index ); } // Methods from XEnumerationAccess // Already in XNameAccess: virtual Reference<XIdlClass> getElementType() const; -Reference<XEnumeration> ImplIntrospectionAccess::createEnumeration() throw( RuntimeException, std::exception ) +Reference<XEnumeration> ImplIntrospectionAccess::createEnumeration() { return getXEnumerationAccess()->createEnumeration(); } // Methods from XIdlArray void ImplIntrospectionAccess::realloc(Any& array, sal_Int32 length) - throw( IllegalArgumentException, RuntimeException, std::exception ) { getXIdlArray()->realloc( array, length ); } sal_Int32 ImplIntrospectionAccess::getLen(const Any& array) - throw( IllegalArgumentException, RuntimeException, std::exception ) { return getXIdlArray()->getLen( array ); } Any ImplIntrospectionAccess::get(const Any& array, sal_Int32 index) - throw( IllegalArgumentException, ArrayIndexOutOfBoundsException, RuntimeException, std::exception ) { return getXIdlArray()->get( array, index ); } void ImplIntrospectionAccess::set(Any& array, sal_Int32 index, const Any& value) - throw( IllegalArgumentException, ArrayIndexOutOfBoundsException, RuntimeException, std::exception ) { getXIdlArray()->set( array, index, value ); } // Methods from XUnoTunnel sal_Int64 ImplIntrospectionAccess::getSomething( const Sequence< sal_Int8 >& aIdentifier ) - throw (RuntimeException, std::exception) { return Reference<XUnoTunnel>::query( mxIface )->getSomething( aIdentifier ); } @@ -1275,7 +1218,6 @@ sal_Int64 ImplIntrospectionAccess::getSomething( const Sequence< sal_Int8 >& aId // Methods from XIntrospectionAccess sal_Int32 ImplIntrospectionAccess::getSuppliedMethodConcepts() - throw( RuntimeException, std::exception ) { return MethodConcept::DANGEROUS | PROPERTY | @@ -1286,7 +1228,6 @@ sal_Int32 ImplIntrospectionAccess::getSuppliedMethodConcepts() } sal_Int32 ImplIntrospectionAccess::getSuppliedPropertyConcepts() - throw( RuntimeException, std::exception ) { return PropertyConcept::DANGEROUS | PROPERTYSET | @@ -1295,7 +1236,6 @@ sal_Int32 ImplIntrospectionAccess::getSuppliedPropertyConcepts() } Property ImplIntrospectionAccess::getProperty(const OUString& Name, sal_Int32 PropertyConcepts) - throw( NoSuchElementException, RuntimeException, std::exception ) { Property aRet; sal_Int32 i = mpStaticImpl->getPropertyIndex( Name ); @@ -1315,7 +1255,6 @@ Property ImplIntrospectionAccess::getProperty(const OUString& Name, sal_Int32 Pr } sal_Bool ImplIntrospectionAccess::hasProperty(const OUString& Name, sal_Int32 PropertyConcepts) - throw( RuntimeException, std::exception ) { sal_Int32 i = mpStaticImpl->getPropertyIndex( Name ); bool bRet = false; @@ -1329,7 +1268,6 @@ sal_Bool ImplIntrospectionAccess::hasProperty(const OUString& Name, sal_Int32 Pr } Sequence< Property > ImplIntrospectionAccess::getProperties(sal_Int32 PropertyConcepts) - throw( RuntimeException, std::exception ) { // If all supported concepts are required, simply pass through the sequence sal_Int32 nAllSupportedMask = PROPERTYSET | @@ -1384,7 +1322,6 @@ Sequence< Property > ImplIntrospectionAccess::getProperties(sal_Int32 PropertyCo } Reference<XIdlMethod> ImplIntrospectionAccess::getMethod(const OUString& Name, sal_Int32 MethodConcepts) - throw( NoSuchMethodException, RuntimeException, std::exception ) { Reference<XIdlMethod> xRet; sal_Int32 i = mpStaticImpl->getMethodIndex( Name ); @@ -1403,7 +1340,6 @@ Reference<XIdlMethod> ImplIntrospectionAccess::getMethod(const OUString& Name, s } sal_Bool ImplIntrospectionAccess::hasMethod(const OUString& Name, sal_Int32 MethodConcepts) - throw( RuntimeException, std::exception ) { sal_Int32 i = mpStaticImpl->getMethodIndex( Name ); bool bRet = false; @@ -1417,7 +1353,6 @@ sal_Bool ImplIntrospectionAccess::hasMethod(const OUString& Name, sal_Int32 Meth } Sequence< Reference<XIdlMethod> > ImplIntrospectionAccess::getMethods(sal_Int32 MethodConcepts) - throw( RuntimeException, std::exception ) { // If all supported concepts are required, simply pass through the sequence sal_Int32 nAllSupportedMask = MethodConcept::DANGEROUS | @@ -1468,13 +1403,11 @@ Sequence< Reference<XIdlMethod> > ImplIntrospectionAccess::getMethods(sal_Int32 } Sequence< Type > ImplIntrospectionAccess::getSupportedListeners() - throw( RuntimeException, std::exception ) { return comphelper::containerToSequence(mpStaticImpl->getSupportedListeners()); } Reference<XInterface> SAL_CALL ImplIntrospectionAccess::queryAdapter( const Type& rType ) - throw( IllegalTypeException, RuntimeException, std::exception ) { Reference<XInterface> xRet; if( rType == cppu::UnoType<XInterface>::get() @@ -1498,13 +1431,13 @@ Reference<XInterface> SAL_CALL ImplIntrospectionAccess::queryAdapter( const Type } // Methods from XMaterialHolder -Any ImplIntrospectionAccess::getMaterial() throw(RuntimeException, std::exception) +Any ImplIntrospectionAccess::getMaterial() { return maInspectedObject; } // Methods from XExactName -OUString ImplIntrospectionAccess::getExactName( const OUString& rApproximateName ) throw( RuntimeException, std::exception ) +OUString ImplIntrospectionAccess::getExactName( const OUString& rApproximateName ) { OUString aRetStr; LowerToExactNameMap::iterator aIt = @@ -1622,25 +1555,21 @@ private: typeCache_.clear(); } - virtual OUString SAL_CALL getImplementationName() - throw (css::uno::RuntimeException, std::exception) override + virtual OUString SAL_CALL getImplementationName() override { return OUString("com.sun.star.comp.stoc.Introspection"); } - virtual sal_Bool SAL_CALL supportsService(OUString const & ServiceName) - throw (css::uno::RuntimeException, std::exception) override + virtual sal_Bool SAL_CALL supportsService(OUString const & ServiceName) override { return cppu::supportsService(this, ServiceName); } virtual css::uno::Sequence<OUString> SAL_CALL - getSupportedServiceNames() - throw (css::uno::RuntimeException, std::exception) override + getSupportedServiceNames() override { Sequence<OUString> s { "com.sun.star.beans.Introspection" }; return s; } virtual css::uno::Reference<css::beans::XIntrospectionAccess> SAL_CALL - inspect(css::uno::Any const & aObject) - throw (css::uno::RuntimeException, std::exception) override; + inspect(css::uno::Any const & aObject) override; css::uno::Reference<css::reflection::XIdlReflection> reflection_; Cache<TypeKey, TypeKeyLess> typeCache_; @@ -1648,7 +1577,6 @@ private: css::uno::Reference<css::beans::XIntrospectionAccess> Implementation::inspect( css::uno::Any const & aObject) - throw (css::uno::RuntimeException, std::exception) { css::uno::Reference<css::reflection::XIdlReflection> reflection; { |