22#include <com/sun/star/accessibility/XAccessibleEventListener.hpp>
23#include <com/sun/star/accessibility/XAccessible.hpp>
34class AccEventListener :
public ::cppu::WeakImplHelper<css::accessibility::XAccessibleEventListener>
47 virtual void SAL_CALL
disposing(
const css::lang::EventObject& Source)
override;
51 notifyEvent(
const css::accessibility::AccessibleEventObject& aEvent)
override;
AccEventListener is the general event listener for all controls.
virtual short GetRole()
get the role of accessible object which is observed
virtual void SetComponentState(sal_Int64 state, bool enable)
set the new state and fire the MSAA event
virtual void HandleDescriptionChangedEvent()
handle the DESCRIPTION_CHANGED event
virtual void HandleNameChangedEvent(css::uno::Any name)
handle the NAME_CHANGED event
virtual void HandleVisibleDataChangedEvent()
handle the VISIBLE_DATA_CHANGED event
virtual void FireStateFocusedChange(bool enable)
handle the focused event
virtual ~AccEventListener() override
virtual short GetParentRole()
get the role of accessible parent object which is observed
AccObjectManagerAgent * pAgent
virtual void SAL_CALL disposing(const css::lang::EventObject &Source) override
this method is invoked before listener is disposed
AccEventListener(css::accessibility::XAccessible *pAcc, AccObjectManagerAgent *Agent)
virtual void FireStatePropertyChange(sal_Int64 state, bool set)
fire the MSAA state changed event
virtual void HandleBoundrectChangedEvent()
handle the BOUNDRECT_CHANGED event
virtual void SAL_CALL notifyEvent(const css::accessibility::AccessibleEventObject &aEvent) override
Uno's event notifier when event is captured.
void RemoveMeFromBroadcaster(bool isNotifyDestroy)
remove the listener from accessible object
virtual void HandleStateChangedEvent(css::uno::Any oldValue, css::uno::Any newValue)
handle the STATE_CHANGED event
css::uno::Reference< css::accessibility::XAccessible > m_xAccessible