LibreOffice Module winaccessibility (master) 1
|
AccContainerEventListener is inherited from AccEventListener. More...
#include <AccContainerEventListener.hxx>
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 |
AccObjectManagerAgent * | pAgent |
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.
AccContainerEventListener::AccContainerEventListener | ( | css::accessibility::XAccessible * | pAcc, |
AccObjectManagerAgent * | Agent | ||
) |
Definition at line 35 of file AccContainerEventListener.cxx.
|
overridevirtual |
Definition at line 40 of file AccContainerEventListener.cxx.
|
overridevirtual |
handle the focused event
enable | true if get focus, false if lose focus |
Reimplemented from AccEventListener.
Definition at line 340 of file AccContainerEventListener.cxx.
References AccObjectManagerAgent::DecreaseState(), AccEventListener::GetParentRole(), AccEventListener::GetRole(), AccObjectManagerAgent::IncreaseState(), IsEditable(), AccEventListener::m_xAccessible, MENU_END, MENU_START, MENUPOPUPEND, MENUPOPUPSTART, mxContext, AccObjectManagerAgent::NotifyAccEvent(), AccEventListener::pAgent, and STATE_FOCUSED.
Referenced by SetComponentState().
|
overridevirtual |
fire the MSAA state changed event
state | the state id |
set | true 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().
|
virtual |
handle the INVALIDATE_ALL_CHILDREN event
Definition at line 178 of file AccContainerEventListener.cxx.
References AccObjectManagerAgent::DeleteChildrenAccObj(), AccObjectManagerAgent::InsertChildrenAccObj(), AccEventListener::m_xAccessible, AccObjectManagerAgent::NotifyAccEvent(), OBJECT_REORDER, and AccEventListener::pAgent.
Referenced by notifyEvent().
|
virtual |
handle the CHILD event
oldValue | the child to be deleted |
newValue | the child to be added |
Definition at line 122 of file AccContainerEventListener.cxx.
References CHILD_ADDED, CHILD_REMOVED, AccObjectManagerAgent::DeleteAccObj(), AccObjectManagerAgent::DeleteChildrenAccObj(), AccObjectManagerAgent::InsertAccObj(), AccObjectManagerAgent::InsertChildrenAccObj(), AccEventListener::m_xAccessible, AccObjectManagerAgent::NotifyAccEvent(), and AccEventListener::pAgent.
Referenced by notifyEvent().
|
virtual |
Definition at line 515 of file AccContainerEventListener.cxx.
References COLUMN_CHANGED, AccEventListener::m_xAccessible, AccObjectManagerAgent::NotifyAccEvent(), and AccEventListener::pAgent.
Referenced by notifyEvent().
|
overridevirtual |
handle the NAME_CHANGED event
name | the 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().
|
virtual |
Definition at line 505 of file AccContainerEventListener.cxx.
References AccEventListener::m_xAccessible, AccObjectManagerAgent::NotifyAccEvent(), OBJECT_PAGECHANGED, and AccEventListener::pAgent.
Referenced by notifyEvent().
|
virtual |
Definition at line 510 of file AccContainerEventListener.cxx.
References AccEventListener::m_xAccessible, AccObjectManagerAgent::NotifyAccEvent(), AccEventListener::pAgent, and SECTION_CHANGED.
Referenced by notifyEvent().
|
virtual |
Definition at line 445 of file AccContainerEventListener.cxx.
References AccEventListener::m_xAccessible, AccObjectManagerAgent::NotifyAccEvent(), NotifyChildEvent(), AccEventListener::pAgent, and SELECTION_CHANGED_ADD.
Referenced by notifyEvent().
|
virtual |
handle the SELECTION_CHANGED event
oldValue | the old value of the source of event |
newValue | the 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().
|
virtual |
Definition at line 454 of file AccContainerEventListener.cxx.
References AccEventListener::m_xAccessible, AccObjectManagerAgent::NotifyAccEvent(), NotifyChildEvent(), AccEventListener::pAgent, and SELECTION_CHANGED_REMOVE.
Referenced by notifyEvent().
|
virtual |
Definition at line 463 of file AccContainerEventListener.cxx.
References AccEventListener::m_xAccessible, AccObjectManagerAgent::NotifyAccEvent(), NotifyChildEvent(), AccEventListener::pAgent, and SELECTION_CHANGED_WITHIN.
Referenced by notifyEvent().
|
overridevirtual |
handle the STATE_CHANGED event
oldValue | the old state of the source of event |
newValue | the 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().
|
virtual |
handle the TEXT_CHANGED event
Definition at line 194 of file AccContainerEventListener.cxx.
References AccEventListener::m_xAccessible, AccObjectManagerAgent::NotifyAccEvent(), OBJECT_TEXTCHANGE, AccEventListener::pAgent, and AccObjectManagerAgent::UpdateValue().
Referenced by notifyEvent().
|
virtual |
handle the VALUE_CHANGED event
oldValue | the old value of the source of event |
newValue | the 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().
|
virtual |
Definition at line 424 of file AccContainerEventListener.cxx.
Referenced by FireStateFocusedChange().
bool AccContainerEventListener::NotifyChildEvent | ( | UnoMSAAEvent | eWinEvent, |
const css::uno::Any & | Value | ||
) |
Definition at line 430 of file AccContainerEventListener.cxx.
References AccObjectManagerAgent::NotifyAccEvent(), AccEventListener::pAgent, and Value.
Referenced by HandleSelectionChangedAddEvent(), HandleSelectionChangedEvent(), HandleSelectionChangedRemoveEvent(), and HandleSelectionChangedWithinEvent().
|
overridevirtual |
Uno's event notifier when event is captured.
AccessibleEventObject | the event object which contains information about event |
Reimplemented from AccEventListener.
Reimplemented in AccParagraphEventListener.
Definition at line 49 of file AccContainerEventListener.cxx.
References aEvent, HandleAllChildrenChangedEvent(), AccEventListener::HandleBoundrectChangedEvent(), HandleChildChangedEvent(), HandleColumnChangedEvent(), HandlePageChangedEvent(), HandleSectionChangedEvent(), HandleSelectionChangedAddEvent(), HandleSelectionChangedEvent(), HandleSelectionChangedRemoveEvent(), HandleSelectionChangedWithinEvent(), HandleStateChangedEvent(), HandleTextChangedEvent(), HandleValueChangedEvent(), AccEventListener::HandleVisibleDataChangedEvent(), and AccEventListener::notifyEvent().
Referenced by AccParagraphEventListener::notifyEvent().
|
overridevirtual |
set the new state and fire the MSAA event
state | new state id |
enable | true if state is set, false if state is unset |
Reimplemented from AccEventListener.
Reimplemented in AccParagraphEventListener.
Definition at line 205 of file AccContainerEventListener.cxx.
References AccObjectManagerAgent::DecreaseState(), FireStateFocusedChange(), FireStatePropertyChange(), AccEventListener::GetRole(), AccObjectManagerAgent::IncreaseState(), AccEventListener::m_xAccessible, AccObjectManagerAgent::NotifyAccEvent(), AccEventListener::pAgent, STATE_BUSY, UpdateAllChildrenState(), and AccObjectManagerAgent::UpdateState().
Referenced by HandleStateChangedEvent(), and AccParagraphEventListener::SetComponentState().
void AccContainerEventListener::UpdateAllChildrenState | ( | css::accessibility::XAccessible * | pXAccessible | ) |
Definition at line 472 of file AccContainerEventListener.cxx.
References i, AccObjectManagerAgent::IsStateManageDescendant(), nCount, AccEventListener::pAgent, UpdateAllChildrenState(), and AccObjectManagerAgent::UpdateState().
Referenced by SetComponentState(), and UpdateAllChildrenState().