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

This base class provides a base implementation for all shapes. More...

#include <AccessibleShape.hxx>

Inheritance diagram for accessibility::AccessibleShape:
[legend]
Collaboration diagram for accessibility::AccessibleShape:
[legend]

Public Member Functions

 AccessibleShape (const AccessibleShapeInfo &rShapeInfo, const AccessibleShapeTreeInfo &rShapeTreeInfo)
 Create a new accessible object that makes the given shape accessible. More...
 
virtual OUString SAL_CALL getAccessibleName () override
 
virtual OUString SAL_CALL getAccessibleDescription () override
 
virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet () override
 
virtual void SAL_CALL selectAccessibleChild (sal_Int32 nChildIndex) override
 
virtual sal_Bool SAL_CALL isAccessibleChildSelected (sal_Int32 nChildIndex) override
 
virtual void SAL_CALL clearAccessibleSelection () override
 
virtual void SAL_CALL selectAllAccessibleChildren () override
 
virtual sal_Int32 SAL_CALL getSelectedAccessibleChildCount () override
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getSelectedAccessibleChild (sal_Int32 nSelectedChildIndex) override
 
virtual void SAL_CALL deselectAccessibleChild (sal_Int32 nSelectedChildIndex) override
 
virtual css::uno::Any SAL_CALL getExtendedAttributes () override
 
virtual sal_Int16 SAL_CALL getAccessibleRole () override
 Return this object's role. More...
 
virtual css::uno::Sequence< sal_Int32 > SAL_CALL getGroupPosition (const css::uno::Any &rAny) override
 
virtual OUString SAL_CALL getObjectLink (const css::uno::Any &accoject) override
 
virtual ~AccessibleShape () override
 The destructor releases its children manager and text engine if still existent. More...
 
virtual void Init ()
 Initialize a new shape. More...
 
virtual bool SetState (sal_Int16 aState) override
 Set the specified state. More...
 
virtual bool ResetState (sal_Int16 aState) override
 Reset the specified state. More...
 
bool GetState (sal_Int16 aState)
 Return the state of the specified state. More...
 
virtual sal_Int32 SAL_CALL getAccessibleChildCount () override
 Return the number of currently visible children. More...
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild (sal_Int32 nIndex) override
 Return the specified child. More...
 
virtual css::uno::Reference< css::accessibility::XAccessibleStateSet > SAL_CALL getAccessibleStateSet () override
 Return the set of current states. More...
 
virtual sal_Int32 SAL_CALL getAccessibleIndexInParent () override
 Return this objects index among the parents children. More...
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint (const css::awt::Point &aPoint) override
 The implementation below is at the moment straightforward. More...
 
virtual css::awt::Rectangle SAL_CALL getBounds () override
 
virtual css::awt::Point SAL_CALL getLocation () override
 
virtual css::awt::Point SAL_CALL getLocationOnScreen () override
 
virtual css::awt::Size SAL_CALL getSize () override
 
virtual sal_Int32 SAL_CALL getForeground () override
 
virtual sal_Int32 SAL_CALL getBackground () override
 
virtual void SAL_CALL addAccessibleEventListener (const css::uno::Reference< css::accessibility::XAccessibleEventListener > &rxListener) override
 This call is forwarded to a) the base class and b) to the accessible edit engine if it is present. More...
 
virtual void SAL_CALL removeAccessibleEventListener (const css::uno::Reference< css::accessibility::XAccessibleEventListener > &rxListener) override
 This call is forwarded to a) the base class and b) to the accessible edit engine if it is present. More...
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) override
 
virtual void SAL_CALL acquire () override throw ()
 
virtual void SAL_CALL release () override throw ()
 
virtual OUString SAL_CALL getImplementationName () override
 Returns an identifier for the implementation of this object. More...
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual void ViewForwarderChanged () override
 This method is called to indicate a change of the specified view forwarder, specifically, a change in visible area. More...
 
void disposing (const css::lang::EventObject &Source)
 Listen for disposing events of the model. More...
 
virtual void SAL_CALL notifyShapeEvent (const css::document::EventObject &rEventObject) override
 
virtual sal_Int32 SAL_CALL getHyperLinkCount () override
 
virtual css::uno::Reference< css::accessibility::XAccessibleHyperlink > SAL_CALL getHyperLink (sal_Int32 nLinkIndex) override
 
virtual sal_Int32 SAL_CALL getHyperLinkIndex (sal_Int32 nCharIndex) override
 
virtual sal_Int32 SAL_CALL getCaretPosition () override
 
virtual sal_Bool SAL_CALL setCaretPosition (sal_Int32 nIndex) override
 
virtual sal_Unicode SAL_CALL getCharacter (sal_Int32 nIndex) override
 
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getCharacterAttributes (sal_Int32 nIndex, const css::uno::Sequence< OUString > &aRequestedAttributes) override
 
virtual css::awt::Rectangle SAL_CALL getCharacterBounds (sal_Int32 nIndex) override
 
virtual sal_Int32 SAL_CALL getCharacterCount () override
 
virtual sal_Int32 SAL_CALL getIndexAtPoint (const css::awt::Point &aPoint) override
 
virtual OUString SAL_CALL getSelectedText () override
 
virtual sal_Int32 SAL_CALL getSelectionStart () override
 
virtual sal_Int32 SAL_CALL getSelectionEnd () override
 
virtual sal_Bool SAL_CALL setSelection (sal_Int32 nStartIndex, sal_Int32 nEndIndex) override
 
virtual OUString SAL_CALL getText () override
 
virtual OUString SAL_CALL getTextRange (sal_Int32 nStartIndex, sal_Int32 nEndIndex) override
 
virtual css::accessibility::TextSegment SAL_CALL getTextAtIndex (sal_Int32 nIndex, sal_Int16 aTextType) override
 
virtual css::accessibility::TextSegment SAL_CALL getTextBeforeIndex (sal_Int32 nIndex, sal_Int16 aTextType) override
 
virtual css::accessibility::TextSegment SAL_CALL getTextBehindIndex (sal_Int32 nIndex, sal_Int16 aTextType) override
 
virtual sal_Bool SAL_CALL copyText (sal_Int32 nStartIndex, sal_Int32 nEndIndex) override
 
const css::uno::Reference< css::drawing::XShape > & GetXShape () const
 
void setIndexInParent (sal_Int32 _nIndex)
 set the index _nIndex at the accessible shape More...
 
- Public Member Functions inherited from accessibility::AccessibleContextBase
 AccessibleContextBase (const css::uno::Reference< css::accessibility::XAccessible > &rxParent, const sal_Int16 aRole)
 
virtual ~AccessibleContextBase () override
 
void CommitChange (sal_Int16 aEventId, const css::uno::Any &rNewValue, const css::uno::Any &rOldValue)
 
void SetAccessibleDescription (const OUString &rsDescription, StringOrigin eDescriptionOrigin)
 
void SetAccessibleName (const OUString &rsName, StringOrigin eNameOrigin)
 
bool GetState (sal_Int16 aState)
 
void SetRelationSet (const css::uno::Reference< css::accessibility::XAccessibleRelationSet > &rxRelationSet)
 
virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext () override
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleParent () override
 
virtual css::lang::Locale SAL_CALL getLocale () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &sServiceName) override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
 
- Public Member Functions inherited from accessibility::AccessibleComponentBase
 AccessibleComponentBase ()
 
virtual ~AccessibleComponentBase ()
 
virtual sal_Bool SAL_CALL containsPoint (const css::awt::Point &aPoint) override
 
virtual void SAL_CALL grabFocus () override
 
virtual css::uno::Reference< css::awt::XFont > SAL_CALL getFont () override
 
virtual OUString SAL_CALL getTitledBorderText () override
 
virtual OUString SAL_CALL getToolTipText () override
 

Protected Member Functions

virtual void SAL_CALL disposing () override
 This method is called from the component helper base class while disposing. More...
 
virtual OUString CreateAccessibleBaseName ()
 Create a base name string that contains the accessible name. More...
 
virtual OUString CreateAccessibleName () override
 Create a unique name string that contains the accessible name. More...
 
OUString GetFullAccessibleName (AccessibleShape *shape)
 
virtual OUString GetStyle ()
 
void UpdateStates ()
 Update the <const>OPAQUE</const> and <const>SELECTED</const> state. More...
 
- Protected Member Functions inherited from accessibility::AccessibleContextBase
void FireEvent (const css::accessibility::AccessibleEventObject &aEvent)
 
void ThrowIfDisposed ()
 
bool IsDisposed () const
 
void SetAccessibleRole (sal_Int16 _nRole)
 
- Protected Member Functions inherited from accessibility::IAccessibleViewForwarderListener
 ~IAccessibleViewForwarderListener ()
 

Protected Attributes

std::unique_ptr< ChildrenManagermpChildrenManager
 Children manager. May be empty if there are no children. More...
 
css::uno::Reference< css::drawing::XShape > mxShape
 Reference to the actual shape. More...
 
AccessibleShapeTreeInfo maShapeTreeInfo
 Bundle of information passed to all shapes in a document tree. More...
 
sal_Int32 m_nIndexInParent
 the index in parent. More...
 
std::unique_ptr< AccessibleTextHelpermpText
 The accessible text engine. More...
 
IAccessibleParentmpParent
 This object can be used to modify the child list of our parent. More...
 
SdrObjectm_pShape
 This object can be removed when we have an extra interface to ask if the shape is selected. More...
 
- Protected Attributes inherited from accessibility::AccessibleContextBase
css::uno::Reference< css::accessibility::XAccessibleStateSet > mxStateSet
 
css::uno::Reference< css::accessibility::XAccessibleRelationSet > mxRelationSet
 

Private Member Functions

 AccessibleShape (const AccessibleShape &)=delete
 
AccessibleShapeoperator= (const AccessibleShape &)=delete
 
void UpdateNameAndDescription ()
 Call this method when the title, name, or description of the mxShape member (may) have been changed. More...
 

Private Attributes

OUString aAccName
 

Additional Inherited Members

- Public Types inherited from accessibility::AccessibleContextBase
enum  StringOrigin
 
- Public Attributes inherited from accessibility::AccessibleContextBase
 ManuallySet
 
 FromShape
 
 AutomaticallyCreated
 
 NotSet
 
- Public Attributes inherited from accessibility::MutexOwner
mutable::osl::Mutex maMutex
 

Detailed Description

This base class provides a base implementation for all shapes.

For more detailed documentation about the methods refer to the descriptions of the implemented interfaces. These are, among others, XAccessible, <type>XAccessibleContext</type>, XAccessibleComponent and XAccessibleExtendedComponent.

The children of a shape can stem from two sources which, in case of SVX and SD shapes, are mutually exclusive. This implementation, however, handles both simultaneously to cope with future extensions or shapes from other projects.

Accessible shapes do not listen for disposing() calls of the UNO shapes they make accessible. This is the task of their owner, usually a container, who can then call dispose() at the accessible object.

Definition at line 94 of file AccessibleShape.hxx.

Constructor & Destructor Documentation

accessibility::AccessibleShape::AccessibleShape ( const AccessibleShapeInfo rShapeInfo,
const AccessibleShapeTreeInfo rShapeTreeInfo 
)

Create a new accessible object that makes the given shape accessible.

Parameters
rShapeInfoThis object contains all information specific to the new accessible shape. That are e.g. the shape to be made accessible and the accessible object that will become the parent of the new object.
rShapeTreeInfoBundle of information passed to this shape and all of its descendants.
Attention:
Always call the <member>init</member> method after creating a
new accessible shape.  This is one way to overcome the potential
problem of registering the new object with e.g. event
broadcasters.  That would delete the new object if a broadcaster
would not keep a strong reference to the new object.

Definition at line 105 of file AccessibleShape.cxx.

References GetSdrObjectFromXShape(), m_pShape, mxShape, mxShape, SHAPE, and UpdateNameAndDescription().

accessibility::AccessibleShape::~AccessibleShape ( )
overridevirtual

The destructor releases its children manager and text engine if still existent.

These are responsible to send appropriate events.

Definition at line 118 of file AccessibleShape.cxx.

References mpChildrenManager, mpText, and SAL_INFO.

accessibility::AccessibleShape::AccessibleShape ( const AccessibleShape )
privatedelete

Member Function Documentation

void SAL_CALL accessibility::AccessibleShape::acquire ( )
throw (
)
overridevirtual
void SAL_CALL accessibility::AccessibleShape::addAccessibleEventListener ( const css::uno::Reference< css::accessibility::XAccessibleEventListener > &  rxListener)
overridevirtual

This call is forwarded to a) the base class and b) to the accessible edit engine if it is present.

Parameters
rxListenerThis listener is informed about accessibility events.

Reimplemented from accessibility::AccessibleContextBase.

Definition at line 716 of file AccessibleShape.cxx.

References accessibility::AccessibleContextBase::addAccessibleEventListener(), and mpText.

void SAL_CALL accessibility::AccessibleShape::clearAccessibleSelection ( )
overridevirtual

Definition at line 818 of file AccessibleShape.cxx.

sal_Bool SAL_CALL accessibility::AccessibleShape::copyText ( sal_Int32  nStartIndex,
sal_Int32  nEndIndex 
)
overridevirtual

Definition at line 1356 of file AccessibleShape.cxx.

OUString accessibility::AccessibleShape::CreateAccessibleBaseName ( )
protectedvirtual

Create a base name string that contains the accessible name.

Exceptions
css::uno::RuntimeException

Reimplemented in accessibility::AccessibleControlShape, accessibility::AccessibleOLEShape, and accessibility::AccessibleGraphicShape.

Definition at line 1007 of file AccessibleShape.cxx.

References accessibility::ShapeTypeHandler::CreateAccessibleBaseName(), and mxShape.

Referenced by GetFullAccessibleName().

OUString accessibility::AccessibleShape::CreateAccessibleName ( )
overrideprotectedvirtual

Create a unique name string that contains the accessible name.

The name consists of the base name and the index.

Reimplemented from accessibility::AccessibleContextBase.

Reimplemented in accessibility::AccessibleControlShape.

Definition at line 1013 of file AccessibleShape.cxx.

References GetFullAccessibleName().

Referenced by accessibility::AccessibleControlShape::CreateAccessibleName(), and getAccessibleName().

void SAL_CALL accessibility::AccessibleShape::deselectAccessibleChild ( sal_Int32  nSelectedChildIndex)
overridevirtual

Definition at line 855 of file AccessibleShape.cxx.

void accessibility::AccessibleShape::disposing ( const css::lang::EventObject &  Source)

Listen for disposing events of the model.

The accessible shape remains functional when this happens.

void accessibility::AccessibleShape::disposing ( )
overrideprotectedvirtual
uno::Reference< XAccessible > SAL_CALL accessibility::AccessibleShape::getAccessibleAtPoint ( const css::awt::Point &  aPoint)
overridevirtual

The implementation below is at the moment straightforward.

It iterates over all children (and thereby instances all children which have not been already instantiated) until a child covering the specified point is found. This leaves room for improvement. For instance, first iterate only over the already instantiated children and only if no match is found instantiate the remaining ones.

Reimplemented from accessibility::AccessibleComponentBase.

Definition at line 475 of file AccessibleShape.cxx.

References getAccessibleChild(), getAccessibleChildCount(), i, and accessibility::MutexOwner::maMutex.

uno::Reference< XAccessible > SAL_CALL accessibility::AccessibleShape::getAccessibleChild ( sal_Int32  nIndex)
overridevirtual

Return the specified child.

Forward the request to the shape.

Parameters
nIndexIndex of the requested child.
Returns
Reference of the requested child which is the accessible object of a visible shape.
Exceptions
IndexOutOfBoundsExceptionThrows an exception if the index is not valid.

Return the requested shape or throw an exception for a wrong index.

Reimplemented from accessibility::AccessibleContextBase.

Reimplemented in accessibility::AccessibleControlShape.

Definition at line 350 of file AccessibleShape.cxx.

References mpChildrenManager, mpText, and accessibility::AccessibleContextBase::ThrowIfDisposed().

Referenced by getAccessibleAtPoint(), accessibility::AccessibleControlShape::getAccessibleChild(), getSelectedAccessibleChild(), and isAccessibleChildSelected().

sal_Int32 SAL_CALL accessibility::AccessibleShape::getAccessibleChildCount ( )
overridevirtual

Return the number of currently visible children.

The children of this shape come from two sources: The children from group or scene shapes and the paragraphs of text.

Reimplemented from accessibility::AccessibleContextBase.

Reimplemented in accessibility::AccessibleControlShape.

Definition at line 326 of file AccessibleShape.cxx.

References accessibility::AccessibleContextBase::IsDisposed(), mpChildrenManager, and mpText.

Referenced by getAccessibleAtPoint(), accessibility::AccessibleControlShape::getAccessibleChildCount(), getSelectedAccessibleChild(), and getSelectedAccessibleChildCount().

OUString SAL_CALL accessibility::AccessibleShape::getAccessibleDescription ( )
overridevirtual
sal_Int32 SAL_CALL accessibility::AccessibleShape::getAccessibleIndexInParent ( )
overridevirtual
OUString SAL_CALL accessibility::AccessibleShape::getAccessibleName ( )
overridevirtual
uno::Reference< XAccessibleRelationSet > SAL_CALL accessibility::AccessibleShape::getAccessibleRelationSet ( )
overridevirtual
sal_Int16 SAL_CALL accessibility::AccessibleShape::getAccessibleRole ( )
overridevirtual
uno::Reference< XAccessibleStateSet > SAL_CALL accessibility::AccessibleShape::getAccessibleStateSet ( )
overridevirtual
sal_Int32 SAL_CALL accessibility::AccessibleShape::getBackground ( )
overridevirtual
awt::Rectangle SAL_CALL accessibility::AccessibleShape::getBounds ( )
overridevirtual
sal_Int32 SAL_CALL accessibility::AccessibleShape::getCaretPosition ( )
overridevirtual

Definition at line 1321 of file AccessibleShape.cxx.

sal_Unicode SAL_CALL accessibility::AccessibleShape::getCharacter ( sal_Int32  nIndex)
overridevirtual

Definition at line 1323 of file AccessibleShape.cxx.

css::uno::Sequence< css::beans::PropertyValue > SAL_CALL accessibility::AccessibleShape::getCharacterAttributes ( sal_Int32  nIndex,
const css::uno::Sequence< OUString > &  aRequestedAttributes 
)
overridevirtual

Definition at line 1324 of file AccessibleShape.cxx.

css::awt::Rectangle SAL_CALL accessibility::AccessibleShape::getCharacterBounds ( sal_Int32  nIndex)
overridevirtual

Definition at line 1329 of file AccessibleShape.cxx.

sal_Int32 SAL_CALL accessibility::AccessibleShape::getCharacterCount ( )
overridevirtual

Definition at line 1333 of file AccessibleShape.cxx.

uno::Any SAL_CALL accessibility::AccessibleShape::getExtendedAttributes ( )
overridevirtual

Reimplemented in accessibility::AccessibleOLEShape.

Definition at line 861 of file AccessibleShape.cxx.

References getAccessibleRole(), GetStyle(), and m_pShape.

sal_Int32 SAL_CALL accessibility::AccessibleShape::getForeground ( )
overridevirtual
OUString accessibility::AccessibleShape::GetFullAccessibleName ( AccessibleShape shape)
protected
Exceptions
css::uno::RuntimeException

Definition at line 1018 of file AccessibleShape.cxx.

References aAccName, accessibility::AccessibleContextBase::CommitChange(), CreateAccessibleBaseName(), SdrObject::GetName(), m_pShape, and sName.

Referenced by CreateAccessibleName().

uno::Sequence< sal_Int32 > SAL_CALL accessibility::AccessibleShape::getGroupPosition ( const css::uno::Any &  rAny)
overridevirtual
uno::Reference< XAccessibleHyperlink > SAL_CALL accessibility::AccessibleShape::getHyperLink ( sal_Int32  nLinkIndex)
overridevirtual

Definition at line 1302 of file AccessibleShape.cxx.

sal_Int32 SAL_CALL accessibility::AccessibleShape::getHyperLinkCount ( )
overridevirtual

Definition at line 1287 of file AccessibleShape.cxx.

sal_Int32 SAL_CALL accessibility::AccessibleShape::getHyperLinkIndex ( sal_Int32  nCharIndex)
overridevirtual

Definition at line 1316 of file AccessibleShape.cxx.

OUString SAL_CALL accessibility::AccessibleShape::getImplementationName ( )
overridevirtual

Returns an identifier for the implementation of this object.

Reimplemented from accessibility::AccessibleContextBase.

Reimplemented in accessibility::AccessibleControlShape, accessibility::AccessibleOLEShape, and accessibility::AccessibleGraphicShape.

Definition at line 877 of file AccessibleShape.cxx.

sal_Int32 SAL_CALL accessibility::AccessibleShape::getIndexAtPoint ( const css::awt::Point &  aPoint)
overridevirtual

Definition at line 1334 of file AccessibleShape.cxx.

awt::Point SAL_CALL accessibility::AccessibleShape::getLocation ( )
overridevirtual
awt::Point SAL_CALL accessibility::AccessibleShape::getLocationOnScreen ( )
overridevirtual
OUString accessibility::AccessibleShape::getObjectLink ( const css::uno::Any &  accoject)
overridevirtual
Reference< XAccessible > SAL_CALL accessibility::AccessibleShape::getSelectedAccessibleChild ( sal_Int32  nSelectedChildIndex)
overridevirtual
sal_Int32 SAL_CALL accessibility::AccessibleShape::getSelectedAccessibleChildCount ( )
overridevirtual
OUString SAL_CALL accessibility::AccessibleShape::getSelectedText ( )
overridevirtual

Definition at line 1335 of file AccessibleShape.cxx.

sal_Int32 SAL_CALL accessibility::AccessibleShape::getSelectionEnd ( )
overridevirtual

Definition at line 1337 of file AccessibleShape.cxx.

sal_Int32 SAL_CALL accessibility::AccessibleShape::getSelectionStart ( )
overridevirtual

Definition at line 1336 of file AccessibleShape.cxx.

awt::Size SAL_CALL accessibility::AccessibleShape::getSize ( )
overridevirtual
bool accessibility::AccessibleShape::GetState ( sal_Int16  aState)

Return the state of the specified state.

Take the <const>FOCUSED</const> state from the accessible edit engine.

Parameters
aStateThe state for which to return its value.
Returns
A value of <TRUE> indicates that the state is set. A <FALSE> value indicates an unset state or the inability to access the entity that manages the state set.

Definition at line 290 of file AccessibleShape.cxx.

References accessibility::AccessibleContextBase::GetState(), and mpText.

Referenced by accessibility::ChildrenManagerImpl::UpdateSelection().

OUString accessibility::AccessibleShape::GetStyle ( )
protectedvirtual
uno::Sequence< OUString > SAL_CALL accessibility::AccessibleShape::getSupportedServiceNames ( )
overridevirtual
OUString SAL_CALL accessibility::AccessibleShape::getText ( )
overridevirtual

Definition at line 1339 of file AccessibleShape.cxx.

css::accessibility::TextSegment SAL_CALL accessibility::AccessibleShape::getTextAtIndex ( sal_Int32  nIndex,
sal_Int16  aTextType 
)
overridevirtual

Definition at line 1341 of file AccessibleShape.cxx.

css::accessibility::TextSegment SAL_CALL accessibility::AccessibleShape::getTextBeforeIndex ( sal_Int32  nIndex,
sal_Int16  aTextType 
)
overridevirtual

Definition at line 1346 of file AccessibleShape.cxx.

css::accessibility::TextSegment SAL_CALL accessibility::AccessibleShape::getTextBehindIndex ( sal_Int32  nIndex,
sal_Int16  aTextType 
)
overridevirtual

Definition at line 1351 of file AccessibleShape.cxx.

OUString SAL_CALL accessibility::AccessibleShape::getTextRange ( sal_Int32  nStartIndex,
sal_Int32  nEndIndex 
)
overridevirtual

Definition at line 1340 of file AccessibleShape.cxx.

uno::Sequence< uno::Type > SAL_CALL accessibility::AccessibleShape::getTypes ( )
overridevirtual
const css::uno::Reference< css::drawing::XShape >& accessibility::AccessibleShape::GetXShape ( ) const
inline
void accessibility::AccessibleShape::Init ( void  )
virtual
sal_Bool SAL_CALL accessibility::AccessibleShape::isAccessibleChildSelected ( sal_Int32  nChildIndex)
overridevirtual
void SAL_CALL accessibility::AccessibleShape::notifyShapeEvent ( const css::document::EventObject &  rEventObject)
overridevirtual
AccessibleShape& accessibility::AccessibleShape::operator= ( const AccessibleShape )
privatedelete
css::uno::Any SAL_CALL accessibility::AccessibleShape::queryInterface ( const css::uno::Type &  rType)
overridevirtual
void SAL_CALL accessibility::AccessibleShape::release ( )
throw (
)
overridevirtual
void SAL_CALL accessibility::AccessibleShape::removeAccessibleEventListener ( const css::uno::Reference< css::accessibility::XAccessibleEventListener > &  rxListener)
overridevirtual

This call is forwarded to a) the base class and b) to the accessible edit engine if it is present.

Parameters
rxListenerThis listener will not be informed about accessibility events anymore.

Reimplemented from accessibility::AccessibleContextBase.

Definition at line 734 of file AccessibleShape.cxx.

References mpText, and accessibility::AccessibleContextBase::removeAccessibleEventListener().

bool accessibility::AccessibleShape::ResetState ( sal_Int16  aState)
overridevirtual

Reset the specified state.

If the state is <const>FOCUSED</const> then, additionally to the inherited functionality, the focus listeners registered with the XAccessibleComponent interface are called (if that state really changes).

Parameters
aStateThe state to turn off.
Returns
The returned flag indicates whether the specified state has been changed (<TRUE>), i.e. it has formerly been set.

Reimplemented from accessibility::AccessibleContextBase.

Definition at line 271 of file AccessibleShape.cxx.

References mpText, and accessibility::AccessibleContextBase::ResetState().

Referenced by accessibility::AccessibleControlShape::notifyEvent(), accessibility::ChildrenManagerImpl::RemoveFocus(), accessibility::ChildrenManagerImpl::RemoveNonVisibleChildren(), accessibility::AccessibleTableShape::ResetState(), and accessibility::ChildrenManagerImpl::UpdateSelection().

void SAL_CALL accessibility::AccessibleShape::selectAccessibleChild ( sal_Int32  nChildIndex)
overridevirtual

Definition at line 778 of file AccessibleShape.cxx.

void SAL_CALL accessibility::AccessibleShape::selectAllAccessibleChildren ( )
overridevirtual

Definition at line 823 of file AccessibleShape.cxx.

sal_Bool SAL_CALL accessibility::AccessibleShape::setCaretPosition ( sal_Int32  nIndex)
overridevirtual

Definition at line 1322 of file AccessibleShape.cxx.

void accessibility::AccessibleShape::setIndexInParent ( sal_Int32  _nIndex)
inline

set the index _nIndex at the accessible shape

Parameters
_nIndexThe new index in parent.

Definition at line 363 of file AccessibleShape.hxx.

Referenced by accessibility::ChildDescriptor::setIndexAtAccessibleShape().

sal_Bool SAL_CALL accessibility::AccessibleShape::setSelection ( sal_Int32  nStartIndex,
sal_Int32  nEndIndex 
)
overridevirtual

Definition at line 1338 of file AccessibleShape.cxx.

bool accessibility::AccessibleShape::SetState ( sal_Int16  aState)
overridevirtual

Set the specified state.

If the state is <const>FOCUSED</const> then, additionally to the inherited functionality, the focus listeners registered with the XAccessibleComponent interface are called (if that state really changes).

Parameters
aStateThe state to turn on.
Returns
The returned flag indicates whether the specified state has been changed (<TRUE>), i.e. it has formerly not been set.

Reimplemented from accessibility::AccessibleContextBase.

Reimplemented in accessibility::AccessibleControlShape.

Definition at line 252 of file AccessibleShape.cxx.

References mpText, and accessibility::AccessibleContextBase::SetState().

Referenced by accessibility::AccessibleControlShape::notifyEvent(), accessibility::AccessibleTableShape::SetState(), accessibility::AccessibleControlShape::SetState(), and accessibility::ChildrenManagerImpl::UpdateSelection().

void accessibility::AccessibleShape::UpdateNameAndDescription ( )
private

Call this method when the title, name, or description of the mxShape member (may) have been changed.

This method adapts the name and description members of the AccessibleContextBase base class.

Definition at line 1104 of file AccessibleShape.cxx.

References accessibility::AccessibleContextBase::FromShape, mxShape, accessibility::AccessibleContextBase::SetAccessibleDescription(), and accessibility::AccessibleContextBase::SetAccessibleName().

Referenced by AccessibleShape(), and notifyShapeEvent().

void accessibility::AccessibleShape::UpdateStates ( )
protected
void accessibility::AccessibleShape::ViewForwarderChanged ( )
overridevirtual

This method is called to indicate a change of the specified view forwarder, specifically, a change in visible area.

Implements accessibility::IAccessibleViewForwarderListener.

Definition at line 988 of file AccessibleShape.cxx.

Referenced by accessibility::ChildrenManagerImpl::SendVisibleAreaEvents().

Member Data Documentation

OUString accessibility::AccessibleShape::aAccName
private

Definition at line 423 of file AccessibleShape.hxx.

Referenced by GetFullAccessibleName().

sal_Int32 accessibility::AccessibleShape::m_nIndexInParent
protected

the index in parent.

Definition at line 379 of file AccessibleShape.hxx.

Referenced by getAccessibleIndexInParent().

SdrObject* accessibility::AccessibleShape::m_pShape
protected
AccessibleShapeTreeInfo accessibility::AccessibleShape::maShapeTreeInfo
protected
std::unique_ptr<ChildrenManager> accessibility::AccessibleShape::mpChildrenManager
protected

Children manager. May be empty if there are no children.

Definition at line 367 of file AccessibleShape.hxx.

Referenced by disposing(), getAccessibleChild(), getAccessibleChildCount(), Init(), and ~AccessibleShape().

IAccessibleParent* accessibility::AccessibleShape::mpParent
protected
std::unique_ptr<AccessibleTextHelper> accessibility::AccessibleShape::mpText
protected
css::uno::Reference< css::drawing::XShape> accessibility::AccessibleShape::mxShape
protected

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