LibreOffice Module svx (master)
1
|
This base class provides a base implementation for all shapes. More...
#include <AccessibleShape.hxx>
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 () noexcept override |
virtual void SAL_CALL | release () noexcept override |
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 |
virtual sal_Bool SAL_CALL | scrollSubstringTo (sal_Int32 nStartIndex, sal_Int32 nEndIndex, css::accessibility::AccessibleScrollType aScrollType) override |
const css::uno::Reference< css::drawing::XShape > & | GetXShape () const |
void | setIndexInParent (sal_Int32 _nIndex) |
set the index _nIndex at the accessible shape More... | |
![]() | |
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 |
bool | IsDisposed () const |
![]() | |
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 () const |
void | UpdateStates () |
Update the <const>OPAQUE</const> and <const>SELECTED</const> state. More... | |
![]() | |
void | FireEvent (const css::accessibility::AccessibleEventObject &aEvent) |
void | ThrowIfDisposed () |
void | SetAccessibleRole (sal_Int16 _nRole) |
![]() | |
~IAccessibleViewForwarderListener () | |
Protected Attributes | |
std::unique_ptr< ChildrenManager > | mpChildrenManager |
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< AccessibleTextHelper > | mpText |
The accessible text engine. More... | |
IAccessibleParent * | mpParent |
This object can be used to modify the child list of our parent. More... | |
SdrObject * | m_pShape |
This object can be removed when we have an extra interface to ask if the shape is selected. More... | |
![]() | |
rtl::Reference<::utl::AccessibleStateSetHelper > | mxStateSet |
css::uno::Reference< css::accessibility::XAccessibleRelationSet > | mxRelationSet |
Private Member Functions | |
AccessibleShape (const AccessibleShape &)=delete | |
AccessibleShape & | operator= (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 | |
![]() | |
enum | StringOrigin |
![]() | |
ManuallySet | |
FromShape | |
AutomaticallyCreated | |
NotSet | |
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 95 of file AccessibleShape.hxx.
accessibility::AccessibleShape::AccessibleShape | ( | const AccessibleShapeInfo & | rShapeInfo, |
const AccessibleShapeTreeInfo & | rShapeTreeInfo | ||
) |
Create a new accessible object that makes the given shape accessible.
rShapeInfo | This 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. |
rShapeTreeInfo | Bundle of information passed to this shape and all of its descendants. |
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 97 of file AccessibleShape.cxx.
References SdrObject::getSdrObjectFromXShape(), m_pShape, mpParent, mxParent, mxShape, mxShape, SHAPE, and UpdateNameAndDescription().
|
overridevirtual |
The destructor releases its children manager and text engine if still existent.
These are responsible to send appropriate events.
Definition at line 110 of file AccessibleShape.cxx.
References mpChildrenManager, mpText, and SAL_INFO.
|
privatedelete |
|
overridevirtualnoexcept |
Reimplemented in accessibility::AccessibleOLEShape, and accessibility::AccessibleGraphicShape.
Definition at line 741 of file AccessibleShape.cxx.
Referenced by accessibility::AccessibleGraphicShape::acquire(), and accessibility::AccessibleOLEShape::acquire().
|
overridevirtual |
This call is forwarded to a) the base class and b) to the accessible edit engine if it is present.
rxListener | This listener is informed about accessibility events. |
Reimplemented from accessibility::AccessibleContextBase.
Definition at line 694 of file AccessibleShape.cxx.
References accessibility::AccessibleContextBase::addAccessibleEventListener(), and mpText.
|
overridevirtual |
Definition at line 796 of file AccessibleShape.cxx.
|
overridevirtual |
Definition at line 1309 of file AccessibleShape.cxx.
|
protectedvirtual |
Create a base name string that contains the accessible name.
css::uno::RuntimeException |
Reimplemented in accessibility::AccessibleControlShape, accessibility::AccessibleOLEShape, and accessibility::AccessibleGraphicShape.
Definition at line 961 of file AccessibleShape.cxx.
References accessibility::ShapeTypeHandler::CreateAccessibleBaseName(), and mxShape.
Referenced by GetFullAccessibleName().
|
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 967 of file AccessibleShape.cxx.
References GetFullAccessibleName().
Referenced by accessibility::AccessibleControlShape::CreateAccessibleName(), and getAccessibleName().
|
overridevirtual |
Definition at line 833 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.
|
overrideprotectedvirtual |
This method is called from the component helper base class while disposing.
Reimplemented from accessibility::AccessibleContextBase.
Reimplemented in accessibility::AccessibleControlShape.
Definition at line 1008 of file AccessibleShape.cxx.
References accessibility::AccessibleShapeTreeInfo::dispose(), accessibility::AccessibleShapeTreeInfo::GetModelBroadcaster(), m_aMutex, maShapeTreeInfo, mpChildrenManager, mpText, mxShape, accessibility::AccessibleContextBase::mxStateSet, and utl::AccessibleStateSetHelper::RemoveState().
Referenced by accessibility::AccessibleTableShape::disposing().
|
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 453 of file AccessibleShape.cxx.
References getAccessibleChild(), getAccessibleChildCount(), i, and m_aMutex.
|
overridevirtual |
Return the specified child.
Forward the request to the shape.
nIndex | Index of the requested child. |
IndexOutOfBoundsException | Throws 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 329 of file AccessibleShape.cxx.
References mpChildrenManager, mpText, and accessibility::AccessibleContextBase::ThrowIfDisposed().
Referenced by getAccessibleAtPoint(), accessibility::AccessibleControlShape::getAccessibleChild(), getSelectedAccessibleChild(), and isAccessibleChildSelected().
|
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 305 of file AccessibleShape.cxx.
References accessibility::AccessibleContextBase::IsDisposed(), mpChildrenManager, and mpText.
Referenced by getAccessibleAtPoint(), accessibility::AccessibleControlShape::getAccessibleChildCount(), getSelectedAccessibleChild(), and getSelectedAccessibleChildCount().
|
overridevirtual |
Reimplemented from accessibility::AccessibleContextBase.
Definition at line 291 of file AccessibleShape.cxx.
References SdrObject::GetDescription(), m_pShape, and accessibility::AccessibleContextBase::ThrowIfDisposed().
Referenced by accessibility::AccessibleGraphicShape::getAccessibleImageDescription().
|
overridevirtual |
Return this objects index among the parents children.
Reimplemented from accessibility::AccessibleContextBase.
Definition at line 1045 of file AccessibleShape.cxx.
References accessibility::AccessibleContextBase::getAccessibleIndexInParent(), m_nIndexInParent, nIndex, and accessibility::AccessibleContextBase::ThrowIfDisposed().
|
overridevirtual |
Reimplemented from accessibility::AccessibleContextBase.
Definition at line 282 of file AccessibleShape.cxx.
References CreateAccessibleName(), SdrObject::GetTitle(), m_pShape, and accessibility::AccessibleContextBase::ThrowIfDisposed().
|
overridevirtual |
Reimplemented from accessibility::AccessibleContextBase.
Reimplemented in accessibility::AccessibleControlShape.
Definition at line 358 of file AccessibleShape.cxx.
References accessibility::IAccessibleParent::GetAccessibleCaption(), m_aMutex, mpParent, and mxShape.
|
overridevirtual |
Return this object's role.
Reimplemented from accessibility::AccessibleContextBase.
Definition at line 1089 of file AccessibleShape.cxx.
References accessibility::DRAWING_GRAPHIC_OBJECT, accessibility::DRAWING_OLE, accessibility::AccessibleContextBase::getAccessibleRole(), accessibility::ShapeTypeHandler::Instance(), and mxShape.
Referenced by accessibility::AccessibleControlShape::CreateAccessibleName(), accessibility::AccessibleControlShape::getAccessibleRelationSet(), getExtendedAttributes(), and accessibility::ChildrenManagerImpl::UpdateSelection().
|
overridevirtual |
Return the set of current states.
Return a copy of the state set.
Possible states are: ENABLED SHOWING VISIBLE
Reimplemented from accessibility::AccessibleContextBase.
Definition at line 383 of file AccessibleShape.cxx.
References utl::AccessibleStateSetHelper::AddState(), accessibility::AccessibleContextBase::getAccessibleParent(), accessibility::AccessibleContextBase::getAccessibleStateSet(), accessibility::AccessibleContextBase::IsDisposed(), accessibility::IAccessibleParent::IsDocumentSelAll(), m_aMutex, mpParent, mpText, accessibility::AccessibleContextBase::mxStateSet, and utl::AccessibleStateSetHelper::RemoveState().
Referenced by accessibility::AccessibleControlShape::Init().
|
overridevirtual |
Reimplemented from accessibility::AccessibleComponentBase.
Definition at line 657 of file AccessibleShape.cxx.
References mxShape, Color::SetAlpha(), and accessibility::AccessibleContextBase::ThrowIfDisposed().
|
overridevirtual |
Reimplemented from accessibility::AccessibleComponentBase.
Definition at line 484 of file AccessibleShape.cxx.
References accessibility::AccessibleContextBase::getAccessibleParent(), Size::getHeight(), accessibility::AccessibleShapeTreeInfo::GetViewForwarder(), Size::getWidth(), accessibility::IAccessibleViewForwarder::LogicToPixel(), m_aMutex, maShapeTreeInfo, mxShape, Point, SAL_INFO, SAL_WARN, accessibility::AccessibleContextBase::ThrowIfDisposed(), u, x, and y.
Referenced by getLocation(), and getSize().
|
overridevirtual |
Definition at line 1274 of file AccessibleShape.cxx.
|
overridevirtual |
Definition at line 1276 of file AccessibleShape.cxx.
|
overridevirtual |
Definition at line 1277 of file AccessibleShape.cxx.
|
overridevirtual |
Definition at line 1282 of file AccessibleShape.cxx.
|
overridevirtual |
Definition at line 1286 of file AccessibleShape.cxx.
|
overridevirtual |
Reimplemented in accessibility::AccessibleOLEShape.
Definition at line 839 of file AccessibleShape.cxx.
References getAccessibleRole(), GetStyle(), m_pShape, and style.
|
overridevirtual |
Reimplemented from accessibility::AccessibleComponentBase.
Definition at line 634 of file AccessibleShape.cxx.
References mxShape, and accessibility::AccessibleContextBase::ThrowIfDisposed().
|
protected |
css::uno::RuntimeException |
Definition at line 972 of file AccessibleShape.cxx.
References aAccName, accessibility::AccessibleContextBase::CommitChange(), CreateAccessibleBaseName(), SdrObject::GetName(), m_pShape, and sName.
Referenced by CreateAccessibleName().
|
overridevirtual |
Definition at line 1129 of file AccessibleShape.cxx.
References accessibility::AccessibleContextBase::getAccessibleContext(), accessibility::AccessibleContextBase::getAccessibleParent(), SdrObjList::GetObj(), SdrObjList::GetObjCount(), SdrObject::getParentSdrObjectFromSdrObject(), SdrObject::getSdrObjectFromXShape(), SdrObject::GetSubList(), GetXShapeForSdrObject(), i, mxShape, and nPos.
|
overridevirtual |
Definition at line 1255 of file AccessibleShape.cxx.
|
overridevirtual |
Definition at line 1240 of file AccessibleShape.cxx.
|
overridevirtual |
Definition at line 1269 of file AccessibleShape.cxx.
|
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 855 of file AccessibleShape.cxx.
|
overridevirtual |
Definition at line 1287 of file AccessibleShape.cxx.
|
overridevirtual |
Reimplemented from accessibility::AccessibleComponentBase.
Definition at line 596 of file AccessibleShape.cxx.
References getBounds(), and accessibility::AccessibleContextBase::ThrowIfDisposed().
Referenced by getLocationOnScreen().
|
overridevirtual |
Reimplemented from accessibility::AccessibleComponentBase.
Definition at line 604 of file AccessibleShape.cxx.
References accessibility::AccessibleContextBase::getAccessibleParent(), getLocation(), SAL_WARN, and accessibility::AccessibleContextBase::ThrowIfDisposed().
|
overridevirtual |
Definition at line 1219 of file AccessibleShape.cxx.
References accessibility::AccessibleContextBase::getAccessibleContext(), accessibility::AccessibleShapeTreeInfo::GetDocumentWindow(), SdrObject::getSdrObjectFromXShape(), maShapeTreeInfo, and mxShape.
|
overridevirtual |
Definition at line 817 of file AccessibleShape.cxx.
References getAccessibleChild(), getAccessibleChildCount(), getSelectedAccessibleChildCount(), and isAccessibleChildSelected().
|
overridevirtual |
Definition at line 806 of file AccessibleShape.cxx.
References getAccessibleChildCount(), i, isAccessibleChildSelected(), and nCount.
Referenced by getSelectedAccessibleChild().
|
overridevirtual |
Definition at line 1288 of file AccessibleShape.cxx.
|
overridevirtual |
Definition at line 1290 of file AccessibleShape.cxx.
|
overridevirtual |
Definition at line 1289 of file AccessibleShape.cxx.
|
overridevirtual |
Reimplemented from accessibility::AccessibleComponentBase.
Definition at line 626 of file AccessibleShape.cxx.
References getBounds(), and accessibility::AccessibleContextBase::ThrowIfDisposed().
Referenced by accessibility::AccessibleGraphicShape::getAccessibleImageHeight(), and accessibility::AccessibleGraphicShape::getAccessibleImageWidth().
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.
aState | The state for which to return its value. |
Definition at line 269 of file AccessibleShape.cxx.
References accessibility::AccessibleContextBase::GetState(), and mpText.
Referenced by accessibility::ChildrenManagerImpl::UpdateSelection().
|
protectedvirtual |
Definition at line 226 of file AccessibleShape.cxx.
References accessibility::ShapeTypeHandler::CreateAccessibleBaseName(), and mxShape.
Referenced by getExtendedAttributes().
|
overridevirtual |
Reimplemented from accessibility::AccessibleContextBase.
Reimplemented in accessibility::AccessibleOLEShape, and accessibility::AccessibleGraphicShape.
Definition at line 862 of file AccessibleShape.cxx.
References comphelper::concatSequences(), accessibility::AccessibleContextBase::getSupportedServiceNames(), and accessibility::AccessibleContextBase::ThrowIfDisposed().
Referenced by accessibility::AccessibleGraphicShape::getSupportedServiceNames(), and accessibility::AccessibleOLEShape::getSupportedServiceNames().
|
overridevirtual |
Definition at line 1292 of file AccessibleShape.cxx.
|
overridevirtual |
Definition at line 1294 of file AccessibleShape.cxx.
|
overridevirtual |
Definition at line 1299 of file AccessibleShape.cxx.
|
overridevirtual |
Definition at line 1304 of file AccessibleShape.cxx.
|
overridevirtual |
Definition at line 1293 of file AccessibleShape.cxx.
|
overridevirtual |
Reimplemented from accessibility::AccessibleComponentBase.
Reimplemented in accessibility::AccessibleOLEShape, and accessibility::AccessibleGraphicShape.
Definition at line 871 of file AccessibleShape.cxx.
References comphelper::concatSequences(), cppu::UnoType< class >::get(), accessibility::AccessibleComponentBase::getTypes(), and accessibility::AccessibleContextBase::ThrowIfDisposed().
Referenced by accessibility::AccessibleGraphicShape::getTypes(), and accessibility::AccessibleOLEShape::getTypes().
|
inline |
Definition at line 359 of file AccessibleShape.hxx.
References mxShape.
Referenced by accessibility::ChildrenManagerImpl::GetAccControlShapeFromModel().
Initialize a new shape.
See the documentation of the constructor for the reason of this method's existence.
Reimplemented in accessibility::AccessibleControlShape.
Definition at line 121 of file AccessibleShape.cxx.
References SdrTextObj::CanCreateEditOutlinerParaObject(), accessibility::AccessibleShapeTreeInfo::GetModelBroadcaster(), vcl::Window::GetOutDev(), SdrObject::GetOutlinerParaObject(), SdrObject::getSdrObjectFromXShape(), accessibility::AccessibleShapeTreeInfo::GetSdrView(), accessibility::AccessibleShapeTreeInfo::GetWindow(), vcl::Window::HasFocus(), maShapeTreeInfo, mpChildrenManager, mpText, mxShape, and UpdateStates().
Referenced by accessibility::AccessibleControlShape::Init().
|
overridevirtual |
Definition at line 761 of file AccessibleShape.cxx.
References getAccessibleChild().
Referenced by getSelectedAccessibleChild(), and getSelectedAccessibleChildCount().
|
overridevirtual |
Definition at line 916 of file AccessibleShape.cxx.
References accessibility::AccessibleContextBase::CommitChange(), mpText, and UpdateNameAndDescription().
|
privatedelete |
|
overridevirtual |
Reimplemented in accessibility::AccessibleOLEShape, and accessibility::AccessibleGraphicShape.
Definition at line 722 of file AccessibleShape.cxx.
References cppu::queryInterface().
Referenced by accessibility::AccessibleGraphicShape::queryInterface(), and accessibility::AccessibleOLEShape::queryInterface().
|
overridevirtualnoexcept |
Reimplemented in accessibility::AccessibleOLEShape, and accessibility::AccessibleGraphicShape.
Definition at line 749 of file AccessibleShape.cxx.
Referenced by accessibility::AccessibleGraphicShape::release(), and accessibility::AccessibleOLEShape::release().
|
overridevirtual |
This call is forwarded to a) the base class and b) to the accessible edit engine if it is present.
rxListener | This listener will not be informed about accessibility events anymore. |
Reimplemented from accessibility::AccessibleContextBase.
Definition at line 712 of file AccessibleShape.cxx.
References mpText, and accessibility::AccessibleContextBase::removeAccessibleEventListener().
|
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).
aState | The state to turn off. |
Reimplemented from accessibility::AccessibleContextBase.
Definition at line 250 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().
|
overridevirtual |
Definition at line 1310 of file AccessibleShape.cxx.
|
overridevirtual |
Definition at line 756 of file AccessibleShape.cxx.
|
overridevirtual |
Definition at line 801 of file AccessibleShape.cxx.
|
overridevirtual |
Definition at line 1275 of file AccessibleShape.cxx.
|
inline |
set the index _nIndex at the accessible shape
_nIndex | The new index in parent. |
Definition at line 365 of file AccessibleShape.hxx.
Referenced by accessibility::ChildDescriptor::setIndexAtAccessibleShape().
|
overridevirtual |
Definition at line 1291 of file AccessibleShape.cxx.
|
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).
aState | The state to turn on. |
Reimplemented from accessibility::AccessibleContextBase.
Reimplemented in accessibility::AccessibleControlShape.
Definition at line 231 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().
|
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 1057 of file AccessibleShape.cxx.
References accessibility::AccessibleContextBase::FromShape, mxShape, accessibility::AccessibleContextBase::SetAccessibleDescription(), and accessibility::AccessibleContextBase::SetAccessibleName().
Referenced by AccessibleShape(), and notifyShapeEvent().
|
protected |
Update the <const>OPAQUE</const> and <const>SELECTED</const> state.
Definition at line 177 of file AccessibleShape.cxx.
References accessibility::DRAWING_PAGE, accessibility::DRAWING_RECTANGLE, accessibility::DRAWING_TEXT, accessibility::AccessibleShapeTreeInfo::GetSdrView(), accessibility::ShapeTypeHandler::Instance(), SdrMarkView::IsObjMarked(), m_pShape, maShapeTreeInfo, mxShape, and accessibility::AccessibleContextBase::mxStateSet.
Referenced by Init().
|
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 942 of file AccessibleShape.cxx.
Referenced by accessibility::ChildrenManagerImpl::SendVisibleAreaEvents().
|
private |
Definition at line 425 of file AccessibleShape.hxx.
Referenced by GetFullAccessibleName().
|
protected |
the index in parent.
Definition at line 381 of file AccessibleShape.hxx.
Referenced by getAccessibleIndexInParent().
|
protected |
This object can be removed when we have an extra interface to ask if the shape is selected.
Definition at line 393 of file AccessibleShape.hxx.
Referenced by AccessibleShape(), getAccessibleDescription(), accessibility::AccessibleGraphicShape::getAccessibleImageDescription(), getAccessibleName(), accessibility::AccessibleOLEShape::getExtendedAttributes(), getExtendedAttributes(), GetFullAccessibleName(), and UpdateStates().
|
protected |
Bundle of information passed to all shapes in a document tree.
Definition at line 377 of file AccessibleShape.hxx.
Referenced by disposing(), accessibility::AccessibleControlShape::elementInserted(), getBounds(), getObjectLink(), accessibility::AccessibleControlShape::Init(), Init(), accessibility::AccessibleControlShape::modeChanged(), and UpdateStates().
|
protected |
Children manager. May be empty if there are no children.
Definition at line 369 of file AccessibleShape.hxx.
Referenced by disposing(), getAccessibleChild(), getAccessibleChildCount(), Init(), and ~AccessibleShape().
|
protected |
This object can be used to modify the child list of our parent.
Definition at line 389 of file AccessibleShape.hxx.
Referenced by accessibility::AccessibleControlShape::elementInserted(), getAccessibleRelationSet(), getAccessibleStateSet(), accessibility::AccessibleControlShape::GetLabeledByControlShape(), and accessibility::AccessibleControlShape::modeChanged().
|
protected |
The accessible text engine.
May be NULL if it can not be created.
Definition at line 385 of file AccessibleShape.hxx.
Referenced by addAccessibleEventListener(), disposing(), getAccessibleChild(), getAccessibleChildCount(), getAccessibleStateSet(), GetState(), Init(), notifyShapeEvent(), removeAccessibleEventListener(), ResetState(), SetState(), and ~AccessibleShape().
|
protected |
Reference to the actual shape.
Definition at line 373 of file AccessibleShape.hxx.
Referenced by AccessibleShape(), accessibility::AccessibleGraphicShape::CreateAccessibleBaseName(), accessibility::AccessibleOLEShape::CreateAccessibleBaseName(), accessibility::AccessibleControlShape::CreateAccessibleBaseName(), CreateAccessibleBaseName(), accessibility::AccessibleControlShape::CreateAccessibleDescription(), disposing(), accessibility::AccessibleControlShape::elementInserted(), accessibility::AccessibleControlShape::ensureControlModelAccess(), getAccessibleRelationSet(), getAccessibleRole(), getBackground(), getBounds(), getForeground(), getGroupPosition(), getObjectLink(), GetStyle(), accessibility::AccessibleControlShape::Init(), Init(), accessibility::AccessibleControlShape::modeChanged(), UpdateNameAndDescription(), and UpdateStates().