LibreOffice Module unotools (master) 1
|
@descr This base class provides an implementation of the AccessibleRelationSet
service.
More...
#include <accessiblerelationsethelper.hxx>
Public Member Functions | |
AccessibleRelationSetHelper () | |
AccessibleRelationSetHelper (const AccessibleRelationSetHelper &rHelper) | |
virtual sal_Int32 SAL_CALL | getRelationCount () override |
Returns the number of relations in this relation set. More... | |
virtual css::accessibility::AccessibleRelation SAL_CALL | getRelation (sal_Int32 nIndex) override |
Returns the relation of this relation set that is specified by the given index. More... | |
virtual sal_Bool SAL_CALL | containsRelation (sal_Int16 aRelationType) override |
Tests whether the relation set contains a relation matching the specified key. More... | |
virtual css::accessibility::AccessibleRelation SAL_CALL | getRelationByType (sal_Int16 aRelationType) override |
Retrieve and return the relation with the given relation type. More... | |
void | AddRelation (const css::accessibility::AccessibleRelation &rRelation) |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () override |
Returns a sequence of all supported interfaces. More... | |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () override |
Returns an implementation id. More... | |
Private Member Functions | |
virtual | ~AccessibleRelationSetHelper () override |
Private Attributes | |
std::mutex | maMutex |
Mutex guarding this object. More... | |
std::vector< css::accessibility::AccessibleRelation > | maRelations |
The implementation of this helper interface. More... | |
@descr This base class provides an implementation of the AccessibleRelationSet
service.
Definition at line 39 of file accessiblerelationsethelper.hxx.
AccessibleRelationSetHelper::AccessibleRelationSetHelper | ( | ) |
Definition at line 45 of file accessiblerelationsethelper.cxx.
AccessibleRelationSetHelper::AccessibleRelationSetHelper | ( | const AccessibleRelationSetHelper & | rHelper | ) |
Definition at line 49 of file accessiblerelationsethelper.cxx.
References maRelations.
|
overrideprivatevirtual |
Definition at line 55 of file accessiblerelationsethelper.cxx.
void AccessibleRelationSetHelper::AddRelation | ( | const css::accessibility::AccessibleRelation & | rRelation | ) |
uno::RuntimeException |
Definition at line 139 of file accessiblerelationsethelper.cxx.
References comphelper::concatSequences(), maMutex, and maRelations.
|
overridevirtual |
Tests whether the relation set contains a relation matching the specified key.
aRelationType | The type of relation to look for in this set of relations. This has to be one of the constants of AccessibleRelationType. |
aRelationType | The type of relation to look for in this set of relations. This has to be one of the constants of <type>AccessibleRelationType</type>. |
Definition at line 111 of file accessiblerelationsethelper.cxx.
References maMutex, and maRelations.
|
overridevirtual |
Returns an implementation id.
Definition at line 165 of file accessiblerelationsethelper.cxx.
|
overridevirtual |
Returns the relation of this relation set that is specified by the given index.
nIndex | This index specifies the relatio to return. |
Definition at line 88 of file accessiblerelationsethelper.cxx.
References o3tl::make_unsigned(), maMutex, maRelations, and nIndex.
|
overridevirtual |
Retrieve and return the relation with the given relation type.
aRelationType | The type of the relation to return. This has to be one of the constants of AccessibleRelationType. |
aRelationType | The type of the relation to return. This has to be one of the constants of <type>AccessibleRelationType</type>. |
Definition at line 132 of file accessiblerelationsethelper.cxx.
References maMutex, and maRelations.
|
overridevirtual |
Returns the number of relations in this relation set.
Definition at line 67 of file accessiblerelationsethelper.cxx.
References maMutex, and maRelations.
|
overridevirtual |
Returns a sequence of all supported interfaces.
Definition at line 156 of file accessiblerelationsethelper.cxx.
References aTypes, and cppu::UnoType< typename T >::get().
|
private |
Mutex guarding this object.
Definition at line 118 of file accessiblerelationsethelper.hxx.
Referenced by AddRelation(), containsRelation(), getRelation(), getRelationByType(), and getRelationCount().
|
private |
The implementation of this helper interface.
Definition at line 120 of file accessiblerelationsethelper.hxx.
Referenced by AddRelation(), containsRelation(), getRelation(), getRelationByType(), and getRelationCount().