22#include <com/sun/star/accessibility/XAccessible.hpp>
23#include <com/sun/star/accessibility/XAccessibleComponent.hpp>
24#include <com/sun/star/accessibility/XAccessibleContext.hpp>
25#include <com/sun/star/accessibility/XAccessibleEventBroadcaster.hpp>
26#include <com/sun/star/uno/Reference.hxx>
27#include <com/sun/star/lang/XServiceInfo.hpp>
42typedef cppu::WeakComponentImplHelper<
43 css::accessibility::XAccessible,
44 css::accessibility::XAccessibleComponent,
45 css::accessibility::XAccessibleContext,
46 css::accessibility::XAccessibleEventBroadcaster,
47 css::lang::XServiceInfo,
48 css::accessibility::XAccessibleEventListener
59 css::uno::Reference<css::accessibility::XAccessible> xParent,
60 const sal_Int16 aRole);
63 virtual void SAL_CALL
disposing()
override;
81 virtual css::uno::Reference< css::accessibility::XAccessibleContext> SAL_CALL
87 const css::awt::Point& rPoint )
override;
89 virtual css::uno::Reference< css::accessibility::XAccessible >
91 const css::awt::Point& rPoint )
override;
93 virtual css::awt::Rectangle SAL_CALL
getBounds( )
override;
95 virtual css::awt::Point SAL_CALL
getLocation( )
override;
99 virtual css::awt::Size SAL_CALL
getSize( )
override;
101 virtual void SAL_CALL
grabFocus( )
override;
113 virtual css::uno::Reference< css::accessibility::XAccessible> SAL_CALL
117 virtual css::uno::Reference< css::accessibility::XAccessible> SAL_CALL
121 virtual sal_Int64 SAL_CALL
125 virtual sal_Int16 SAL_CALL
129 virtual OUString SAL_CALL
133 virtual OUString SAL_CALL
137 virtual css::uno::Reference<css::accessibility::XAccessibleRelationSet> SAL_CALL
146 virtual css::lang::Locale SAL_CALL
154 virtual void SAL_CALL
156 const css::uno::Reference<css::accessibility::XAccessibleEventListener>& xListener)
override;
159 virtual void SAL_CALL
161 const css::uno::Reference<css::accessibility::XAccessibleEventListener>& xListener)
override;
165 virtual void SAL_CALL
166 disposing(
const css::lang::EventObject& Source )
override;
168 virtual void SAL_CALL
170 const css::accessibility::AccessibleEventObject& aEvent )
override;
176 virtual OUString SAL_CALL
187 virtual css::uno::Sequence< OUString> SAL_CALL
216 CommitChange(
const css::accessibility::AccessibleEventObject& rEvent)
const;
224 void SetParent(
const css::uno::Reference<css::accessibility::XAccessible>& rParent) {
mxParent = rParent; }
233 bool IsDefunc()
const {
return rBHelper.bDisposed; }
239 css::uno::Reference<css::accessibility::XAccessible>
mxParent;
cppu::WeakComponentImplHelper< css::accessibility::XAccessible, css::accessibility::XAccessibleComponent, css::accessibility::XAccessibleContext, css::accessibility::XAccessibleEventBroadcaster, css::lang::XServiceInfo, css::accessibility::XAccessibleEventListener > ScAccessibleContextBaseWeakImpl
@descr This base class provides an implementation of the AccessibleContext service.
virtual tools::Rectangle GetBoundingBoxOnScreen() const
Return the object's current bounding box relative to the desktop.
virtual ~ScAccessibleContextBase() override
virtual css::awt::Point SAL_CALL getLocationOnScreen() override
virtual sal_Bool SAL_CALL containsPoint(const css::awt::Point &rPoint) override
===== XAccessibleComponent ============================================
OUString msDescription
Description of this object.
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint(const css::awt::Point &rPoint) override
void IsObjectValid() const
virtual css::awt::Size SAL_CALL getSize() override
virtual OUString SAL_CALL getAccessibleDescription() override
Return this object's description.
virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext() override
===== XAccessible =====================================================
virtual OUString createAccessibleDescription()
Return this object's description.
virtual sal_Bool SAL_CALL supportsService(const OUString &sServiceName) override
Return whether the specified service is supported by this class.
virtual void SAL_CALL disposing() override
void SetDescription(const OUString &rDesc)
Use this method to set initial Description without notification.
OUString msName
Name of this object.
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild(sal_Int64 nIndex) override
Return the specified child or NULL if index is invalid.
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Returns a list of all supported services.
virtual void SAL_CALL disposing(const css::lang::EventObject &Source) override
===== XAccessibleEventListener ========================================
virtual void SAL_CALL grabFocus() override
virtual void SAL_CALL addAccessibleEventListener(const css::uno::Reference< css::accessibility::XAccessibleEventListener > &xListener) override
===== XAccessibleEventBroadcaster =====================================
virtual OUString SAL_CALL getImplementationName() override
===== XServiceInfo ====================================================
virtual css::awt::Rectangle SAL_CALL getBounds() override
void CommitFocusLost() const
Calls all FocusListener to tell they that the focus is lost.
sal_uInt32 mnClientId
client id in the AccessibleEventNotifier queue
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
===== SfxListener =====================================================
virtual css::lang::Locale SAL_CALL getLocale() override
Return the parents locale or throw exception if this object has no parent yet/anymore.
virtual css::awt::Point SAL_CALL getLocation() override
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleParent() override
Return a reference to the parent.
void CommitFocusGained() const
Calls all FocusListener to tell they that the focus is gained.
css::uno::Reference< css::accessibility::XAccessible > mxParent
Reference to the parent object.
virtual sal_Int64 SAL_CALL getAccessibleIndexInParent() override
Return this objects index among the parents children.
virtual sal_Int32 SAL_CALL getBackground() override
virtual sal_Int64 SAL_CALL getAccessibleStateSet() override
Return the set of current states.
virtual sal_Int64 SAL_CALL getAccessibleChildCount() override
===== XAccessibleContext ==============================================
virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet() override
Return NULL to indicate that an empty relation set.
virtual OUString createAccessibleName()
Return the object's current name.
virtual sal_Int16 SAL_CALL getAccessibleRole() override
Return this object's role.
virtual tools::Rectangle GetBoundingBox() const
Return the object's current bounding box relative to the parent object.
ScAccessibleContextBase(css::uno::Reference< css::accessibility::XAccessible > xParent, const sal_Int16 aRole)
void CommitChange(const css::accessibility::AccessibleEventObject &rEvent) const
Calls all Listener to tell they the change.
virtual void SAL_CALL removeAccessibleEventListener(const css::uno::Reference< css::accessibility::XAccessibleEventListener > &xListener) override
void SetName(const OUString &rName)
Use this method to set initial Name without notification.
virtual sal_Int32 SAL_CALL getForeground() override
sal_Int16 maRole
This is the role of this object.
virtual OUString SAL_CALL getAccessibleName() override
Return the object's current name.
virtual void SAL_CALL notifyEvent(const css::accessibility::AccessibleEventObject &aEvent) override
void SetParent(const css::uno::Reference< css::accessibility::XAccessible > &rParent)