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_Int32 SAL_CALL getAccessibleChildCount () override
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild (sal_Int32 i) override
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleParent () override
 
virtual sal_Int32 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 css::uno::Reference< css::accessibility::XAccessibleStateSet > 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
 
- Public Member Functions inherited from cppu::ImplHelper1< class >
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_Int32 baseGetAccessibleChildCount ()
 
css::uno::Reference< css::accessibility::XAccessible > baseGetAccessibleChild (sal_Int32 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 ~OAccessibleContextWrapperHelper () override
 
 OAccessibleContextWrapperHelper (const OAccessibleContextWrapperHelper &)=delete
 
OAccessibleContextWrapperHelperoperator= (const OAccessibleContextWrapperHelper &)=delete
 
- Protected Member Functions inherited from cppu::ImplHelper1< class >
 ~ImplHelper1 ()
 

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< OWrappedAccessibleChildrenManagerm_xChildMapper
 

Detailed Description

Definition at line 244 of file accessiblewrapper.hxx.

Constructor & Destructor Documentation

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
comphelper::OAccessibleContextWrapper::~OAccessibleContextWrapper ( )
overrideprotectedvirtual

Definition at line 495 of file accessiblewrapper.cxx.

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

Member Function Documentation

void SAL_CALL comphelper::OAccessibleContextWrapper::addAccessibleEventListener ( const css::uno::Reference< css::accessibility::XAccessibleEventListener > &  xListener)
overridevirtual
void SAL_CALL comphelper::OAccessibleContextWrapper::disposing ( )
overridevirtual
Reference< XAccessible > SAL_CALL comphelper::OAccessibleContextWrapper::getAccessibleChild ( sal_Int32  i)
overridevirtual
sal_Int32 SAL_CALL comphelper::OAccessibleContextWrapper::getAccessibleChildCount ( )
overridevirtual
OUString SAL_CALL comphelper::OAccessibleContextWrapper::getAccessibleDescription ( )
overridevirtual
sal_Int32 SAL_CALL comphelper::OAccessibleContextWrapper::getAccessibleIndexInParent ( )
overridevirtual
OUString SAL_CALL comphelper::OAccessibleContextWrapper::getAccessibleName ( )
overridevirtual
Reference< XAccessible > SAL_CALL comphelper::OAccessibleContextWrapper::getAccessibleParent ( )
overridevirtual
Reference< XAccessibleRelationSet > SAL_CALL comphelper::OAccessibleContextWrapper::getAccessibleRelationSet ( )
overridevirtual
sal_Int16 SAL_CALL comphelper::OAccessibleContextWrapper::getAccessibleRole ( )
overridevirtual
Reference< XAccessibleStateSet > SAL_CALL comphelper::OAccessibleContextWrapper::getAccessibleStateSet ( )
overridevirtual
Locale SAL_CALL comphelper::OAccessibleContextWrapper::getLocale ( )
overridevirtual
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 560 of file accessiblewrapper.cxx.

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

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

Member Data Documentation

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

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