LibreOffice Module svx (master) 1
|
@descr This class makes graphic shapes accessible. More...
#include <AccessibleGraphicShape.hxx>
Public Member Functions | |
AccessibleGraphicShape (const AccessibleShapeInfo &rShapeInfo, const AccessibleShapeTreeInfo &rShapeTreeInfo) | |
virtual | ~AccessibleGraphicShape () override |
OUString SAL_CALL | getAccessibleImageDescription () override |
sal_Int32 SAL_CALL | getAccessibleImageHeight () override |
sal_Int32 SAL_CALL | getAccessibleImageWidth () override |
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 |
Public Member Functions inherited from accessibility::AccessibleShape | |
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_Int64 nChildIndex) override |
virtual sal_Bool SAL_CALL | isAccessibleChildSelected (sal_Int64 nChildIndex) override |
virtual void SAL_CALL | clearAccessibleSelection () override |
virtual void SAL_CALL | selectAllAccessibleChildren () override |
virtual sal_Int64 SAL_CALL | getSelectedAccessibleChildCount () override |
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL | getSelectedAccessibleChild (sal_Int64 nSelectedChildIndex) override |
virtual void SAL_CALL | deselectAccessibleChild (sal_Int64 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_Int64 aState) override |
Set the specified state. More... | |
virtual bool | ResetState (sal_Int64 aState) override |
Reset the specified state. More... | |
bool | GetState (sal_Int64 aState) |
Return the state of the specified state. More... | |
virtual sal_Int64 SAL_CALL | getAccessibleChildCount () override |
Return the number of currently visible children. More... | |
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL | getAccessibleChild (sal_Int64 nIndex) override |
Return the specified child. More... | |
virtual sal_Int64 SAL_CALL | getAccessibleStateSet () override |
Return the set of current states. More... | |
virtual sal_Int64 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... | |
Public Member Functions inherited from accessibility::AccessibleContextBase | |
AccessibleContextBase (css::uno::Reference< css::accessibility::XAccessible > xParent, const sal_Int16 aRole) | |
virtual | ~AccessibleContextBase () override |
void | CommitChange (sal_Int16 aEventId, const css::uno::Any &rNewValue, const css::uno::Any &rOldValue, sal_Int32 nValueIndex) |
void | SetAccessibleDescription (const OUString &rsDescription, StringOrigin eDescriptionOrigin) |
void | SetAccessibleName (const OUString &rsName, StringOrigin eNameOrigin) |
virtual bool | SetState (sal_Int64 aState) |
virtual bool | ResetState (sal_Int64 aState) |
bool | GetState (sal_Int64 aState) |
void | SetRelationSet (const css::uno::Reference< css::accessibility::XAccessibleRelationSet > &rxRelationSet) |
virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL | getAccessibleContext () override |
virtual sal_Int64 SAL_CALL | getAccessibleChildCount () override |
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL | getAccessibleChild (sal_Int64 nIndex) override |
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL | getAccessibleParent () override |
virtual sal_Int64 SAL_CALL | getAccessibleIndexInParent () override |
virtual sal_Int16 SAL_CALL | getAccessibleRole () override |
virtual OUString SAL_CALL | getAccessibleDescription () override |
virtual OUString SAL_CALL | getAccessibleName () override |
virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL | getAccessibleRelationSet () override |
virtual sal_Int64 SAL_CALL | getAccessibleStateSet () override |
virtual css::lang::Locale SAL_CALL | getLocale () override |
virtual void SAL_CALL | addAccessibleEventListener (const css::uno::Reference< css::accessibility::XAccessibleEventListener > &xListener) override |
virtual void SAL_CALL | removeAccessibleEventListener (const css::uno::Reference< css::accessibility::XAccessibleEventListener > &xListener) override |
virtual OUString SAL_CALL | getImplementationName () override |
virtual sal_Bool SAL_CALL | supportsService (const OUString &sServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () override |
bool | IsDisposed () const |
Public Member Functions inherited from accessibility::AccessibleComponentBase | |
AccessibleComponentBase () | |
virtual | ~AccessibleComponentBase () |
virtual sal_Bool SAL_CALL | containsPoint (const css::awt::Point &aPoint) override |
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL | getAccessibleAtPoint (const css::awt::Point &aPoint) override |
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 void SAL_CALL | grabFocus () override |
virtual sal_Int32 SAL_CALL | getForeground () override |
virtual sal_Int32 SAL_CALL | getBackground () override |
virtual css::uno::Reference< css::awt::XFont > SAL_CALL | getFont () override |
virtual OUString SAL_CALL | getTitledBorderText () override |
virtual OUString SAL_CALL | getToolTipText () override |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () |
virtual void | ViewForwarderChanged ()=0 |
This method is called to indicate a change of the specified view forwarder, specifically, a change in visible area. More... | |
Protected Member Functions | |
virtual OUString | CreateAccessibleBaseName () override |
Create a name string that contains the accessible name. More... | |
Protected Member Functions inherited from accessibility::AccessibleShape | |
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... | |
Protected Member Functions inherited from accessibility::AccessibleContextBase | |
virtual void SAL_CALL | disposing () override |
virtual OUString | CreateAccessibleName () |
void | FireEvent (const css::accessibility::AccessibleEventObject &aEvent) |
void | ThrowIfDisposed () |
void | SetAccessibleRole (sal_Int16 _nRole) |
Protected Member Functions inherited from accessibility::IAccessibleViewForwarderListener | |
~IAccessibleViewForwarderListener () | |
Private Member Functions | |
AccessibleGraphicShape (const AccessibleGraphicShape &)=delete | |
AccessibleGraphicShape & | operator= (const AccessibleGraphicShape &)=delete |
Additional Inherited Members | |
Public Types inherited from accessibility::AccessibleContextBase | |
enum | StringOrigin |
Public Attributes inherited from accessibility::AccessibleContextBase | |
ManuallySet | |
FromShape | |
AutomaticallyCreated | |
NotSet | |
Protected Attributes inherited from accessibility::AccessibleShape | |
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... | |
Protected Attributes inherited from accessibility::AccessibleContextBase | |
sal_Int64 | mnStateSet |
css::uno::Reference< css::accessibility::XAccessibleRelationSet > | mxRelationSet |
@descr This class makes graphic shapes accessible.
With respect to its base class AccessibleShape it supports the additional XAccessibleImage interface.
Definition at line 42 of file AccessibleGraphicShape.hxx.
AccessibleGraphicShape::AccessibleGraphicShape | ( | const AccessibleShapeInfo & | rShapeInfo, |
const AccessibleShapeTreeInfo & | rShapeTreeInfo | ||
) |
Definition at line 36 of file AccessibleGraphicShape.cxx.
|
overridevirtual |
Definition at line 44 of file AccessibleGraphicShape.cxx.
|
privatedelete |
|
overridevirtualnoexcept |
Reimplemented from accessibility::AccessibleShape.
Definition at line 81 of file AccessibleGraphicShape.cxx.
References accessibility::AccessibleShape::acquire().
|
overrideprotectedvirtual |
Create a name string that contains the accessible name.
Create the base name of this object, i.e. the name without appended number.
Reimplemented from accessibility::AccessibleShape.
Definition at line 123 of file AccessibleGraphicShape.cxx.
References accessibility::DRAWING_GRAPHIC_OBJECT, accessibility::ShapeTypeHandler::GetTypeId(), accessibility::ShapeTypeHandler::Instance(), accessibility::AccessibleShape::mxShape, and sName.
|
override |
Definition at line 49 of file AccessibleGraphicShape.cxx.
References accessibility::AccessibleShape::getAccessibleDescription(), SdrObject::GetTitle(), and accessibility::AccessibleShape::m_pShape.
|
override |
Definition at line 57 of file AccessibleGraphicShape.cxx.
References accessibility::AccessibleShape::getSize().
|
override |
Definition at line 63 of file AccessibleGraphicShape.cxx.
References accessibility::AccessibleShape::getSize().
|
overridevirtual |
Returns an identifier for the implementation of this object.
Reimplemented from accessibility::AccessibleShape.
Definition at line 97 of file AccessibleGraphicShape.cxx.
|
overridevirtual |
Reimplemented from accessibility::AccessibleShape.
Definition at line 104 of file AccessibleGraphicShape.cxx.
References comphelper::concatSequences(), accessibility::AccessibleShape::getSupportedServiceNames(), and accessibility::AccessibleContextBase::ThrowIfDisposed().
|
overridevirtual |
Reimplemented from accessibility::AccessibleShape.
Definition at line 113 of file AccessibleGraphicShape.cxx.
References comphelper::concatSequences(), cppu::UnoType< typename T >::get(), and accessibility::AccessibleShape::getTypes().
|
privatedelete |
|
overridevirtual |
Reimplemented from accessibility::AccessibleShape.
Definition at line 70 of file AccessibleGraphicShape.cxx.
References accessibility::AccessibleShape::queryInterface().
|
overridevirtualnoexcept |
Reimplemented from accessibility::AccessibleShape.
Definition at line 89 of file AccessibleGraphicShape.cxx.
References accessibility::AccessibleShape::release().