LibreOffice Module winaccessibility (master) 1
|
AccComponentEventListener is inherited from AccEventListener. More...
#include <AccComponentEventListener.hxx>
Public Member Functions | |
AccComponentEventListener (css::accessibility::XAccessible *pAcc, AccObjectManagerAgent *Agent) | |
virtual | ~AccComponentEventListener () override |
virtual void SAL_CALL | notifyEvent (const css::accessibility::AccessibleEventObject &aEvent) override |
Uno's event notifier when event is captured. More... | |
virtual void | HandleValueChangedEvent (css::uno::Any oldValue, css::uno::Any newValue) |
handle the VALUE_CHANGED event More... | |
virtual void | HandleActionChangedEvent () |
handle the NAME_CHANGED event More... | |
virtual void | HandleTextChangedEvent (css::uno::Any oldValue, css::uno::Any newValue) |
handle the TEXT_CHANGED event More... | |
virtual void | HandleCaretChangedEvent (css::uno::Any oldValue, css::uno::Any newValue) |
handle the CARET_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... | |
void | HandleSelectionChangedEventNoArgs () |
void | HandleTextSelectionChangedEvent () |
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... | |
Static Private Attributes | |
static FILE * | output |
static FILE * | output2 |
static FILE * | output3 |
static FILE * | outacc |
Additional Inherited Members | |
Protected Attributes inherited from AccEventListener | |
css::uno::Reference< css::accessibility::XAccessible > | m_xAccessible |
AccObjectManagerAgent * | pAgent |
AccComponentEventListener is inherited from AccEventListener.
It handles the events generated by component controls. The accessible roles are: CHECK_BOX, ICON, LABEL, MENU_ITEM, PUSH_BUTTON, RADIO_BUTTON, SCROLL_BAR, SEPARATOR, TOGGLE_BUTTON, TOOL_TIP, SPIN_BOX. It defines the procedure of specific event handling related with components and provides the detailed support for some related methods.
Definition at line 34 of file AccComponentEventListener.hxx.
AccComponentEventListener::AccComponentEventListener | ( | css::accessibility::XAccessible * | pAcc, |
AccObjectManagerAgent * | Agent | ||
) |
Definition at line 35 of file AccComponentEventListener.cxx.
|
overridevirtual |
Definition at line 40 of file AccComponentEventListener.cxx.
|
overridevirtual |
handle the focused event
enable | true if get focus, false if lose focus |
Reimplemented from AccEventListener.
Definition at line 302 of file AccComponentEventListener.cxx.
References AccObjectManagerAgent::DecreaseState(), AccEventListener::GetParentRole(), AccEventListener::m_xAccessible, 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.
Reimplemented in AccMenuEventListener.
Definition at line 208 of file AccComponentEventListener.cxx.
References AccObjectManagerAgent::DecreaseState(), AccObjectManagerAgent::IncreaseState(), AccObjectManagerAgent::IsSpecialToolbarItem(), AccEventListener::m_xAccessible, AccObjectManagerAgent::NotifyAccEvent(), AccEventListener::pAgent, set(), STATE_ARMED, STATE_CHECKED, STATE_PRESSED, STATE_SHOWING, and AccObjectManagerAgent::UpdateAction().
Referenced by AccMenuEventListener::FireStatePropertyChange(), and SetComponentState().
|
virtual |
handle the NAME_CHANGED event
Definition at line 102 of file AccComponentEventListener.cxx.
References AccEventListener::m_xAccessible, AccObjectManagerAgent::NotifyAccEvent(), OBJECT_DEFACTIONCHANGE, AccEventListener::pAgent, and AccObjectManagerAgent::UpdateAction().
Referenced by notifyEvent().
|
virtual |
handle the CARET_CHANGED event
oldValue | the old value of the source of event |
newValue | the new value of the source of event |
Definition at line 126 of file AccComponentEventListener.cxx.
References AccEventListener::m_xAccessible, AccObjectManagerAgent::NotifyAccEvent(), OBJECT_CARETCHANGE, and AccEventListener::pAgent.
Referenced by notifyEvent().
void AccComponentEventListener::HandleSelectionChangedEventNoArgs | ( | ) |
Definition at line 316 of file AccComponentEventListener.cxx.
References AccEventListener::m_xAccessible, AccObjectManagerAgent::NotifyAccEvent(), AccEventListener::pAgent, and SELECTION_CHANGED.
Referenced by notifyEvent().
|
virtual |
handle the TEXT_CHANGED event
oldValue | the old value of the source of event |
newValue | the new value of the source of event |
Definition at line 114 of file AccComponentEventListener.cxx.
References AccEventListener::m_xAccessible, AccObjectManagerAgent::NotifyAccEvent(), OBJECT_VALUECHANGE, AccEventListener::pAgent, and AccObjectManagerAgent::UpdateValue().
Referenced by notifyEvent().
void AccComponentEventListener::HandleTextSelectionChangedEvent | ( | ) |
Definition at line 322 of file AccComponentEventListener.cxx.
References AccEventListener::m_xAccessible, AccObjectManagerAgent::NotifyAccEvent(), AccEventListener::pAgent, and TEXT_SELECTION_CHANGED.
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 |
Reimplemented in AccListEventListener.
Definition at line 93 of file AccComponentEventListener.cxx.
References AccEventListener::m_xAccessible, AccObjectManagerAgent::NotifyAccEvent(), OBJECT_VALUECHANGE, AccEventListener::pAgent, and AccObjectManagerAgent::UpdateValue().
Referenced by notifyEvent().
|
overridevirtual |
Uno's event notifier when event is captured.
AccessibleEventObject | the event object which contains information about event |
Reimplemented from AccEventListener.
Reimplemented in AccDescendantManagerEventListener, AccListEventListener, AccMenuEventListener, AccTableEventListener, and AccTreeEventListener.
Definition at line 49 of file AccComponentEventListener.cxx.
References aEvent, HandleActionChangedEvent(), AccEventListener::HandleBoundrectChangedEvent(), HandleCaretChangedEvent(), HandleSelectionChangedEventNoArgs(), HandleTextChangedEvent(), HandleTextSelectionChangedEvent(), HandleValueChangedEvent(), AccEventListener::HandleVisibleDataChangedEvent(), and AccEventListener::notifyEvent().
Referenced by AccDescendantManagerEventListener::notifyEvent(), and AccMenuEventListener::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 AccTextComponentEventListener.
Definition at line 137 of file AccComponentEventListener.cxx.
References AccObjectManagerAgent::DecreaseState(), FireStateFocusedChange(), FireStatePropertyChange(), AccEventListener::GetRole(), AccObjectManagerAgent::IncreaseState(), AccEventListener::m_xAccessible, AccEventListener::pAgent, and AccObjectManagerAgent::UpdateState().
Referenced by AccTextComponentEventListener::SetComponentState().
|
staticprivate |
Definition at line 37 of file AccComponentEventListener.hxx.
|
staticprivate |
Definition at line 37 of file AccComponentEventListener.hxx.
|
staticprivate |
Definition at line 37 of file AccComponentEventListener.hxx.
|
staticprivate |
Definition at line 37 of file AccComponentEventListener.hxx.