Change-Id: Ied7a6f8d5b4555dc561fc24d3b6b9743e9e2a266
This commit is contained in:
Stephan Bergmann 2015-01-07 17:45:56 +01:00
parent 8ad48d881b
commit 43a0bae9f6

View File

@ -113,6 +113,23 @@ public:
{ return css::uno::Sequence<sal_Int8>(); }
};
/** Implementation helper implementing interfaces
com::sun::star::uno::XInterface and com::sun::star::lang::XTypeProvider
inherting from a BaseClass.
All acquire() and release() calls are delegated to the BaseClass. Upon
queryInterface(), if a demanded interface is not supported by this class
directly, the request is delegated to the BaseClass.
@attention
The BaseClass has to be complete in the sense that
com::sun::star::uno::XInterface and com::sun::star::lang::XTypeProvider are
implemented properly.
@derive
Inherit from this class giving your additional interface(s) to be
implemented as template argument(s).
*/
template<typename BaseClass, typename... Ifc>
class SAL_NO_VTABLE SAL_DLLPUBLIC_TEMPLATE ImplInheritanceHelper:
public BaseClass, public Ifc...