kill XINTERFACE_IMPL_9
Change-Id: I651599cf3ec82a31f3260985907b5b2d56665da3
This commit is contained in:
parent
2ef98b947e
commit
a5aad2ac58
@ -89,36 +89,6 @@ com::sun::star::uno::Any SAL_CALL Class::queryInterface( \
|
||||
}\
|
||||
|
||||
// 9 interfaces implemented
|
||||
#define XINTERFACE_IMPL_9( Class,I1,I2,I3,I4,I5,I6,I7,I8,I9 ) \
|
||||
void SAL_CALL Class::acquire() \
|
||||
throw() \
|
||||
{ \
|
||||
OWeakObject::acquire(); \
|
||||
} \
|
||||
\
|
||||
void SAL_CALL Class::release() \
|
||||
throw() \
|
||||
{ \
|
||||
OWeakObject::release(); \
|
||||
} \
|
||||
com::sun::star::uno::Any SAL_CALL Class::queryInterface( \
|
||||
const com::sun::star::uno::Type & rType ) \
|
||||
throw( com::sun::star::uno::RuntimeException, std::exception ) \
|
||||
{ \
|
||||
com::sun::star::uno::Any aRet = cppu::queryInterface( rType, \
|
||||
(static_cast< I1* >(this)), \
|
||||
(static_cast< I2* >(this)), \
|
||||
(static_cast< I3* >(this)), \
|
||||
(static_cast< I4* >(this)), \
|
||||
(static_cast< I5* >(this)), \
|
||||
(static_cast< I6* >(this)), \
|
||||
(static_cast< I7* >(this)), \
|
||||
(static_cast< I8* >(this)), \
|
||||
(static_cast< I9* >(this)) \
|
||||
); \
|
||||
return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType ); \
|
||||
}\
|
||||
|
||||
// XTypeProvider decl.
|
||||
|
||||
|
||||
|
@ -251,21 +251,34 @@ UniversalContentBroker::~UniversalContentBroker()
|
||||
|
||||
|
||||
// XInterface methods.
|
||||
void SAL_CALL UniversalContentBroker::acquire()
|
||||
throw()
|
||||
{
|
||||
OWeakObject::acquire();
|
||||
}
|
||||
|
||||
void SAL_CALL UniversalContentBroker::release()
|
||||
throw()
|
||||
{
|
||||
OWeakObject::release();
|
||||
}
|
||||
|
||||
|
||||
XINTERFACE_IMPL_9( UniversalContentBroker,
|
||||
XUniversalContentBroker,
|
||||
XTypeProvider,
|
||||
XComponent,
|
||||
XServiceInfo,
|
||||
XInitialization,
|
||||
XContentProviderManager,
|
||||
XContentProvider,
|
||||
XContentIdentifierFactory,
|
||||
XCommandProcessor );
|
||||
|
||||
|
||||
css::uno::Any SAL_CALL UniversalContentBroker::queryInterface( const css::uno::Type & rType )
|
||||
throw( css::uno::RuntimeException, std::exception )
|
||||
{
|
||||
css::uno::Any aRet = cppu::queryInterface( rType,
|
||||
(static_cast< XUniversalContentBroker* >(this)),
|
||||
(static_cast< XTypeProvider* >(this)),
|
||||
(static_cast< XComponent* >(this)),
|
||||
(static_cast< XServiceInfo* >(this)),
|
||||
(static_cast< XInitialization* >(this)),
|
||||
(static_cast< XContentProviderManager* >(this)),
|
||||
(static_cast< XContentProvider* >(this)),
|
||||
(static_cast< XContentIdentifierFactory* >(this)),
|
||||
(static_cast< XCommandProcessor* >(this))
|
||||
);
|
||||
return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
|
||||
}
|
||||
|
||||
// XTypeProvider methods.
|
||||
|
||||
|
@ -1282,21 +1282,34 @@ PersistentPropertySet::~PersistentPropertySet()
|
||||
|
||||
|
||||
// XInterface methods.
|
||||
void SAL_CALL PersistentPropertySet::acquire()
|
||||
throw()
|
||||
{
|
||||
OWeakObject::acquire();
|
||||
}
|
||||
|
||||
void SAL_CALL PersistentPropertySet::release()
|
||||
throw()
|
||||
{
|
||||
OWeakObject::release();
|
||||
}
|
||||
|
||||
|
||||
XINTERFACE_IMPL_9( PersistentPropertySet,
|
||||
XTypeProvider,
|
||||
XServiceInfo,
|
||||
XComponent,
|
||||
XPropertySet, /* base of XPersistentPropertySet */
|
||||
XNamed,
|
||||
XPersistentPropertySet,
|
||||
XPropertyContainer,
|
||||
XPropertySetInfoChangeNotifier,
|
||||
XPropertyAccess );
|
||||
|
||||
|
||||
css::uno::Any SAL_CALL PersistentPropertySet::queryInterface( const css::uno::Type & rType )
|
||||
throw( css::uno::RuntimeException, std::exception )
|
||||
{
|
||||
css::uno::Any aRet = cppu::queryInterface( rType,
|
||||
(static_cast< XTypeProvider* >(this)),
|
||||
(static_cast< XServiceInfo* >(this)),
|
||||
(static_cast< XComponent* >(this)),
|
||||
(static_cast< XPropertySet* >(this)),
|
||||
(static_cast< XNamed* >(this)),
|
||||
(static_cast< XPersistentPropertySet* >(this)),
|
||||
(static_cast< XPropertyContainer* >(this)),
|
||||
(static_cast< XPropertySetInfoChangeNotifier* >(this)),
|
||||
(static_cast< XPropertyAccess* >(this))
|
||||
);
|
||||
return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
|
||||
}
|
||||
|
||||
// XTypeProvider methods.
|
||||
|
||||
|
@ -210,18 +210,34 @@ SortedResultSet::~SortedResultSet()
|
||||
|
||||
// XInterface methods.
|
||||
|
||||
void SAL_CALL SortedResultSet::acquire()
|
||||
throw()
|
||||
{
|
||||
OWeakObject::acquire();
|
||||
}
|
||||
|
||||
XINTERFACE_IMPL_9( SortedResultSet,
|
||||
XTypeProvider,
|
||||
XServiceInfo,
|
||||
XComponent,
|
||||
XContentAccess,
|
||||
XResultSet,
|
||||
XRow,
|
||||
XCloseable,
|
||||
XResultSetMetaDataSupplier,
|
||||
XPropertySet );
|
||||
void SAL_CALL SortedResultSet::release()
|
||||
throw()
|
||||
{
|
||||
OWeakObject::release();
|
||||
}
|
||||
|
||||
css::uno::Any SAL_CALL SortedResultSet::queryInterface( const css::uno::Type & rType )
|
||||
throw( css::uno::RuntimeException, std::exception )
|
||||
{
|
||||
css::uno::Any aRet = cppu::queryInterface( rType,
|
||||
(static_cast< XTypeProvider* >(this)),
|
||||
(static_cast< XServiceInfo* >(this)),
|
||||
(static_cast< XComponent* >(this)),
|
||||
(static_cast< XContentAccess* >(this)),
|
||||
(static_cast< XResultSet* >(this)),
|
||||
(static_cast< XRow* >(this)),
|
||||
(static_cast< XCloseable* >(this)),
|
||||
(static_cast< XResultSetMetaDataSupplier* >(this)),
|
||||
(static_cast< XPropertySet* >(this))
|
||||
);
|
||||
return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
|
||||
}
|
||||
|
||||
// XTypeProvider methods.
|
||||
|
||||
|
@ -248,20 +248,34 @@ ResultSet::~ResultSet()
|
||||
|
||||
// XInterface methods.
|
||||
|
||||
void SAL_CALL ResultSet::acquire()
|
||||
throw()
|
||||
{
|
||||
OWeakObject::acquire();
|
||||
}
|
||||
|
||||
void SAL_CALL ResultSet::release()
|
||||
throw()
|
||||
{
|
||||
OWeakObject::release();
|
||||
}
|
||||
|
||||
XINTERFACE_IMPL_9( ResultSet,
|
||||
lang::XTypeProvider,
|
||||
lang::XServiceInfo,
|
||||
lang::XComponent,
|
||||
com::sun::star::ucb::XContentAccess,
|
||||
sdbc::XResultSet,
|
||||
sdbc::XResultSetMetaDataSupplier,
|
||||
sdbc::XRow,
|
||||
sdbc::XCloseable,
|
||||
beans::XPropertySet );
|
||||
|
||||
|
||||
css::uno::Any SAL_CALL ResultSet::queryInterface( const css::uno::Type & rType )
|
||||
throw( css::uno::RuntimeException, std::exception )
|
||||
{
|
||||
css::uno::Any aRet = cppu::queryInterface( rType,
|
||||
(static_cast< lang::XTypeProvider* >(this)),
|
||||
(static_cast< lang::XServiceInfo* >(this)),
|
||||
(static_cast< lang::XComponent* >(this)),
|
||||
(static_cast< css::ucb::XContentAccess* >(this)),
|
||||
(static_cast< sdbc::XResultSet* >(this)),
|
||||
(static_cast< sdbc::XResultSetMetaDataSupplier* >(this)),
|
||||
(static_cast< sdbc::XRow* >(this)),
|
||||
(static_cast< sdbc::XCloseable* >(this)),
|
||||
(static_cast< beans::XPropertySet* >(this))
|
||||
);
|
||||
return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
|
||||
}
|
||||
|
||||
// XTypeProvider methods.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user