LibreOffice Module svx (master) 1
|
A child descriptor holds a reference to a UNO shape and the corresponding accessible object. More...
#include <ChildrenManagerImpl.hxx>
Public Member Functions | |
AccessibleShape * | GetAccessibleShape () const |
Return a pointer to the implementation object of the accessible shape of this descriptor. More... | |
void | setIndexAtAccessibleShape (sal_Int32 _nIndex) |
set the index _nIndex at the accessible shape More... | |
ChildDescriptor (const css::uno::Reference< css::drawing::XShape > &xShape) | |
Create a new descriptor for the specified shape with empty reference to accessible object. More... | |
ChildDescriptor (const rtl::Reference< AccessibleShape > &rxAccessibleShape) | |
Create a new descriptor for the specified shape with empty reference to the original shape. More... | |
void | disposeAccessibleObject (AccessibleContextBase &rParent) |
Dispose the accessible object of this descriptor. More... | |
bool | operator== (const ChildDescriptor &aDescriptor) const |
Compare two child descriptors. More... | |
Public Attributes | |
css::uno::Reference< css::drawing::XShape > | mxShape |
Reference to a (partially) visible shape. More... | |
rtl::Reference< AccessibleShape > | mxAccessibleShape |
The corresponding accessible object. More... | |
bool | mbCreateEventPending |
This flag is set during the visibility calculation and indicates that at one time in this process an event is sent that informs the listeners of the creation of a new accessible object. More... | |
A child descriptor holds a reference to a UNO shape and the corresponding accessible object.
There are two use cases:
In both cases the child descriptor assumes ownership over the accessible object.
Definition at line 421 of file ChildrenManagerImpl.hxx.
|
explicit |
Create a new descriptor for the specified shape with empty reference to accessible object.
|
explicit |
Create a new descriptor for the specified shape with empty reference to the original shape.
Definition at line 1058 of file ChildrenManagerImpl.cxx.
References GetAccessibleShape(), and accessibility::AccessibleShape::SetState().
void accessibility::ChildDescriptor::disposeAccessibleObject | ( | AccessibleContextBase & | rParent | ) |
Dispose the accessible object of this descriptor.
If that object does not exist then do nothing.
rParent | The parent of the accessible object to dispose. A child event is sent in its name. |
Definition at line 1076 of file ChildrenManagerImpl.cxx.
References accessibility::AccessibleContextBase::CommitChange(), and mxAccessibleShape.
|
inline |
Return a pointer to the implementation object of the accessible shape of this descriptor.
Definition at line 441 of file ChildrenManagerImpl.hxx.
Referenced by ChildDescriptor(), and setIndexAtAccessibleShape().
|
inline |
Compare two child descriptors.
Take into account that a child descriptor may be based on a UNO shape or, already, on an accessible shape.
Definition at line 479 of file ChildrenManagerImpl.hxx.
References mxAccessibleShape, mxShape, and mxShape.
void accessibility::ChildDescriptor::setIndexAtAccessibleShape | ( | sal_Int32 | _nIndex | ) |
set the index _nIndex at the accessible shape
_nIndex | The new index in parent. |
Definition at line 1068 of file ChildrenManagerImpl.cxx.
References GetAccessibleShape(), and accessibility::AccessibleShape::setIndexInParent().
bool accessibility::ChildDescriptor::mbCreateEventPending |
This flag is set during the visibility calculation and indicates that at one time in this process an event is sent that informs the listeners of the creation of a new accessible object.
This flags is not reset afterwards. Don't use it unless you know exactly what you are doing.
Definition at line 455 of file ChildrenManagerImpl.hxx.
rtl::Reference<AccessibleShape> accessibility::ChildDescriptor::mxAccessibleShape |
The corresponding accessible object.
This reference is initially empty and only replaced by a reference to a new object when that is requested from the outside.
Definition at line 432 of file ChildrenManagerImpl.hxx.
Referenced by accessibility::ChildrenManagerImpl::AddShape(), disposeAccessibleObject(), accessibility::ChildrenManagerImpl::GetChild(), and operator==().
css::uno::Reference<css::drawing::XShape> accessibility::ChildDescriptor::mxShape |
Reference to a (partially) visible shape.
Definition at line 426 of file ChildrenManagerImpl.hxx.
Referenced by accessibility::ChildrenManagerImpl::GetChild(), and operator==().