22#include <com/sun/star/lang/DisposedException.hpp>
31void SAL_CALL EventListenerMultiplexer::acquire() noexcept
33 return ListenerMultiplexerBase::acquire();
36void SAL_CALL EventListenerMultiplexer::release() noexcept
38 return ListenerMultiplexerBase::release();
42css::uno::Any EventListenerMultiplexer::queryInterface(
const css::uno::Type & rType )
44 css::uno::Any aRet = ::cppu::queryInterface( rType,
45 static_cast< css::lang::XEventListener*
>(
this) );
46 return (aRet.hasValue() ? aRet : ListenerMultiplexerBase::queryInterface( rType ));
50void EventListenerMultiplexer::disposing(
const css::lang::EventObject& )
149 sal_Int32 aMulti( evt );
150 std::unique_lock g(m_aMutex);
153 while( aIt.hasMoreElements() )
155 css::uno::Reference<css::awt::XTabListener> xListener(aIt.next());
158 xListener->changed( aMulti, evt2 );
160 catch(
const css::lang::DisposedException& e)
162 OSL_ENSURE( e.Context.is(),
"caught DisposedException with empty Context field" );
163 if ( e.Context == xListener || !e.Context.is() )
165 std::unique_lock g2(m_aMutex);
169 catch(
const css::uno::RuntimeException&)
void SAL_CALL windowClosed(const css::lang::EventObject &e) override
void SAL_CALL windowMinimized(const css::lang::EventObject &e) override
DECL_LISTENERMULTIPLEXER_END void SAL_CALL actionPerformed(const css::awt::ActionEvent &rEvent) override
void SAL_CALL windowDeactivated(const css::lang::EventObject &e) override
void SAL_CALL itemDeactivated(const css::awt::MenuEvent &rEvent) override
virtual void SAL_CALL treeExpanded(const css::awt::tree::TreeExpansionEvent &aEvent) override
DECL_LISTENERMULTIPLEXER_END void SAL_CALL textChanged(const css::awt::TextEvent &rEvent) override
void SAL_CALL windowHidden(const css::lang::EventObject &e) override
void SAL_CALL windowActivated(const css::lang::EventObject &e) override
void SAL_CALL deactivated(::sal_Int32 ID) override
DECL_LISTENERMULTIPLEXER_END void SAL_CALL up(const css::awt::SpinEvent &rEvent) override
DECL_LISTENERMULTIPLEXER_END void SAL_CALL windowResized(const css::awt::WindowEvent &e) override
void SAL_CALL mouseReleased(const css::awt::MouseEvent &e) override
DECL_LISTENERMULTIPLEXER_END void SAL_CALL windowAdded(const css::awt::VclContainerEvent &e) override
void SAL_CALL mouseExited(const css::awt::MouseEvent &e) override
void SAL_CALL itemActivated(const css::awt::MenuEvent &rEvent) override
void SAL_CALL down(const css::awt::SpinEvent &rEvent) override
virtual DECL_LISTENERMULTIPLEXER_END void SAL_CALL selectionChanged(const css::lang::EventObject &aEvent) override
void SAL_CALL elementReplaced(const css::container::ContainerEvent &Event) override
DECL_LISTENERMULTIPLEXER_END void SAL_CALL itemHighlighted(const css::awt::MenuEvent &rEvent) override
DECL_LISTENERMULTIPLEXER_END void SAL_CALL inserted(::sal_Int32 ID) override
void SAL_CALL changed(::sal_Int32 ID, const css::uno::Sequence< css::beans::NamedValue > &Properties) override
void SAL_CALL mouseMoved(const css::awt::MouseEvent &e) override
DECL_LISTENERMULTIPLEXER_END void SAL_CALL windowPaint(const css::awt::PaintEvent &e) override
void SAL_CALL elementRemoved(const css::container::ContainerEvent &Event) override
DECL_LISTENERMULTIPLEXER_END void SAL_CALL mousePressed(const css::awt::MouseEvent &e) override
void SAL_CALL last(const css::awt::SpinEvent &rEvent) override
void SAL_CALL first(const css::awt::SpinEvent &rEvent) override
DECL_LISTENERMULTIPLEXER_END void SAL_CALL windowOpened(const css::lang::EventObject &e) override
void SAL_CALL windowClosing(const css::lang::EventObject &e) override
DECL_LISTENERMULTIPLEXER_END void SAL_CALL elementInserted(const css::container::ContainerEvent &Event) override
void SAL_CALL mouseEntered(const css::awt::MouseEvent &e) override
DECL_LISTENERMULTIPLEXER_END void SAL_CALL itemStateChanged(const css::awt::ItemEvent &rEvent) override
void SAL_CALL removed(::sal_Int32 ID) override
void SAL_CALL windowRemoved(const css::awt::VclContainerEvent &e) override
DECL_LISTENERMULTIPLEXER_END void SAL_CALL keyPressed(const css::awt::KeyEvent &e) override
virtual void SAL_CALL treeCollapsed(const css::awt::tree::TreeExpansionEvent &aEvent) override
void SAL_CALL keyReleased(const css::awt::KeyEvent &e) override
class UNLESS_MERGELIBS(TOOLKIT_DLLPUBLIC) ListenerMultiplexerBase DECL_LISTENERMULTIPLEXER_END void SAL_CALL focusGained(const css::awt::FocusEvent &e) override
void SAL_CALL focusLost(const css::awt::FocusEvent &e) override
virtual void SAL_CALL treeExpanding(const css::awt::tree::TreeExpansionEvent &aEvent) override
void SAL_CALL itemSelected(const css::awt::MenuEvent &rEvent) override
void SAL_CALL windowShown(const css::lang::EventObject &e) override
DECL_LISTENERMULTIPLEXER_END void SAL_CALL tabPageActivated(const css::awt::tab::TabPageActivatedEvent &aEvent) override
void SAL_CALL activated(::sal_Int32 ID) override
virtual DECL_LISTENERMULTIPLEXER_END void SAL_CALL requestChildNodes(const css::awt::tree::TreeExpansionEvent &aEvent) override
DECL_LISTENERMULTIPLEXER_END void SAL_CALL adjustmentValueChanged(const css::awt::AdjustmentEvent &rEvent) override
DECL_LISTENERMULTIPLEXER_END void SAL_CALL mouseDragged(const css::awt::MouseEvent &e) override
virtual void SAL_CALL treeCollapsing(const css::awt::tree::TreeExpansionEvent &aEvent) override
void SAL_CALL windowNormalized(const css::lang::EventObject &e) override
void SAL_CALL windowMoved(const css::awt::WindowEvent &e) override
#define IMPL_TABLISTENERMULTIPLEXER_LISTENERMETHOD_BODY_1PARAM(ClassName, InterfaceName, MethodName, ParamType1)
#define IMPL_LISTENERMULTIPLEXER_BASEMETHODS(ClassName, InterfaceName)
#define IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD(ClassName, InterfaceName, MethodName, EventType)
#define IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD_EXCEPTION(ClassName, InterfaceName, MethodName, EventType, Exception)
#define DISPLAY_EXCEPTION(ClassName, MethodName)