24#include <com/sun/star/accessibility/XAccessibleComponent.hpp>
25#include <com/sun/star/accessibility/XAccessibleContext3.hpp>
26#include <com/sun/star/accessibility/XAccessibleEventBroadcaster.hpp>
27#include <com/sun/star/lang/XServiceInfo.hpp>
39 class AccessibleShape;
45 public ::cppu::WeakImplHelper<
46 css::accessibility::XAccessible,
47 css::accessibility::XAccessibleContext,
48 css::accessibility::XAccessibleContext3,
49 css::accessibility::XAccessibleComponent,
50 css::accessibility::XAccessibleEventBroadcaster,
51 css::lang::XServiceInfo
59#if OSL_DEBUG_LEVEL > 0
71 css::uno::WeakReference <
78 std::weak_ptr<SwAccessibleMap>
m_wMap;
107 css::uno::Reference< css::accessibility::XAccessible>
GetWeakParent()
const;
157 bool bRecursive,
bool bCanSkipInvisible);
181 virtual void GetStates( sal_Int64& rStateSet );
201 css::uno::Reference< css::accessibility::XAccessible>
206 sal_Int16 nRole,
const SwFrame *pFrame );
211 virtual css::uno::Reference< css::accessibility::XAccessibleContext> SAL_CALL
220 virtual css::uno::Reference< css::accessibility::XAccessible> SAL_CALL
223 virtual css::uno::Sequence<css::uno::Reference< css::accessibility::XAccessible>> SAL_CALL
227 virtual css::uno::Reference< css::accessibility::XAccessible> SAL_CALL
231 virtual sal_Int64 SAL_CALL
235 virtual sal_Int16 SAL_CALL
241 virtual OUString SAL_CALL
245 virtual css::uno::Reference<
246 css::accessibility::XAccessibleRelationSet> SAL_CALL
254 virtual css::lang::Locale SAL_CALL
260 const css::uno::Reference< css::accessibility::XAccessibleEventListener >& xListener )
override;
262 const css::uno::Reference< css::accessibility::XAccessibleEventListener >& xListener )
override;
266 const css::awt::Point& aPoint )
override;
269 const css::awt::Point& aPoint )
override;
271 virtual css::awt::Rectangle SAL_CALL
getBounds()
override;
273 virtual css::awt::Point SAL_CALL
getLocation()
override;
277 virtual css::awt::Size SAL_CALL
getSize()
override;
279 virtual void SAL_CALL
grabFocus()
override;
295 virtual void Dispose(
bool bRecursive,
bool bCanSkipInvisible =
true);
341 return Select( &rPaM,
nullptr,
false );
345 return Select(
nullptr, pObj, bAdd );
355 const OUString *pArg1 =
nullptr,
356 const OUString *pArg2 =
nullptr);
constexpr OUStringLiteral sAccessibleServiceName
constexpr OUStringLiteral sServiceName
virtual void Dispose(bool bRecursive, bool bCanSkipInvisible=true)
void GetAdditionalAccessibleChildren(std::vector< vcl::Window * > *pChildren)
#i88070# - get all additional accessible children
virtual sal_Int64 SAL_CALL getAccessibleChildCount() override
virtual ~SwAccessibleContext() override
bool HasAdditionalAccessibleChildren()
const SwAccessibleMap * GetMap() const
bool m_isRegisteredAtAccessibleMap
virtual css::uno::Sequence< css::uno::Reference< css::accessibility::XAccessible > > SAL_CALL getAccessibleChildren() override
const OUString & GetName() const
void RemoveFrameFromAccessibleMap()
virtual sal_Bool SAL_CALL supportsService(const OUString &sServiceName) override
Return whether the specified service is supported by this class.
virtual css::awt::Point SAL_CALL getLocation() override
void FireStateChangedEvent(sal_Int64 nState, bool bNewState)
void FireVisibleDataEvent()
virtual sal_Bool SAL_CALL containsPoint(const css::awt::Point &aPoint) override
virtual OUString SAL_CALL getAccessibleName() override
void ChildrenScrolled(const SwFrame *pFrame, const SwRect &rOldVisArea)
css::uno::WeakReference< css::accessibility::XAccessible > m_xWeakParent
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint(const css::awt::Point &aPoint) override
void DisposeShape(const SdrObject *pObj, ::accessibility::AccessibleShape *pAccImpl)
bool Select(SdrObject *pObj, bool bAdd)
void SetName(const OUString &rName)
virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet() override
virtual sal_Int16 SAL_CALL getAccessibleRole() override
css::awt::Rectangle getBoundsImpl(bool bRelative)
Get bounding box.
const SwViewShell * GetShell() const
sal_Int16 GetRole() const
virtual void InvalidateCursorPos_()
virtual void InvalidateChildPosOrSize(const sw::access::SwAccessibleChild &rFrameOrObj, const SwRect &rFrame)
void FireAccessibleEvent(css::accessibility::AccessibleEventObject &rEvent)
void InvalidateRelation(sal_uInt16 nType)
void ScrolledInShape(::accessibility::AccessibleShape *pAccImpl)
vcl::Window * GetAdditionalAccessibleChild(const sal_Int32 nIndex)
#i88070# - get additional accessible child by index
virtual void GetStates(sal_Int64 &rStateSet)
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleParent() override
virtual sal_Int32 SAL_CALL getBackground() override
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::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext() override
std::weak_ptr< SwAccessibleMap > m_wMap
note: the m_pMap is guaranteed to be valid until we hit the dtor ~SwAccessibleContext,...
void ScrolledWithin(const SwRect &rOldVisArea)
void DisposeChildren(const SwFrame *pFrame, bool bRecursive, bool bCanSkipInvisible)
vcl::Window * GetWindow()
virtual void InvalidateFocus_()
virtual sal_Int32 SAL_CALL getForeground() override
virtual void DisposeChild(const sw::access::SwAccessibleChild &rFrameOrObj, bool bRecursive, bool bCanSkipInvisible)
void InvalidateCursorPos()
virtual void InvalidateContent_(bool bVisibleDataFired)
virtual void SAL_CALL grabFocus() override
SwAccessibleMap * GetMap()
virtual sal_Int64 SAL_CALL getAccessibleIndexInParent() override
void NotRegisteredAtAccessibleMap()
virtual void SAL_CALL removeAccessibleEventListener(const css::uno::Reference< css::accessibility::XAccessibleEventListener > &xListener) override
virtual sal_Int64 SAL_CALL getAccessibleStateSet() override
bool Select(SwPaM *pPaM, SdrObject *pObj, bool bAdd)
virtual css::awt::Rectangle SAL_CALL getBounds() override
css::uno::Reference< css::accessibility::XAccessible > GetWeakParent() const
void SetParent(SwAccessibleContext *pParent)
SwAccessibleContext(std::shared_ptr< SwAccessibleMap > const &pMap, sal_Int16 nRole, const SwFrame *pFrame)
virtual void SAL_CALL addAccessibleEventListener(const css::uno::Reference< css::accessibility::XAccessibleEventListener > &xListener) override
SwCursorShell * GetCursorShell()
convenience method to get SwCursorShell through accessibility map
virtual css::awt::Size SAL_CALL getSize() override
void Scrolled(const SwRect &rOldVisArea)
bool IsSelectedInDoc() const
static OUString GetResource(TranslateId pResId, const OUString *pArg1=nullptr, const OUString *pArg2=nullptr)
virtual bool SetSelectedState(bool bSelected)
void InvalidateTextSelection()
#i27301# - text selection has changed
SwViewShell * GetShell()
convenience method to get the SwViewShell through accessibility map
void ScrolledOut(const SwRect &rOldVisArea)
void InvalidateChildrenStates(const SwFrame *_pFrame, AccessibleStates _nStates)
void InvalidateAttr()
#i88069# - attributes has changed
virtual void InvalidatePosOrSize(const SwRect &rFrame)
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild(sal_Int64 nIndex) override
void InvalidateStates(AccessibleStates _nStates)
virtual css::awt::Point SAL_CALL getLocationOnScreen() override
css::uno::Reference< css::accessibility::XAccessible > getAccessibleParentImpl()
SwViewShell * GetShell() const
Base class of the Writer layout elements.
PaM is Point and Mark: a selection of the document model.
Of course Writer needs its own rectangles.