LibreOffice Module winaccessibility (master) 1
Public Member Functions | List of all members
AccContainerEventListener Class Reference

AccContainerEventListener is inherited from AccEventListener. More...

#include <AccContainerEventListener.hxx>

Inheritance diagram for AccContainerEventListener:
[legend]
Collaboration diagram for AccContainerEventListener:
[legend]

Public Member Functions

 AccContainerEventListener (css::accessibility::XAccessible *pAcc, AccObjectManagerAgent *Agent)
 
virtual ~AccContainerEventListener () override
 
virtual void SAL_CALL notifyEvent (const css::accessibility::AccessibleEventObject &aEvent) override
 Uno's event notifier when event is captured. More...
 
virtual void HandleChildChangedEvent (css::uno::Any oldValue, css::uno::Any newValue)
 handle the CHILD event More...
 
virtual void HandleSelectionChangedEvent (const css::uno::Any &oldValue, const css::uno::Any &newValue)
 handle the SELECTION_CHANGED event More...
 
virtual void HandleAllChildrenChangedEvent ()
 handle the INVALIDATE_ALL_CHILDREN event More...
 
virtual void HandleTextChangedEvent (css::uno::Any oldValue, css::uno::Any newValue)
 handle the TEXT_CHANGED event More...
 
virtual void HandleStateChangedEvent (css::uno::Any oldValue, css::uno::Any newValue) override
 handle the STATE_CHANGED event More...
 
virtual void HandleValueChangedEvent (css::uno::Any oldValue, css::uno::Any newValue)
 handle the VALUE_CHANGED event More...
 
virtual void SetComponentState (sal_Int64 state, bool enable) override
 set the new state and fire the MSAA event More...
 
virtual void FireStatePropertyChange (sal_Int64 state, bool set) override
 fire the MSAA state changed event More...
 
virtual void FireStateFocusedChange (bool enable) override
 handle the focused event More...
 
virtual bool IsEditable (css::uno::Reference< css::accessibility::XAccessibleContext > const &xContext)
 
void UpdateAllChildrenState (css::accessibility::XAccessible *pXAccessible)
 
bool NotifyChildEvent (UnoMSAAEvent eWinEvent, const css::uno::Any &Value)
 
virtual void HandleSelectionChangedAddEvent (const css::uno::Any &oldValue, const css::uno::Any &newValue)
 
virtual void HandleSelectionChangedRemoveEvent (const css::uno::Any &oldValue, const css::uno::Any &newValue)
 
virtual void HandleSelectionChangedWithinEvent (const css::uno::Any &oldValue, const css::uno::Any &newValue)
 
virtual void HandlePageChangedEvent (const css::uno::Any &oldValue, const css::uno::Any &newValue)
 
virtual void HandleSectionChangedEvent (const css::uno::Any &oldValue, const css::uno::Any &newValue)
 
virtual void HandleColumnChangedEvent (const css::uno::Any &oldValue, const css::uno::Any &newValue)
 
virtual void HandleNameChangedEvent (css::uno::Any name) override
 handle the NAME_CHANGED event More...
 
- Public Member Functions inherited from AccEventListener
 AccEventListener (css::accessibility::XAccessible *pAcc, AccObjectManagerAgent *Agent)
 
virtual ~AccEventListener () override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &Source) override
 this method is invoked before listener is disposed More...
 
virtual void SAL_CALL notifyEvent (const css::accessibility::AccessibleEventObject &aEvent) override
 Uno's event notifier when event is captured. More...
 
virtual void HandleNameChangedEvent (css::uno::Any name)
 handle the NAME_CHANGED event More...
 
virtual void HandleDescriptionChangedEvent ()
 handle the DESCRIPTION_CHANGED event More...
 
virtual void HandleStateChangedEvent (css::uno::Any oldValue, css::uno::Any newValue)
 handle the STATE_CHANGED event More...
 
virtual void SetComponentState (sal_Int64 state, bool enable)
 set the new state and fire the MSAA event More...
 
virtual void FireStatePropertyChange (sal_Int64 state, bool set)
 fire the MSAA state changed event More...
 
virtual void FireStateFocusedChange (bool enable)
 handle the focused event More...
 
virtual void HandleBoundrectChangedEvent ()
 handle the BOUNDRECT_CHANGED event More...
 
virtual void HandleVisibleDataChangedEvent ()
 handle the VISIBLE_DATA_CHANGED event More...
 
virtual short GetRole ()
 get the role of accessible object which is observed More...
 
virtual short GetParentRole ()
 get the role of accessible parent object which is observed More...
 
void RemoveMeFromBroadcaster (bool isNotifyDestroy)
 remove the listener from accessible object More...
 

Additional Inherited Members

- Protected Attributes inherited from AccEventListener
css::uno::Reference< css::accessibility::XAccessible > m_xAccessible
 
AccObjectManagerAgentpAgent
 

Detailed Description

AccContainerEventListener is inherited from AccEventListener.

It handles the events generated by container controls. The accessible roles are: CANVAS, COMBO_BOX, DOCUMENT, EMBEDDED_OBJECT, END_NOTE, FILLER, FOOTNOTE, FOOTER, GRAPHIC, HEADER, LAYERED_PANE, MENU_BAR, POPUP_MENU, OPTION_PANE, PAGE_TAB, PAGE_TAB_LIST, PANEL, SCROLL_PANE, SPLIT_PANE, STATUS_BAR, TABLE_CELL, TEXT_FRAME, TOOL_BAR, VIEW_PORT. It defines the procedure of specific event handling related with containsers and provides the detailed support for some related methods.

Definition at line 39 of file AccContainerEventListener.hxx.

Constructor & Destructor Documentation

◆ AccContainerEventListener()

AccContainerEventListener::AccContainerEventListener ( css::accessibility::XAccessible *  pAcc,
AccObjectManagerAgent Agent 
)

Definition at line 35 of file AccContainerEventListener.cxx.

◆ ~AccContainerEventListener()

AccContainerEventListener::~AccContainerEventListener ( )
overridevirtual

Definition at line 40 of file AccContainerEventListener.cxx.

Member Function Documentation

◆ FireStateFocusedChange()

void AccContainerEventListener::FireStateFocusedChange ( bool  enable)
overridevirtual

◆ FireStatePropertyChange()

void AccContainerEventListener::FireStatePropertyChange ( sal_Int64  state,
bool  set 
)
overridevirtual

fire the MSAA state changed event

Parameters
statethe state id
settrue if state is set, false if state is unset

Reimplemented from AccEventListener.

Definition at line 278 of file AccContainerEventListener.cxx.

References AccObjectManagerAgent::DecreaseState(), AccObjectManagerAgent::IncreaseState(), AccEventListener::m_xAccessible, AccObjectManagerAgent::NotifyAccEvent(), AccEventListener::pAgent, set(), and STATE_BUSY.

Referenced by SetComponentState().

◆ HandleAllChildrenChangedEvent()

void AccContainerEventListener::HandleAllChildrenChangedEvent ( )
virtual

◆ HandleChildChangedEvent()

void AccContainerEventListener::HandleChildChangedEvent ( css::uno::Any  oldValue,
css::uno::Any  newValue 
)
virtual

◆ HandleColumnChangedEvent()

void AccContainerEventListener::HandleColumnChangedEvent ( const css::uno::Any &  oldValue,
const css::uno::Any &  newValue 
)
virtual

◆ HandleNameChangedEvent()

void AccContainerEventListener::HandleNameChangedEvent ( css::uno::Any  name)
overridevirtual

handle the NAME_CHANGED event

Parameters
namethe new name with changed.

Reimplemented from AccEventListener.

Definition at line 520 of file AccContainerEventListener.cxx.

References AccEventListener::GetRole(), AccEventListener::HandleNameChangedEvent(), AccEventListener::m_xAccessible, mxContext, name, AccEventListener::pAgent, and AccObjectManagerAgent::UpdateAccName().

◆ HandlePageChangedEvent()

void AccContainerEventListener::HandlePageChangedEvent ( const css::uno::Any &  oldValue,
const css::uno::Any &  newValue 
)
virtual

◆ HandleSectionChangedEvent()

void AccContainerEventListener::HandleSectionChangedEvent ( const css::uno::Any &  oldValue,
const css::uno::Any &  newValue 
)
virtual

◆ HandleSelectionChangedAddEvent()

void AccContainerEventListener::HandleSelectionChangedAddEvent ( const css::uno::Any &  oldValue,
const css::uno::Any &  newValue 
)
virtual

◆ HandleSelectionChangedEvent()

void AccContainerEventListener::HandleSelectionChangedEvent ( const css::uno::Any &  oldValue,
const css::uno::Any &  newValue 
)
virtual

handle the SELECTION_CHANGED event

Parameters
oldValuethe old value of the source of event
newValuethe new value of the source of event

Definition at line 163 of file AccContainerEventListener.cxx.

References AccEventListener::GetRole(), AccEventListener::m_xAccessible, AccObjectManagerAgent::NotifyAccEvent(), NotifyChildEvent(), AccEventListener::pAgent, and SELECTION_CHANGED.

Referenced by notifyEvent().

◆ HandleSelectionChangedRemoveEvent()

void AccContainerEventListener::HandleSelectionChangedRemoveEvent ( const css::uno::Any &  oldValue,
const css::uno::Any &  newValue 
)
virtual

◆ HandleSelectionChangedWithinEvent()

void AccContainerEventListener::HandleSelectionChangedWithinEvent ( const css::uno::Any &  oldValue,
const css::uno::Any &  newValue 
)
virtual

◆ HandleStateChangedEvent()

void AccContainerEventListener::HandleStateChangedEvent ( css::uno::Any  oldValue,
css::uno::Any  newValue 
)
overridevirtual

handle the STATE_CHANGED event

Parameters
oldValuethe old state of the source of event
newValuethe new state of the source of event

Reimplemented from AccEventListener.

Reimplemented in AccObjectContainerEventListener.

Definition at line 103 of file AccContainerEventListener.cxx.

References SetComponentState().

Referenced by AccObjectContainerEventListener::HandleStateChangedEvent(), and notifyEvent().

◆ HandleTextChangedEvent()

void AccContainerEventListener::HandleTextChangedEvent ( css::uno::Any  oldValue,
css::uno::Any  newValue 
)
virtual

◆ HandleValueChangedEvent()

void AccContainerEventListener::HandleValueChangedEvent ( css::uno::Any  oldValue,
css::uno::Any  newValue 
)
virtual

handle the VALUE_CHANGED event

Parameters
oldValuethe old value of the source of event
newValuethe new value of the source of event

Definition at line 418 of file AccContainerEventListener.cxx.

References AccEventListener::m_xAccessible, AccObjectManagerAgent::NotifyAccEvent(), OBJECT_VALUECHANGE, AccEventListener::pAgent, and AccObjectManagerAgent::UpdateValue().

Referenced by notifyEvent().

◆ IsEditable()

bool AccContainerEventListener::IsEditable ( css::uno::Reference< css::accessibility::XAccessibleContext > const &  xContext)
virtual

Definition at line 424 of file AccContainerEventListener.cxx.

Referenced by FireStateFocusedChange().

◆ NotifyChildEvent()

bool AccContainerEventListener::NotifyChildEvent ( UnoMSAAEvent  eWinEvent,
const css::uno::Any &  Value 
)

◆ notifyEvent()

void AccContainerEventListener::notifyEvent ( const css::accessibility::AccessibleEventObject &  aEvent)
overridevirtual

◆ SetComponentState()

void AccContainerEventListener::SetComponentState ( sal_Int64  state,
bool  enable 
)
overridevirtual

◆ UpdateAllChildrenState()

void AccContainerEventListener::UpdateAllChildrenState ( css::accessibility::XAccessible *  pXAccessible)

The documentation for this class was generated from the following files: