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

#include <accessiblewrapper.hxx>

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

Public Member Functions

 OAccessibleContextWrapper (const css::uno::Reference< css::uno::XComponentContext > &_rxContext, const css::uno::Reference< css::accessibility::XAccessibleContext > &_rxInnerAccessibleContext, const css::uno::Reference< css::accessibility::XAccessible > &_rxOwningAccessible, const css::uno::Reference< css::accessibility::XAccessible > &_rxParentAccessible)
 ctor More...
 
virtual sal_Int64 SAL_CALL getAccessibleChildCount () override
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild (sal_Int64 i) override
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleParent () override
 
virtual sal_Int64 SAL_CALL getAccessibleIndexInParent () override
 
virtual sal_Int16 SAL_CALL getAccessibleRole () override
 
virtual OUString SAL_CALL getAccessibleDescription () override
 
virtual OUString SAL_CALL getAccessibleName () override
 
virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet () override
 
virtual sal_Int64 SAL_CALL getAccessibleStateSet () override
 
virtual css::lang::Locale SAL_CALL getLocale () override
 
virtual void SAL_CALL addAccessibleEventListener (const css::uno::Reference< css::accessibility::XAccessibleEventListener > &xListener) override
 
virtual void SAL_CALL removeAccessibleEventListener (const css::uno::Reference< css::accessibility::XAccessibleEventListener > &xListener) override
 
virtual void notifyTranslatedEvent (const css::accessibility::AccessibleEventObject &_rEvent) override
 notify an accessible event which has been translated (if necessary) More...
 
virtual void SAL_CALL disposing () override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &Source) override
 
- Public Member Functions inherited from cppu::ImplHelper1< class Ifc1 >
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) SAL_OVERRIDE
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () SAL_OVERRIDE
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () SAL_OVERRIDE
 

Protected Member Functions

virtual ~OAccessibleContextWrapper () override
 
- Protected Member Functions inherited from comphelper::OAccessibleContextWrapperHelper
 OAccessibleContextWrapperHelper (const css::uno::Reference< css::uno::XComponentContext > &_rxContext, ::cppu::OBroadcastHelper &_rBHelper, const css::uno::Reference< css::accessibility::XAccessibleContext > &_rxInnerAccessibleContext, const css::uno::Reference< css::accessibility::XAccessible > &_rxOwningAccessible, const css::uno::Reference< css::accessibility::XAccessible > &_rxParentAccessible)
 ctor More...
 
void aggregateProxy (oslInterlockedCount &_rRefCount, ::cppu::OWeakObject &_rDelegator)
 to be called from within your ctor - does the aggregation of a proxy for m_xInnerContext More...
 
css::uno::Any SAL_CALL queryInterface (const css::uno::Type &_rType) override
 
sal_Int64 baseGetAccessibleChildCount ()
 
css::uno::Reference< css::accessibility::XAccessible > baseGetAccessibleChild (sal_Int64 i)
 
css::uno::Reference< css::accessibility::XAccessibleRelationSet > baseGetAccessibleRelationSet ()
 
virtual void SAL_CALL notifyEvent (const css::accessibility::AccessibleEventObject &aEvent) override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &Source) override
 
virtual void SAL_CALL dispose () override
 
virtual void notifyTranslatedEvent (const css::accessibility::AccessibleEventObject &_rEvent)=0
 notify an accessible event which has been translated (if necessary) More...
 
virtual ~OAccessibleContextWrapperHelper () override
 
 OAccessibleContextWrapperHelper (const OAccessibleContextWrapperHelper &)=delete
 
OAccessibleContextWrapperHelperoperator= (const OAccessibleContextWrapperHelper &)=delete
 
- Protected Member Functions inherited from cppu::ImplHelper1< class Ifc1 >
 ~ImplHelper1 () SAL_NOEXCEPT
 

Private Member Functions

 OAccessibleContextWrapper (const OAccessibleContextWrapper &)=delete
 
OAccessibleContextWrapperoperator= (const OAccessibleContextWrapper &)=delete
 

Private Attributes

::comphelper::AccessibleEventNotifier::TClientId m_nNotifierClient
 

Additional Inherited Members

- Protected Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex
 
- Protected Attributes inherited from comphelper::OAccessibleContextWrapperHelper
css::uno::Reference< css::accessibility::XAccessibleContext > m_xInnerContext
 the context we're wrapping (properly typed, in opposite to OComponentProxyAggregationHelper::m_xInner) More...
 
css::uno::Reference< css::accessibility::XAccessible > m_xOwningAccessible
 the XAccessible which created this context More...
 
css::uno::Reference< css::accessibility::XAccessible > m_xParentAccessible
 the XAccessible which is to be returned in getAccessibleParent More...
 
rtl::Reference< OWrappedAccessibleChildrenManager > m_xChildMapper
 

Detailed Description

Definition at line 243 of file accessiblewrapper.hxx.

Constructor & Destructor Documentation

◆ OAccessibleContextWrapper() [1/2]

comphelper::OAccessibleContextWrapper::OAccessibleContextWrapper ( const css::uno::Reference< css::uno::XComponentContext > &  _rxContext,
const css::uno::Reference< css::accessibility::XAccessibleContext > &  _rxInnerAccessibleContext,
const css::uno::Reference< css::accessibility::XAccessible > &  _rxOwningAccessible,
const css::uno::Reference< css::accessibility::XAccessible > &  _rxParentAccessible 
)

ctor

Parameters
_rxContexta service factory
_rxInnerAccessibleContextthe object to wrap
_rxOwningAccessibleThe XAccessible which created this object. This is necessary because children of our wrapped context need to be wrapped, too, and if they're asked for a parent, they of course should return the proper parent
The object will be held with a hard reference
_rxParentAccessibleThe XAccessible to return in the getAccessibleParent call

◆ ~OAccessibleContextWrapper()

comphelper::OAccessibleContextWrapper::~OAccessibleContextWrapper ( )
overrideprotectedvirtual

Definition at line 492 of file accessiblewrapper.cxx.

◆ OAccessibleContextWrapper() [2/2]

comphelper::OAccessibleContextWrapper::OAccessibleContextWrapper ( const OAccessibleContextWrapper )
privatedelete

Member Function Documentation

◆ addAccessibleEventListener()

void SAL_CALL comphelper::OAccessibleContextWrapper::addAccessibleEventListener ( const css::uno::Reference< css::accessibility::XAccessibleEventListener > &  xListener)
overridevirtual

◆ disposing() [1/2]

void SAL_CALL comphelper::OAccessibleContextWrapper::disposing ( )
overridevirtual

◆ disposing() [2/2]

void SAL_CALL comphelper::OAccessibleContextWrapperHelper::disposing ( const css::lang::EventObject &  Source)
overridevirtual

Reimplemented from comphelper::OAccessibleContextWrapperHelper.

Definition at line 211 of file accessiblewrapper.cxx.

◆ getAccessibleChild()

Reference< XAccessible > SAL_CALL comphelper::OAccessibleContextWrapper::getAccessibleChild ( sal_Int64  i)
overridevirtual

◆ getAccessibleChildCount()

sal_Int64 SAL_CALL comphelper::OAccessibleContextWrapper::getAccessibleChildCount ( )
overridevirtual

◆ getAccessibleDescription()

OUString SAL_CALL comphelper::OAccessibleContextWrapper::getAccessibleDescription ( )
overridevirtual

◆ getAccessibleIndexInParent()

sal_Int64 SAL_CALL comphelper::OAccessibleContextWrapper::getAccessibleIndexInParent ( )
overridevirtual

◆ getAccessibleName()

OUString SAL_CALL comphelper::OAccessibleContextWrapper::getAccessibleName ( )
overridevirtual

◆ getAccessibleParent()

Reference< XAccessible > SAL_CALL comphelper::OAccessibleContextWrapper::getAccessibleParent ( )
overridevirtual

◆ getAccessibleRelationSet()

Reference< XAccessibleRelationSet > SAL_CALL comphelper::OAccessibleContextWrapper::getAccessibleRelationSet ( )
overridevirtual

◆ getAccessibleRole()

sal_Int16 SAL_CALL comphelper::OAccessibleContextWrapper::getAccessibleRole ( )
overridevirtual

◆ getAccessibleStateSet()

sal_Int64 SAL_CALL comphelper::OAccessibleContextWrapper::getAccessibleStateSet ( )
overridevirtual

◆ getLocale()

Locale SAL_CALL comphelper::OAccessibleContextWrapper::getLocale ( )
overridevirtual

◆ notifyTranslatedEvent()

void comphelper::OAccessibleContextWrapper::notifyTranslatedEvent ( const css::accessibility::AccessibleEventObject &  _rEvent)
overridevirtual

notify an accessible event which has been translated (if necessary)

Usually, you derive your class from both OAccessibleContextWrapperHelper and XAccessibleEventBroadcaster, and simply call all your XAccessibleEventListener with the given event.

The mutex of the BroadcastHelper passed to the instance's ctor is not locked when calling into this method

Exceptions
css::uno::RuntimeException

Implements comphelper::OAccessibleContextWrapperHelper.

Definition at line 557 of file accessiblewrapper.cxx.

References comphelper::AccessibleEventNotifier::addEvent(), and m_nNotifierClient.

◆ operator=()

OAccessibleContextWrapper & comphelper::OAccessibleContextWrapper::operator= ( const OAccessibleContextWrapper )
privatedelete

◆ removeAccessibleEventListener()

void SAL_CALL comphelper::OAccessibleContextWrapper::removeAccessibleEventListener ( const css::uno::Reference< css::accessibility::XAccessibleEventListener > &  xListener)
overridevirtual

Member Data Documentation

◆ m_nNotifierClient

::comphelper::AccessibleEventNotifier::TClientId comphelper::OAccessibleContextWrapper::m_nNotifierClient
private

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