LibreOffice Module winaccessibility (master) 1
Public Member Functions | Static Private Attributes | List of all members
AccComponentEventListener Class Reference

AccComponentEventListener is inherited from AccEventListener. More...

#include <AccComponentEventListener.hxx>

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

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 FILEoutput
 
static FILEoutput2
 
static FILEoutput3
 
static FILEoutacc
 

Additional Inherited Members

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

Detailed Description

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.

Constructor & Destructor Documentation

◆ AccComponentEventListener()

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

Definition at line 35 of file AccComponentEventListener.cxx.

◆ ~AccComponentEventListener()

AccComponentEventListener::~AccComponentEventListener ( )
overridevirtual

Definition at line 40 of file AccComponentEventListener.cxx.

Member Function Documentation

◆ FireStateFocusedChange()

void AccComponentEventListener::FireStateFocusedChange ( bool  enable)
overridevirtual

handle the focused event

Parameters
enabletrue 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().

◆ FireStatePropertyChange()

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

◆ HandleActionChangedEvent()

void AccComponentEventListener::HandleActionChangedEvent ( )
virtual

◆ HandleCaretChangedEvent()

void AccComponentEventListener::HandleCaretChangedEvent ( css::uno::Any  oldValue,
css::uno::Any  newValue 
)
virtual

handle the CARET_CHANGED event

Parameters
oldValuethe old value of the source of event
newValuethe 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().

◆ HandleSelectionChangedEventNoArgs()

void AccComponentEventListener::HandleSelectionChangedEventNoArgs ( )

◆ HandleTextChangedEvent()

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

handle the TEXT_CHANGED event

Parameters
oldValuethe old value of the source of event
newValuethe 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().

◆ HandleTextSelectionChangedEvent()

void AccComponentEventListener::HandleTextSelectionChangedEvent ( )

◆ HandleValueChangedEvent()

void AccComponentEventListener::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

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().

◆ notifyEvent()

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

◆ SetComponentState()

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

Member Data Documentation

◆ outacc

FILE * AccComponentEventListener::outacc
staticprivate

Definition at line 37 of file AccComponentEventListener.hxx.

◆ output

FILE* AccComponentEventListener::output
staticprivate

Definition at line 37 of file AccComponentEventListener.hxx.

◆ output2

FILE * AccComponentEventListener::output2
staticprivate

Definition at line 37 of file AccComponentEventListener.hxx.

◆ output3

FILE * AccComponentEventListener::output3
staticprivate

Definition at line 37 of file AccComponentEventListener.hxx.


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