23#include <com/sun/star/accessibility/XAccessible.hpp>
24#include <com/sun/star/accessibility/XAccessibleContext.hpp>
25#include <com/sun/star/accessibility/XAccessibleComponent.hpp>
26#include <com/sun/star/lang/XServiceInfo.hpp>
27#include <com/sun/star/lang/XEventListener.hpp>
28#include <com/sun/star/accessibility/XAccessibleEventBroadcaster.hpp>
49class IAccessibleViewForwarder;
68 css::uno::WeakReference< css::awt::XWindow >
m_xWindow;
79typedef ::cppu::WeakComponentImplHelper<
80 css::accessibility::XAccessible,
81 css::accessibility::XAccessibleContext,
82 css::accessibility::XAccessibleComponent,
83 css::accessibility::XAccessibleEventBroadcaster,
84 css::lang::XServiceInfo,
85 css::lang::XEventListener
103 bool bMayHaveChildren,
104 bool bAlwaysTransparent );
190 const css::uno::Any & rNew,
191 const css::uno::Any & rOld )
const;
207 virtual css::uno::Reference< css::accessibility::XAccessible >
222 virtual void SAL_CALL
disposing()
override;
225 virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL
getAccessibleContext()
override;
229 virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL
231 virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL
239 virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL
242 virtual css::lang::Locale SAL_CALL
getLocale()
override;
249 const css::awt::Point& aPoint )
override;
250 virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL
253 virtual css::awt::Rectangle SAL_CALL
getBounds()
override;
254 virtual css::awt::Point SAL_CALL
getLocation()
override;
256 virtual css::awt::Size SAL_CALL
getSize()
override;
257 virtual void SAL_CALL
grabFocus()
override;
264 const OUString& ServiceName )
override;
269 const css::lang::EventObject& Source )
override;
273 const css::uno::Reference< css::accessibility::XAccessibleEventListener >& xListener )
override;
275 const css::uno::Reference< css::accessibility::XAccessibleEventListener >& xListener )
override;
292 typedef std::map< ObjectIdentifier, css::uno::Reference< css::accessibility::XAccessible > >
ChildOIDMap;
Base class for all Chart Accessibility objects.
void KillAllChildren()
Removes all children from the internal lists and broadcasts child remove events.
virtual css::uno::Reference< css::accessibility::XAccessible > ImplGetAccessibleChildById(sal_Int64 i) const
Is called from getAccessibleChild().
virtual sal_Int64 ImplGetAccessibleChildCount() const
Is called from getAccessibleChildCount().
virtual void SAL_CALL removeAccessibleEventListener(const css::uno::Reference< css::accessibility::XAccessibleEventListener > &xListener) override
AccessibleBase(AccessibleElementInfo aAccInfo, bool bMayHaveChildren, bool bAlwaysTransparent)
void SetInfo(const AccessibleElementInfo &rNewInfo)
std::vector< css::uno::Reference< css::accessibility::XAccessible > > ChildListVectorType
type of the vector containing the accessible children
const AccessibleUniqueId & GetId() const
virtual css::awt::Point GetUpperLeftOnScreen() const
Retrieve the pixel coordinates of logical coordinates (0,0) of the current logic coordinate system.
Color getColor(eColorType eColType)
virtual sal_Int32 SAL_CALL getBackground() override
virtual css::awt::Rectangle SAL_CALL getBounds() override
virtual css::awt::Size SAL_CALL getSize() override
virtual OUString SAL_CALL getImplementationName() override
virtual css::awt::Point SAL_CALL getLocationOnScreen() override
virtual css::awt::Point SAL_CALL getLocation() override
void AddState(sal_Int64 aState)
Adds a state to the set.
virtual void SAL_CALL disposing(const css::lang::EventObject &Source) override
sal_Int64 m_nStateSet
for getAccessibleStateSet()
volatile bool m_bStateSetInitialized
denotes if the state-set is initialized.
ChildListVectorType m_aChildList
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild(sal_Int64 i) override
ChildOIDMap m_aChildOIDMap
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleParent() override
bool UpdateChildren()
has to be overridden by derived classes that support child elements.
::comphelper::AccessibleEventNotifier::TClientId m_nEventNotifierId
bool NotifyEvent(EventType eType, const AccessibleUniqueId &rId)
Events coming from the core have to be processed in this methods.
virtual void SAL_CALL grabFocus() override
AccessibleElementInfo m_aAccInfo
virtual ~AccessibleBase() override
virtual sal_Int64 SAL_CALL getAccessibleStateSet() override
virtual sal_Bool SAL_CALL containsPoint(const css::awt::Point &aPoint) override
void RemoveChildByOId(const ObjectIdentifier &rOId)
removes a child from the internal vector.
const bool m_bMayHaveChildren
bool m_bChildrenInitialized
virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet() override
virtual void SAL_CALL disposing() override
virtual css::lang::Locale SAL_CALL getLocale() override
bool CheckDisposeState(bool bThrowException=true) const
void BroadcastAccEvent(sal_Int16 nId, const css::uno::Any &rNew, const css::uno::Any &rOld) const
This method creates an AccessibleEventObject and sends it to all listeners that are currently listeni...
virtual sal_Int64 SAL_CALL getAccessibleChildCount() override
const bool m_bAlwaysTransparent
void RemoveState(sal_Int64 aState)
Removes a state from the set if the set contains the state, otherwise nothing is done.
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint(const css::awt::Point &aPoint) override
virtual sal_Int16 SAL_CALL getAccessibleRole() override
void AddChild(AccessibleBase *pChild)
adds a child to the end of the internal vector of children.
const AccessibleElementInfo & GetInfo() const
std::map< ObjectIdentifier, css::uno::Reference< css::accessibility::XAccessible > > ChildOIDMap
type of the hash containing a vector index for every AccessibleUniqueId of the object in the child li...
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual sal_Int64 SAL_CALL getAccessibleIndexInParent() override
virtual sal_Int32 SAL_CALL getForeground() override
virtual void SAL_CALL addAccessibleEventListener(const css::uno::Reference< css::accessibility::XAccessibleEventListener > &xListener) override
virtual bool ImplUpdateChildren()
Is called by UpdateChildren.
virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext() override
::cppu::WeakComponentImplHelper< css::accessibility::XAccessible, css::accessibility::XAccessibleContext, css::accessibility::XAccessibleComponent, css::accessibility::XAccessibleEventBroadcaster, css::lang::XServiceInfo, css::lang::XEventListener > AccessibleBase_Base
ObjectIdentifier AccessibleUniqueId
css::uno::WeakReference< css::awt::XWindow > m_xWindow
std::shared_ptr< ObjectHierarchy > m_spObjectHierarchy
AccessibleUniqueId m_aOID
css::uno::WeakReference< css::view::XSelectionSupplier > m_xSelectionSupplier
::accessibility::IAccessibleViewForwarder * m_pViewForwarder
AccessibleBase * m_pParent
unotools::WeakReference< ::chart::ChartModel > m_xChartDocument
unotools::WeakReference< ::chart::ChartView > m_xView