20#include <com/sun/star/lang/XComponent.hpp>
21#include <com/sun/star/lang/XTypeProvider.hpp>
39 public css::lang::XComponent
45 virtual void SAL_CALL
dispose()
override;
47 addEventListener(css::uno::Reference<css::lang::XEventListener>
const& rxListener)
override;
49 removeEventListener(css::uno::Reference<css::lang::XEventListener>
const& rxListener)
override;
51 virtual css::uno::Any SAL_CALL
queryInterface(css::uno::Type
const& rType)
override;
57 virtual void disposing(std::unique_lock<std::mutex>&);
63 throw css::lang::DisposedException(OUString(),
static_cast<cppu::OWeakObject*
>(
this));
74template <
typename... Ifc>
76 public css::lang::XTypeProvider,
80 virtual void SAL_CALL
acquire() noexcept
override { OWeakObject::acquire(); }
82 virtual void SAL_CALL
release() noexcept
override { OWeakObject::release(); }
85 virtual void SAL_CALL
dispose() noexcept final
override
90 css::uno::Reference<css::lang::XEventListener>
const& rxListener)
final override
95 css::uno::Reference<css::lang::XEventListener>
const& rxListener)
final override
100 virtual css::uno::Any SAL_CALL
queryInterface(css::uno::Type
const& rType)
override
106 virtual css::uno::Sequence<css::uno::Type> SAL_CALL
getTypes()
override
108 static const css::uno::Sequence<css::uno::Type> aTypeList{
116 return css::uno::Sequence<sal_Int8>();
Base class to implement a UNO object supporting weak references, i.e.
css::uno::Type const & get()
A container of interfaces.
This is a straight copy of the include/comphelper/unoimplbase.hxx file, copied here because it is nig...
virtual void SAL_CALL dispose() noexcept final override
virtual void SAL_CALL removeEventListener(css::uno::Reference< css::lang::XEventListener > const &rxListener) final override
virtual void SAL_CALL addEventListener(css::uno::Reference< css::lang::XEventListener > const &rxListener) final override
virtual void SAL_CALL release() noexcept override
decreasing m_refCount
virtual void SAL_CALL acquire() noexcept override
increasing m_refCount
virtual css::uno::Any SAL_CALL queryInterface(css::uno::Type const &rType) override
Basic queryInterface() implementation supporting com::sun::star::uno::XWeak and com::sun::star::uno::...
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
static cppu::class_data * class_data_get()
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
Serves two purposes (1) extracts code that doesn't need to be templated (2) helps to handle the custo...
OInterfaceContainerHelper4< css::lang::XEventListener > maEventListeners
virtual void SAL_CALL addEventListener(css::uno::Reference< css::lang::XEventListener > const &rxListener) override
virtual void SAL_CALL removeEventListener(css::uno::Reference< css::lang::XEventListener > const &rxListener) override
virtual void SAL_CALL dispose() override
void throwIfDisposed(std::unique_lock< std::mutex > &)
#define CPPUHELPER_DLLPUBLIC
css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType, Interface1 *p1)
Compares demanded type to given template argument types.
This is a straight copy of the include/comphelper/compbase.hxx file, copied here because it is nigh i...
css::uno::Any WeakComponentImplHelper_query(css::uno::Type const &rType, cppu::class_data *cd, WeakComponentImplHelperBase2 *pBase)
WeakComponentImplHelper.