29#include <com/sun/star/awt/XVclWindowPeer.hpp>
30#include <com/sun/star/accessibility/AccessibleEventId.hpp>
31#include <com/sun/star/accessibility/AccessibleRole.hpp>
32#include <com/sun/star/accessibility/AccessibleStateType.hpp>
33#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
54 :pDlgEdObj( _pDlgEdObj )
136 NotifyAccessibleEvent( AccessibleEventId::SELECTION_CHANGED,
Any(),
Any() );
181 const OUString& aLayerName = pSdrLayer->
GetName();
191 aRect.
Move( aOrg.
X(), aOrg.
Y() );
198 if ( aParentRect.
Overlaps( aRect ) )
230 Any aOldValue, aNewValue;
231 aNewValue <<= xChild;
232 NotifyAccessibleEvent( AccessibleEventId::CHILD, aOldValue, aNewValue );
255 Any aOldValue, aNewValue;
256 aOldValue <<= xChild;
257 NotifyAccessibleEvent( AccessibleEventId::CHILD, aOldValue, aNewValue );
260 if ( xComponent.is() )
261 xComponent->dispose();
302 DBG_ASSERT(rEvent.GetWindow(),
"AccessibleDialogWindow::WindowEventListener: no window!");
303 if (!rEvent.GetWindow()->IsAccessibilityEventsSuppressed() || rEvent.GetId() == VclEventId::ObjectDying)
304 ProcessWindowEvent(rEvent);
310 Any aOldValue, aNewValue;
312 switch ( rVclWindowEvent.
GetId() )
314 case VclEventId::WindowEnabled:
316 aNewValue <<= AccessibleStateType::ENABLED;
317 NotifyAccessibleEvent( AccessibleEventId::STATE_CHANGED, aOldValue, aNewValue );
320 case VclEventId::WindowDisabled:
322 aOldValue <<= AccessibleStateType::ENABLED;
323 NotifyAccessibleEvent( AccessibleEventId::STATE_CHANGED, aOldValue, aNewValue );
326 case VclEventId::WindowActivate:
328 aNewValue <<= AccessibleStateType::ACTIVE;
329 NotifyAccessibleEvent( AccessibleEventId::STATE_CHANGED, aOldValue, aNewValue );
332 case VclEventId::WindowDeactivate:
334 aOldValue <<= AccessibleStateType::ACTIVE;
335 NotifyAccessibleEvent( AccessibleEventId::STATE_CHANGED, aOldValue, aNewValue );
338 case VclEventId::WindowGetFocus:
340 aNewValue <<= AccessibleStateType::FOCUSED;
341 NotifyAccessibleEvent( AccessibleEventId::STATE_CHANGED, aOldValue, aNewValue );
344 case VclEventId::WindowLoseFocus:
346 aOldValue <<= AccessibleStateType::FOCUSED;
347 NotifyAccessibleEvent( AccessibleEventId::STATE_CHANGED, aOldValue, aNewValue );
350 case VclEventId::WindowShow:
352 aNewValue <<= AccessibleStateType::SHOWING;
353 NotifyAccessibleEvent( AccessibleEventId::STATE_CHANGED, aOldValue, aNewValue );
356 case VclEventId::WindowHide:
358 aOldValue <<= AccessibleStateType::SHOWING;
359 NotifyAccessibleEvent( AccessibleEventId::STATE_CHANGED, aOldValue, aNewValue );
362 case VclEventId::WindowResize:
364 NotifyAccessibleEvent( AccessibleEventId::BOUNDRECT_CHANGED, aOldValue, aNewValue );
369 case VclEventId::ObjectDying:
384 if ( xComponent.is() )
385 xComponent->dispose();
405 rStateSet |= AccessibleStateType::ENABLED;
407 rStateSet |= AccessibleStateType::FOCUSABLE;
410 rStateSet |= AccessibleStateType::FOCUSED;
412 rStateSet |= AccessibleStateType::VISIBLE;
415 rStateSet |= AccessibleStateType::SHOWING;
417 rStateSet |= AccessibleStateType::OPAQUE;
419 rStateSet |= AccessibleStateType::RESIZABLE;
428 awt::Rectangle aBounds;
441 if (
SdrHint const* pSdrHint =
dynamic_cast<SdrHint const*
>(&rHint))
443 switch ( pSdrHint->GetKind() )
445 case SdrHintKind::ObjectInserted:
447 if (
DlgEdObj const* pDlgEdObj =
dynamic_cast<DlgEdObj const*
>(pSdrHint->GetObject()))
455 case SdrHintKind::ObjectRemoved:
457 if (
DlgEdObj const* pDlgEdObj =
dynamic_cast<DlgEdObj const*
>(pSdrHint->GetObject()))
466 switch (pDlgEdHint->GetKind())
476 if (
DlgEdObj* pDlgEdObj = pDlgEdHint->GetObject())
502 OAccessibleExtendedComponentHelper::disposing();
518 if ( xComponent.is() )
519 xComponent->dispose();
527 return "com.sun.star.comp.basctl.AccessibleWindow";
537 return {
"com.sun.star.awt.AccessibleWindow" };
560 throw IndexOutOfBoundsException();
602 sal_Int64 nIndexInParent = -1;
620 return nIndexInParent;
628 return AccessibleRole::PANEL;
636 OUString sDescription;
668 sal_Int64 nStateSet = 0;
670 if ( !rBHelper.bDisposed && !rBHelper.bInDispose )
676 nStateSet |= AccessibleStateType::DEFUNC;
751 return sal_Int32(nColor);
768 return sal_Int32(nColor);
791 pVCLXFont->Init( *xDev, aFont );
828 throw IndexOutOfBoundsException();
836 rView.
MarkObj(pDlgEdObj, pPgView);
847 throw IndexOutOfBoundsException();
895 throw IndexOutOfBoundsException();
917 throw IndexOutOfBoundsException();
926 rView.
MarkObj( pDlgEdObj, pPgView,
true );
const LanguageTag & GetLanguageTag() const
static const AllSettings & GetSettings()
const css::lang::Locale & getLocale(bool bResolveSystem=true) const
constexpr tools::Long Y() const
constexpr tools::Long X() const
virtual const tools::Rectangle & GetSnapRect() const override
SdrLayer * GetLayerPerID(SdrLayerID nID)
const OUString & GetName() const
bool MarkObj(const Point &rPnt, short nTol=-2, bool bToggle=false, bool bDeep=false)
SdrObject * GetObj(size_t nNum) const
size_t GetObjCount() const
sal_uInt32 GetOrdNum() const
virtual SdrLayerID GetLayer() const
bool IsLayerVisible(const OUString &rName) const
SdrPageView * GetSdrPageView() const
void StartListening(SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected)
void EndListening(SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false)
css::awt::Rectangle GetBounds() const
void SetBounds(const css::awt::Rectangle &aBounds)
void SetFocused(bool bFocused)
void SetSelected(bool bSelected)
bool operator==(const ChildDescriptor &rDesc)
bool operator<(const ChildDescriptor &rDesc) const
ChildDescriptor(DlgEdObj *_pDlgEdObj)
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint(const css::awt::Point &aPoint) override
virtual void SAL_CALL selectAllAccessibleChildren() override
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getSelectedAccessibleChild(sal_Int64 nSelectedChildIndex) override
virtual sal_Bool SAL_CALL supportsService(const OUString &rServiceName) override
DlgEdModel * m_pDlgEdModel
virtual sal_Bool SAL_CALL isAccessibleChildSelected(sal_Int64 nChildIndex) override
virtual sal_Int16 SAL_CALL getAccessibleRole() override
virtual OUString SAL_CALL getAccessibleName() override
virtual void SAL_CALL selectAccessibleChild(sal_Int64 nChildIndex) override
virtual sal_Int32 SAL_CALL getForeground() override
virtual OUString SAL_CALL getToolTipText() override
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild(sal_Int64 i) override
void RemoveChild(const ChildDescriptor &rDesc)
bool IsChildVisible(const ChildDescriptor &rDesc)
AccessibleDialogWindow(basctl::DialogWindow *)
virtual OUString SAL_CALL getImplementationName() override
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
VclPtr< basctl::DialogWindow > m_pDialogWindow
void FillAccessibleStateSet(sal_Int64 &rStateSet)
virtual void SAL_CALL disposing() override
virtual void SAL_CALL deselectAccessibleChild(sal_Int64 nChildIndex) override
virtual css::awt::Rectangle implGetBounds() override
virtual sal_Int64 SAL_CALL getAccessibleIndexInParent() override
virtual sal_Int64 SAL_CALL getAccessibleStateSet() override
virtual css::lang::Locale SAL_CALL getLocale() override
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleParent() override
void UpdateChild(const ChildDescriptor &rDesc)
virtual void SAL_CALL clearAccessibleSelection() override
virtual css::uno::Reference< css::awt::XFont > SAL_CALL getFont() override
void ProcessWindowEvent(const VclWindowEvent &rVclWindowEvent)
virtual OUString SAL_CALL getTitledBorderText() override
virtual sal_Int32 SAL_CALL getBackground() override
void InsertChild(const ChildDescriptor &rDesc)
virtual void SAL_CALL grabFocus() override
virtual ~AccessibleDialogWindow() override
virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet() override
AccessibleChildren m_aAccessibleChildren
virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext() override
virtual OUString SAL_CALL getAccessibleDescription() override
virtual sal_Int64 SAL_CALL getAccessibleChildCount() override
virtual sal_Int64 SAL_CALL getSelectedAccessibleChildCount() override
const Color & GetColor() const
vcl::Window * GetAccessibleChildWindow(sal_uInt16 n)
sal_uInt16 GetAccessibleChildWindowCount()
css::uno::Reference< css::accessibility::XAccessible > GetAccessible(bool bCreate=true)
css::awt::Rectangle AWTRectangle(const ::tools::Rectangle &rVCLRect)
inline ::tools::Rectangle VCLRectangle(const css::awt::Rectangle &rAWTRect)
inline ::Point VCLPoint(const css::awt::Point &rAWTPoint)
#define DBG_ASSERT(sCon, aError)
#define LINK(Instance, Class, Member)
IMPL_LINK(AccessibleDialogWindow, WindowEventListener, VclWindowEvent &, rEvent, void)
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
HashMap_OWString_Interface aMap