LibreOffice Module comphelper (master)  1
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
comphelper::OWrappedAccessibleChildrenManager Class Reference

manages wrapping XAccessible's to XAccessible's More...

#include <accessiblewrapper.hxx>

Inheritance diagram for comphelper::OWrappedAccessibleChildrenManager:
[legend]
Collaboration diagram for comphelper::OWrappedAccessibleChildrenManager:
[legend]

Public Member Functions

 OWrappedAccessibleChildrenManager (const css::uno::Reference< css::uno::XComponentContext > &_rxContext)
 ctor More...
 
void setTransientChildren (bool _bSet)
 specifies if the children are to be considered transient (i.e. More...
 
void setOwningAccessible (const css::uno::Reference< css::accessibility::XAccessible > &_rxAcc)
 sets the XAccessible which belongs to the XAccessibleContext which we work for More...
 
css::uno::Reference< css::accessibility::XAccessible > getAccessibleWrapperFor (const css::uno::Reference< css::accessibility::XAccessible > &_rxKey)
 retrieves a wrapper for the given accessible More...
 
void removeFromCache (const css::uno::Reference< css::accessibility::XAccessible > &_rxKey)
 erases the given key from the map (if it is present there) More...
 
void invalidateAll ()
 invalidates (i.e. empties) the map More...
 
void dispose ()
 disposes (i.e. More...
 
void handleChildNotification (const css::accessibility::AccessibleEventObject &_rEvent)
 handles a notification as got from the parent of the children we're managing More...
 
void translateAccessibleEvent (const css::accessibility::AccessibleEventObject &_rEvent, css::accessibility::AccessibleEventObject &_rTranslatedEvent)
 translates events as got from the parent of the children we're managing More...
 

Protected Member Functions

virtual void SAL_CALL disposing (const css::lang::EventObject &Source) override
 
void implTranslateChildEventValue (const css::uno::Any &_rInValue, css::uno::Any &_rOutValue)
 
virtual ~OWrappedAccessibleChildrenManager () override
 

Protected Attributes

css::uno::Reference< css::uno::XComponentContext > m_xContext
 
css::uno::WeakReference< css::accessibility::XAccessible > m_aOwningAccessible
 
AccessibleMap m_aChildrenMap
 
bool m_bTransientChildren
 

Private Member Functions

 OWrappedAccessibleChildrenManager (const OWrappedAccessibleChildrenManager &)=delete
 
OWrappedAccessibleChildrenManageroperator= (const OWrappedAccessibleChildrenManager &)=delete
 

Detailed Description

manages wrapping XAccessible's to XAccessible's

Definition at line 326 of file accessiblewrapper.hxx.

Constructor & Destructor Documentation

comphelper::OWrappedAccessibleChildrenManager::OWrappedAccessibleChildrenManager ( const css::uno::Reference< css::uno::XComponentContext > &  _rxContext)

ctor

comphelper::OWrappedAccessibleChildrenManager::~OWrappedAccessibleChildrenManager ( )
overrideprotectedvirtual

Definition at line 39 of file accessiblewrapper.cxx.

comphelper::OWrappedAccessibleChildrenManager::OWrappedAccessibleChildrenManager ( const OWrappedAccessibleChildrenManager )
privatedelete

Member Function Documentation

void comphelper::OWrappedAccessibleChildrenManager::dispose ( void  )

disposes (i.e.

clears) the manager

Note that the XAccessibleContext's of the mapped XAccessible objects are disposed, too.

Definition at line 133 of file accessiblewrapper.cxx.

References m_aChildrenMap.

void SAL_CALL comphelper::OWrappedAccessibleChildrenManager::disposing ( const css::lang::EventObject &  Source)
overrideprotectedvirtual

Definition at line 234 of file accessiblewrapper.cxx.

References Exception, m_aChildrenMap, and m_aOwningAccessible.

Reference< XAccessible > comphelper::OWrappedAccessibleChildrenManager::getAccessibleWrapperFor ( const css::uno::Reference< css::accessibility::XAccessible > &  _rxKey)

retrieves a wrapper for the given accessible

Definition at line 87 of file accessiblewrapper.cxx.

References m_aChildrenMap, m_aOwningAccessible, m_bTransientChildren, and m_xContext.

Referenced by implTranslateChildEventValue().

void comphelper::OWrappedAccessibleChildrenManager::handleChildNotification ( const css::accessibility::AccessibleEventObject &  _rEvent)

handles a notification as got from the parent of the children we're managing

This applies only to the notifications which have a direct impact on our map.

Definition at line 218 of file accessiblewrapper.cxx.

References invalidateAll(), and removeFromCache().

void comphelper::OWrappedAccessibleChildrenManager::implTranslateChildEventValue ( const css::uno::Any &  _rInValue,
css::uno::Any &  _rOutValue 
)
protected

Definition at line 156 of file accessiblewrapper.cxx.

References getAccessibleWrapperFor().

Referenced by translateAccessibleEvent().

void comphelper::OWrappedAccessibleChildrenManager::invalidateAll ( )

invalidates (i.e. empties) the map

Definition at line 72 of file accessiblewrapper.cxx.

References m_aChildrenMap.

Referenced by handleChildNotification().

OWrappedAccessibleChildrenManager& comphelper::OWrappedAccessibleChildrenManager::operator= ( const OWrappedAccessibleChildrenManager )
privatedelete
void comphelper::OWrappedAccessibleChildrenManager::removeFromCache ( const css::uno::Reference< css::accessibility::XAccessible > &  _rxKey)

erases the given key from the map (if it is present there)

Definition at line 57 of file accessiblewrapper.cxx.

References m_aChildrenMap.

Referenced by handleChildNotification().

void comphelper::OWrappedAccessibleChildrenManager::setOwningAccessible ( const css::uno::Reference< css::accessibility::XAccessible > &  _rxAcc)

sets the XAccessible which belongs to the XAccessibleContext which we work for

to be called only once per lifetime

Definition at line 50 of file accessiblewrapper.cxx.

References m_aOwningAccessible.

void comphelper::OWrappedAccessibleChildrenManager::setTransientChildren ( bool  _bSet)

specifies if the children are to be considered transient (i.e.

: not cached)

to be called only once per lifetime

Definition at line 44 of file accessiblewrapper.cxx.

References m_bTransientChildren.

void comphelper::OWrappedAccessibleChildrenManager::translateAccessibleEvent ( const css::accessibility::AccessibleEventObject &  _rEvent,
css::accessibility::AccessibleEventObject &  _rTranslatedEvent 
)

translates events as got from the parent of the children we're managing

This applies only to the notifications which deal with child objects which we manage.

Definition at line 165 of file accessiblewrapper.cxx.

References implTranslateChildEventValue().

Member Data Documentation

AccessibleMap comphelper::OWrappedAccessibleChildrenManager::m_aChildrenMap
protected
css::uno::WeakReference< css::accessibility::XAccessible > comphelper::OWrappedAccessibleChildrenManager::m_aOwningAccessible
protected

Definition at line 332 of file accessiblewrapper.hxx.

Referenced by disposing(), getAccessibleWrapperFor(), and setOwningAccessible().

bool comphelper::OWrappedAccessibleChildrenManager::m_bTransientChildren
protected

Definition at line 334 of file accessiblewrapper.hxx.

Referenced by getAccessibleWrapperFor(), and setTransientChildren().

css::uno::Reference< css::uno::XComponentContext > comphelper::OWrappedAccessibleChildrenManager::m_xContext
protected

Definition at line 330 of file accessiblewrapper.hxx.

Referenced by getAccessibleWrapperFor().


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