Kaydet (Commit) 1355bf71 authored tarafından Jens-Heiner Rechtien's avatar Jens-Heiner Rechtien

#92075#: exception specifications

üst 6f81f4bc
......@@ -2,9 +2,9 @@
*
* $RCSfile: propshlp.cxx,v $
*
* $Revision: 1.6 $
* $Revision: 1.7 $
*
* last change: $Author: pl $ $Date: 2001-05-10 20:24:59 $
* last change: $Author: hr $ $Date: 2001-09-11 13:45:22 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
......@@ -115,9 +115,9 @@ public:
OPropertySetHelperInfo_Impl( IPropertyArrayHelper & rHelper_ ) SAL_THROW( () );
// XPropertySetInfo-Methoden
virtual Sequence< Property > SAL_CALL getProperties(void);
virtual Property SAL_CALL getPropertyByName(const OUString& PropertyName);
virtual sal_Bool SAL_CALL hasPropertyByName(const OUString& PropertyName);
virtual Sequence< Property > SAL_CALL getProperties(void) throw(::com::sun::star::uno::RuntimeException);
virtual Property SAL_CALL getPropertyByName(const OUString& PropertyName) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException);
virtual sal_Bool SAL_CALL hasPropertyByName(const OUString& PropertyName) throw(::com::sun::star::uno::RuntimeException);
};
......@@ -134,7 +134,8 @@ OPropertySetHelperInfo_Impl::OPropertySetHelperInfo_Impl(
/**
* Return the sequence of properties, which are provided throug the constructor.
*/
Sequence< Property > OPropertySetHelperInfo_Impl::getProperties(void)
Sequence< Property > OPropertySetHelperInfo_Impl::getProperties(void) throw(::com::sun::star::uno::RuntimeException)
{
return aInfos;
}
......@@ -142,7 +143,7 @@ Sequence< Property > OPropertySetHelperInfo_Impl::getProperties(void)
/**
* Return the sequence of properties, which are provided throug the constructor.
*/
Property OPropertySetHelperInfo_Impl::getPropertyByName( const OUString & PropertyName )
Property OPropertySetHelperInfo_Impl::getPropertyByName( const OUString & PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException)
{
Property * pR;
pR = (Property *)bsearch( &PropertyName, aInfos.getConstArray(), aInfos.getLength(),
......@@ -158,7 +159,7 @@ Property OPropertySetHelperInfo_Impl::getPropertyByName( const OUString & Proper
/**
* Return the sequence of properties, which are provided throug the constructor.
*/
sal_Bool OPropertySetHelperInfo_Impl::hasPropertyByName( const OUString & PropertyName )
sal_Bool OPropertySetHelperInfo_Impl::hasPropertyByName( const OUString & PropertyName ) throw(::com::sun::star::uno::RuntimeException)
{
Property * pR;
pR = (Property *)bsearch( &PropertyName, aInfos.getConstArray(), aInfos.getLength(),
......
......@@ -2,9 +2,9 @@
*
* $RCSfile: stdidlclass.cxx,v $
*
* $Revision: 1.2 $
* $Revision: 1.3 $
*
* last change: $Author: dbo $ $Date: 2001-03-09 12:15:28 $
* last change: $Author: hr $ $Date: 2001-09-11 13:45:22 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
......@@ -94,8 +94,8 @@ public:
Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType )
throw(::com::sun::star::uno::RuntimeException);
void SAL_CALL acquire() { OWeakObject::acquire(); }
void SAL_CALL release() { OWeakObject::release(); }
void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
void SAL_CALL release() throw() { OWeakObject::release(); }
// XIdlClassProvider
Sequence< Reference < XIdlClass > > SAL_CALL getIdlClasses(void)
......
......@@ -2,9 +2,9 @@
*
* $RCSfile: remote_bridge.cxx,v $
*
* $Revision: 1.7 $
* $Revision: 1.8 $
*
* last change: $Author: jbu $ $Date: 2001-06-22 16:39:16 $
* last change: $Author: hr $ $Date: 2001-09-11 13:50:45 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
......@@ -118,7 +118,7 @@ namespace remotebridges_bridge
}
}
Any ORemoteBridge::queryInterface( const Type & aType )
Any ORemoteBridge::queryInterface( const Type & aType ) throw(RuntimeException)
{
Any a = ::cppu::queryInterface(
aType ,
......
......@@ -2,9 +2,9 @@
*
* $RCSfile: remote_bridge.hxx,v $
*
* $Revision: 1.3 $
* $Revision: 1.4 $
*
* last change: $Author: jbu $ $Date: 2001-06-22 16:39:16 $
* last change: $Author: hr $ $Date: 2001-09-11 13:50:45 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
......@@ -102,11 +102,11 @@ namespace remotebridges_bridge
// XInterface
public:
::com::sun::star::uno::Any SAL_CALL
queryInterface( const ::com::sun::star::uno::Type & aType );
queryInterface( const ::com::sun::star::uno::Type & aType ) throw(::com::sun::star::uno::RuntimeException);
void SAL_CALL acquire()
void SAL_CALL acquire() throw()
{ OComponentHelper::acquire(); }
void SAL_CALL release()
void SAL_CALL release() throw()
{ OComponentHelper::release(); }
public:
......
......@@ -2,9 +2,9 @@
*
* $RCSfile: bridgefactory.cxx,v $
*
* $Revision: 1.7 $
* $Revision: 1.8 $
*
* last change: $Author: jbu $ $Date: 2001-06-22 16:39:16 $
* last change: $Author: hr $ $Date: 2001-09-11 13:51:37 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
......@@ -144,11 +144,11 @@ namespace remotebridges_factory
public: // XInterface
::com::sun::star::uno::Any SAL_CALL
queryInterface( const ::com::sun::star::uno::Type & aType );
queryInterface( const ::com::sun::star::uno::Type & aType ) throw(RuntimeException);
void SAL_CALL acquire()
void SAL_CALL acquire() throw()
{ OComponentHelper::acquire(); }
void SAL_CALL release()
void SAL_CALL release() throw()
{ OComponentHelper::release(); }
public:
......@@ -279,7 +279,7 @@ namespace remotebridges_factory
return sService;
}
Any OBridgeFactory::queryInterface( const Type &aType )
Any OBridgeFactory::queryInterface( const Type &aType ) throw(RuntimeException)
{
Any a = ::cppu::queryInterface(
aType ,
......
......@@ -2,9 +2,9 @@
*
* $RCSfile: bridgeimpl.cxx,v $
*
* $Revision: 1.5 $
* $Revision: 1.6 $
*
* last change: $Author: jbu $ $Date: 2001-06-22 16:39:16 $
* last change: $Author: hr $ $Date: 2001-09-11 13:51:37 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
......@@ -94,7 +94,7 @@ namespace remotebridges_factory {
g_moduleCount.modCnt.release( &g_moduleCount.modCnt );
}
::com::sun::star::uno::Any OBridge::queryInterface( const ::com::sun::star::uno::Type & aType )
::com::sun::star::uno::Any OBridge::queryInterface( const ::com::sun::star::uno::Type & aType ) throw(RuntimeException)
{
Any a = ::cppu::queryInterface(
aType ,
......
......@@ -2,9 +2,9 @@
*
* $RCSfile: bridgeimpl.hxx,v $
*
* $Revision: 1.2 $
* $Revision: 1.3 $
*
* last change: $Author: jbu $ $Date: 2001-06-22 16:39:16 $
* last change: $Author: hr $ $Date: 2001-09-11 13:51:37 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
......@@ -99,11 +99,11 @@ namespace remotebridges_factory {
// XInterface
public:
::com::sun::star::uno::Any SAL_CALL
queryInterface( const ::com::sun::star::uno::Type & aType );
queryInterface( const ::com::sun::star::uno::Type & aType ) throw(com::sun::star::uno::RuntimeException);
void SAL_CALL acquire()
void SAL_CALL acquire() throw()
{ OComponentHelper::acquire(); }
void SAL_CALL release()
void SAL_CALL release() throw()
{ OComponentHelper::release(); }
public:
......
......@@ -2,9 +2,9 @@
*
* $RCSfile: introspection.cxx,v $
*
* $Revision: 1.9 $
* $Revision: 1.10 $
*
* last change: $Author: pl $ $Date: 2001-05-11 11:48:13 $
* last change: $Author: hr $ $Date: 2001-09-11 13:48:03 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
......@@ -929,7 +929,7 @@ public:
throw( IllegalTypeException, RuntimeException );
// Methoden von XMaterialHolder
virtual Any SAL_CALL getMaterial(void);
virtual Any SAL_CALL getMaterial(void) throw(RuntimeException);
// Methoden von XExactName
virtual OUString SAL_CALL getExactName( const OUString& rApproximateName ) throw( RuntimeException );
......@@ -1451,7 +1451,7 @@ Reference<XInterface> SAL_CALL ImplIntrospectionAccess::queryAdapter( const Type
}
// Methoden von XMaterialHolder
Any ImplIntrospectionAccess::getMaterial(void)
Any ImplIntrospectionAccess::getMaterial(void) throw(RuntimeException)
{
return maInspectedObject;
}
......
......@@ -2,9 +2,9 @@
*
* $RCSfile: invocation.cxx,v $
*
* $Revision: 1.10 $
* $Revision: 1.11 $
*
* last change: $Author: dbo $ $Date: 2001-07-27 10:29:52 $
* last change: $Author: hr $ $Date: 2001-09-11 13:48:48 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
......@@ -194,7 +194,7 @@ public:
throw( RuntimeException);
// Methoden von XMaterialHolder
virtual Any SAL_CALL getMaterial(void);
virtual Any SAL_CALL getMaterial(void) throw(RuntimeException);
// ? XTool
virtual void SAL_CALL setMaterial( const Any& rMaterial );
......@@ -412,7 +412,7 @@ Any SAL_CALL Invocation_Impl::queryInterface( const Type & aType )
//--------------------------------------------------------------------------------------------------
Any Invocation_Impl::getMaterial(void)
Any Invocation_Impl::getMaterial(void) throw(RuntimeException)
{
// AB, 12.2.1999 Sicherstellen, dass das Material wenn moeglich
// aus der direkten Invocation bzw. von der Introspection geholt
......
......@@ -2,9 +2,9 @@
*
* $RCSfile: namingservice.cxx,v $
*
* $Revision: 1.4 $
* $Revision: 1.5 $
*
* last change: $Author: jbu $ $Date: 2001-06-22 16:20:59 $
* last change: $Author: hr $ $Date: 2001-09-11 13:49:23 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
......@@ -187,9 +187,9 @@ public:
return Sequence< OUString >( &aStr, 1 );
}
virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL getRegisteredObject( const ::rtl::OUString& Name );
virtual void SAL_CALL registerObject( const ::rtl::OUString& Name, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& Object );
virtual void SAL_CALL revokeObject( const ::rtl::OUString& Name );
virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL getRegisteredObject( const ::rtl::OUString& Name ) throw(Exception, RuntimeException);
virtual void SAL_CALL registerObject( const ::rtl::OUString& Name, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& Object ) throw(Exception, RuntimeException);
virtual void SAL_CALL revokeObject( const ::rtl::OUString& Name ) throw(Exception, RuntimeException);
};
//==================================================================================================
......@@ -239,7 +239,7 @@ Sequence< OUString > NamingService_Impl::getSupportedServiceNames()
}
// XServiceInfo
Reference< XInterface > NamingService_Impl::getRegisteredObject( const OUString& Name )
Reference< XInterface > NamingService_Impl::getRegisteredObject( const OUString& Name ) throw(Exception, RuntimeException)
{
Guard< Mutex > aGuard( aMutex );
Reference< XInterface > xRet;
......@@ -250,14 +250,14 @@ Reference< XInterface > NamingService_Impl::getRegisteredObject( const OUString&
}
// XServiceInfo
void NamingService_Impl::registerObject( const OUString& Name, const Reference< XInterface >& Object )
void NamingService_Impl::registerObject( const OUString& Name, const Reference< XInterface >& Object ) throw(Exception, RuntimeException)
{
Guard< Mutex > aGuard( aMutex );
aMap[ Name ] = Object;
}
// XServiceInfo
void NamingService_Impl::revokeObject( const OUString& Name )
void NamingService_Impl::revokeObject( const OUString& Name ) throw(Exception, RuntimeException)
{
Guard< Mutex > aGuard( aMutex );
aMap.erase( Name );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment