LibreOffice Module canvas (master) 1
|
Base class, initializing its own baseclass with m_aMutex. More...
#include <disambiguationhelper.hxx>
Protected Member Functions | |
DisambiguationHelper () | |
Construct DisambiguationHelper. More... | |
virtual void | disposeThis () |
virtual void | disposeEventSource (const css::lang::EventObject &) |
Protected Attributes | |
mutable::osl::Mutex | m_aMutex |
Private Member Functions | |
virtual void SAL_CALL | disposing () override |
virtual void SAL_CALL | disposing (const css::lang::EventObject &Source) override |
Base class, initializing its own baseclass with m_aMutex.
This is necessary to make the CanvasBase, GraphicDeviceBase, etc. classes freely combinable - letting them perform this initialization would prohibit deriving e.g. CanvasBase from GraphicDeviceBase.
On top of that, disambiguates XEventListener::disposing and WeakComponentImplHelper::disposing.
Having two virtual methods with the same name, and not overriding them in every derived class, will hide one of them. Later trying to override the same method, will generate a new vtable slot, and lead to very hard to spot errors.
Definition at line 45 of file disambiguationhelper.hxx.
|
inlineprotected |
Construct DisambiguationHelper.
This method is the whole purpose of this template: initializing a base class with the provided m_aMutex member (the WeakComponentImplHelper templates need that, as they require the lifetime of the mutex to extend theirs).
Definition at line 56 of file disambiguationhelper.hxx.
References Base.
|
inlineprotectedvirtual |
css::uno::RuntimeException |
Definition at line 64 of file disambiguationhelper.hxx.
Referenced by canvas::DisambiguationHelper< Base >::disposing().
|
inlineprotectedvirtual |
Definition at line 61 of file disambiguationhelper.hxx.
Referenced by canvas::DisambiguationHelper< Base >::disposing().
|
inlineoverrideprivatevirtual |
Definition at line 70 of file disambiguationhelper.hxx.
References canvas::DisambiguationHelper< Base >::disposeThis().
|
inlineoverrideprivatevirtual |
Definition at line 73 of file disambiguationhelper.hxx.
References canvas::DisambiguationHelper< Base >::disposeEventSource(), and Source.
|
protected |
Definition at line 67 of file disambiguationhelper.hxx.