LibreOffice Module comphelper (master) 1
|
Helper for wrapping an XAccessibleContext by aggregating a proxy for it. More...
#include <accessiblewrapper.hxx>
Protected Member Functions | |
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 | |
OAccessibleContextWrapperHelper & | operator= (const OAccessibleContextWrapperHelper &)=delete |
Protected Member Functions inherited from cppu::ImplHelper1< class Ifc1 > | |
~ImplHelper1 () SAL_NOEXCEPT | |
Protected Attributes | |
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 |
Additional Inherited Members | |
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 |
Private Member Functions inherited from comphelper::OComponentProxyAggregationHelper | |
css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &_rType) override |
OComponentProxyAggregationHelper (const css::uno::Reference< css::uno::XComponentContext > &_rxContext, ::cppu::OBroadcastHelper &_rBHelper) | |
virtual | ~OComponentProxyAggregationHelper () |
void | componentAggregateProxyFor (const css::uno::Reference< css::lang::XComponent > &_rxComponent, oslInterlockedCount &_rRefCount, ::cppu::OWeakObject &_rDelegator) |
to be called from within your ctor More... | |
virtual void SAL_CALL | disposing (const css::lang::EventObject &Source) override |
virtual void SAL_CALL | dispose ()=0 |
const css::uno::Reference< css::uno::XComponentContext > & | getComponentContext () const |
Private Member Functions inherited from cppu::ImplHelper1< css::lang::XEventListener > | |
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 |
~ImplHelper1 () SAL_NOEXCEPT | |
Private Attributes inherited from comphelper::OComponentProxyAggregationHelper | |
css::uno::Reference< css::lang::XComponent > | m_xInner |
::cppu::OBroadcastHelper & | m_rBHelper |
Helper for wrapping an XAccessibleContext by aggregating a proxy for it.
This class does not have own ref counting. In addition, it does not implement the XAccessibleContext interface, but provides all the methods from this interface which must be implemented using the inner context (such as getAccessibleChild*).
Children of the aggregated XAccessibleContext are wrapped, too.
AccessibleEvents fired by the inner context are multiplexed, especially, any references to children in such events are translated. This means that even in such events, no un-wrapped object will ever leave this class - if the aggregated context notifies a child event, the child passed to the event is wrapped
@seealso OAccessibleContextWrapper
Definition at line 142 of file accessiblewrapper.hxx.
|
protected |
ctor
_rxContext | a service factory |
_rxInnerAccessibleContext | the object to wrap |
_rxOwningAccessible | The 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 |
_rxParentAccessible | The XAccessible to return in the getAccessibleParent call |
References queryInterface().
|
overrideprotectedvirtual |
Definition at line 373 of file accessiblewrapper.cxx.
References cppu::OBroadcastHelperVar< class container, class keyType >::bDisposed, and comphelper::OComponentProxyAggregationHelper::m_rBHelper.
|
protecteddelete |
|
protected |
to be called from within your ctor - does the aggregation of a proxy for m_xInnerContext
Definition at line 355 of file accessiblewrapper.cxx.
References comphelper::OComponentProxyAggregationHelper::componentAggregateProxyFor(), comphelper::OComponentProxyAggregationHelper::m_xInner, and m_xInnerContext.
|
protected |
css::lang::IndexOutOfBoundsException | |
css::uno::RuntimeException |
Definition at line 397 of file accessiblewrapper.cxx.
References i, m_xChildMapper, and m_xInnerContext.
Referenced by comphelper::OAccessibleContextWrapper::getAccessibleChild().
|
protected |
css::uno::RuntimeException |
Definition at line 391 of file accessiblewrapper.cxx.
Referenced by comphelper::OAccessibleContextWrapper::getAccessibleChildCount().
|
protected |
css::uno::RuntimeException |
Definition at line 405 of file accessiblewrapper.cxx.
References m_xInnerContext.
Referenced by comphelper::OAccessibleContextWrapper::getAccessibleRelationSet().
|
overrideprotectedvirtual |
css::uno::RuntimeException |
Implements comphelper::OComponentProxyAggregationHelper.
Definition at line 451 of file accessiblewrapper.cxx.
References comphelper::OComponentProxyAggregationHelper::dispose(), comphelper::OComponentProxyAggregationHelper::m_rBHelper, m_xChildMapper, comphelper::OComponentProxyAggregationHelper::m_xInner, and cppu::OBroadcastHelperVar< class container, class keyType >::rMutex.
Referenced by comphelper::OAccessibleContextWrapper::disposing().
|
overrideprotectedvirtual |
Reimplemented from comphelper::OComponentProxyAggregationHelper.
Reimplemented in comphelper::OAccessibleContextWrapper.
Definition at line 469 of file accessiblewrapper.cxx.
References comphelper::OComponentProxyAggregationHelper::disposing().
|
overrideprotectedvirtual |
Definition at line 413 of file accessiblewrapper.cxx.
References comphelper::OComponentProxyAggregationHelper::m_rBHelper, m_xChildMapper, comphelper::OComponentProxyAggregationHelper::m_xInner, notifyTranslatedEvent(), queryInterface(), and cppu::OBroadcastHelperVar< class container, class keyType >::rMutex.
|
protectedpure virtual |
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
css::uno::RuntimeException |
Implemented in comphelper::OAccessibleContextWrapper.
Referenced by notifyEvent().
|
protecteddelete |
|
overrideprotectedvirtual |
Reimplemented from cppu::ImplHelper1< class Ifc1 >.
Definition at line 379 of file accessiblewrapper.cxx.
References Any, comphelper::OComponentProxyAggregationHelper::queryInterface(), and cppu::ImplHelper1< class Ifc1 >::queryInterface().
Referenced by notifyEvent().
|
protected |
Definition at line 157 of file accessiblewrapper.hxx.
Referenced by baseGetAccessibleChild(), dispose(), and notifyEvent().
|
protected |
the context we're wrapping (properly typed, in opposite to OComponentProxyAggregationHelper::m_xInner)
Definition at line 149 of file accessiblewrapper.hxx.
Referenced by aggregateProxy(), baseGetAccessibleChild(), baseGetAccessibleRelationSet(), comphelper::OAccessibleContextWrapper::getAccessibleDescription(), comphelper::OAccessibleContextWrapper::getAccessibleIndexInParent(), comphelper::OAccessibleContextWrapper::getAccessibleName(), comphelper::OAccessibleContextWrapper::getAccessibleRole(), comphelper::OAccessibleContextWrapper::getAccessibleStateSet(), and comphelper::OAccessibleContextWrapper::getLocale().
|
protected |
the XAccessible which created this context
Definition at line 152 of file accessiblewrapper.hxx.
|
protected |
the XAccessible which is to be returned in getAccessibleParent
Definition at line 155 of file accessiblewrapper.hxx.
Referenced by comphelper::OAccessibleContextWrapper::getAccessibleParent().