20#include <com/sun/star/accessibility/AccessibleRole.hpp>
21#include <com/sun/star/accessibility/AccessibleEventId.hpp>
22#include <com/sun/star/accessibility/AccessibleStateType.hpp>
23#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
28#include <osl/mutex.hxx>
36using namespace ::
cppu;
43 : mpPixelCtl(pControl)
63 ::osl::MutexGuard aGuard(
m_aMutex );
65 throw lang::IndexOutOfBoundsException();
66 Reference< XAccessible > xChild;
74 ::osl::MutexGuard aGuard(
m_aMutex );
77 return uno::Reference<css::accessibility::XAccessible>();
82 return AccessibleRole::LIST;
88 ::osl::MutexGuard aGuard(
m_aMutex );
94 ::osl::MutexGuard aGuard(
m_aMutex );
102 return uno::Reference<css::accessibility::XAccessibleRelationSet>();
107 ::osl::MutexGuard aGuard(
m_aMutex );
108 sal_Int64 nStateSet = 0;
113 AccessibleStateType::FOCUSABLE |
114 AccessibleStateType::SELECTABLE |
115 AccessibleStateType::SHOWING |
116 AccessibleStateType::VISIBLE |
117 AccessibleStateType::OPAQUE;
119 nStateSet |= AccessibleStateType::ENABLED;
121 nStateSet |= AccessibleStateType::FOCUSED;
122 nStateSet |= AccessibleStateType::MANAGES_DESCENDANTS;
129 const awt::Point& rPoint)
131 ::osl::MutexGuard aGuard(
m_aMutex );
133 Reference< XAccessible > xRet;
146 ::osl::MutexGuard aGuard(
m_aMutex );
155 aRet.X = aOutPos.
X();
156 aRet.Y = aOutPos.
Y();
157 aRet.Width = aOutSize.
Width();
158 aRet.Height = aOutSize.
Height();
166 ::osl::MutexGuard aGuard(
m_aMutex );
173 ::osl::MutexGuard aGuard(
m_aMutex );
182 ::osl::MutexGuard aGuard(
m_aMutex );
191 ::osl::MutexGuard aGuard(
m_aMutex );
194 throw lang::IndexOutOfBoundsException();
205 ::osl::MutexGuard aGuard(
m_aMutex );
216 OAccessibleSelectionHelper::disposing();
231 if (pChild->getAccessibleIndexInParent() ==
nIndex )
249 Any aNewValue,aOldValue;
250 aNewValue<<= xNewChild;
251 NotifyAccessibleEvent(AccessibleEventId::ACTIVE_DESCENDANT_CHANGED, aOldValue, aNewValue);
284 aChecked <<= AccessibleStateType::CHECKED;
288 NotifyAccessibleEvent(AccessibleEventId::STATE_CHANGED,
Any(), aChecked);
292 NotifyAccessibleEvent(AccessibleEventId::STATE_CHANGED, aChecked,
Any());
299 aSelected <<= AccessibleStateType::SELECTED;
303 NotifyAccessibleEvent(AccessibleEventId::STATE_CHANGED,
Any(), aSelected);
307 NotifyAccessibleEvent(AccessibleEventId::STATE_CHANGED, aSelected,
Any());
314 : mrParentWindow( rWindow )
316 , m_bPixelColorOrBG(bPixelColorOrBG)
317 , maBoundingBox( rBoundingBox )
318 , mnIndexInParent( nIndexInParent )
335 return uno::Reference< XAccessible >();
344 ::osl::MutexGuard aGuard(
m_aMutex );
350 ::osl::MutexGuard aGuard(
m_aMutex );
362 throw lang::IndexOutOfBoundsException();
372 return AccessibleRole::CHECK_BOX;
377 ::osl::MutexGuard aGuard(
m_aMutex );
384 ::osl::MutexGuard aGuard(
m_aMutex );
393 return uno::Reference< XAccessibleRelationSet >();
398 ::osl::MutexGuard aGuard(
m_aMutex );
399 sal_Int64 nStateSet = 0;
401 if (!rBHelper.bDisposed)
403 nStateSet |= AccessibleStateType::TRANSIENT;
404 nStateSet |= AccessibleStateType::ENABLED;
405 nStateSet |= AccessibleStateType::OPAQUE;
406 nStateSet |= AccessibleStateType::SELECTABLE;
407 nStateSet |= AccessibleStateType::SHOWING;
408 nStateSet |= AccessibleStateType::VISIBLE;
413 nStateSet |= AccessibleStateType::SELECTED;
417 nStateSet |= AccessibleStateType::CHECKED;
421 nStateSet |= AccessibleStateType::DEFUNC;
428 OAccessibleComponentHelper::disposing();
444 + OUString::number(nXIndex)
446 + OUString::number(nYIndex)
unotools::WeakReference< AnimationNode > mxParent
const StyleSettings & GetStyleSettings() const
static const AllSettings & GetSettings()
constexpr tools::Long Y() const
constexpr tools::Long X() const
constexpr tools::Long Height() const
constexpr tools::Long Width() const
const Color & GetLabelTextColor() const
const Color & GetDialogColor() const
virtual sal_Int64 SAL_CALL getAccessibleStateSet() override
virtual void SAL_CALL grabFocus() override
tools::Long mnIndexInParent
index of child in parent
SvxPixelCtl & mrParentWindow
void SelectChild(bool bSelect)
rtl::Reference< SvxPixelCtlAccessible > mxParent
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint(const css::awt::Point &aPoint) override
virtual OUString SAL_CALL getAccessibleDescription() override
SvxPixelCtlAccessibleChild(SvxPixelCtl &rWindow, bool bPixelColorOrBG, const tools::Rectangle &rBounds, rtl::Reference< SvxPixelCtlAccessible > xParent, tools::Long nIndexInParent)
virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext() override
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild(sal_Int64 i) override
virtual void SAL_CALL disposing() override
void ChangePixelColorOrBG(bool bPixelColorOrBG)
virtual sal_Int32 SAL_CALL getBackground() override
virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet() override
Return empty uno::Reference to indicate that the relation set is not supported.
virtual sal_Int32 SAL_CALL getForeground() override
tools::Rectangle maBoundingBox
virtual OUString SAL_CALL getAccessibleName() override
virtual sal_Int64 SAL_CALL getAccessibleChildCount() override
virtual ~SvxPixelCtlAccessibleChild() override
virtual css::awt::Rectangle implGetBounds() override
implements the calculation of the bounding rectangle
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleParent() override
virtual sal_Int16 SAL_CALL getAccessibleRole() override
virtual sal_Int32 SAL_CALL getForeground() override
virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext() override
virtual sal_Int32 SAL_CALL getBackground() override
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint(const css::awt::Point &aPoint) override
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleParent() override
virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet() override
virtual sal_Int64 SAL_CALL getAccessibleStateSet() override
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild(sal_Int64 i) override
virtual void SAL_CALL grabFocus() override
virtual OUString SAL_CALL getAccessibleDescription() override
virtual void SAL_CALL disposing() override
virtual css::awt::Rectangle implGetBounds() override
SvxPixelCtlAccessible(SvxPixelCtl *pPixelCtl)
virtual bool implIsSelected(sal_Int64 nAccessibleChildIndex) override
virtual sal_Int16 SAL_CALL getAccessibleRole() override
virtual void implSelect(sal_Int64 nAccessibleChildIndex, bool bSelect) override
css::uno::Reference< css::accessibility::XAccessible > CreateChild(tools::Long nIndex, Point mPoint)
css::uno::Reference< css::accessibility::XAccessible > m_xCurChild
virtual sal_Int64 SAL_CALL getAccessibleChildCount() override
void NotifyChild(tools::Long nIndex, bool bSelect, bool bCheck)
virtual ~SvxPixelCtlAccessible() override
virtual OUString SAL_CALL getAccessibleName() override
css::uno::Reference< css::accessibility::XAccessible > getAccessibleParent() const
Point IndexToPoint(tools::Long nIndex) const
a11yrelationset get_accessible_relation_set() const
sal_uInt8 GetBitmapPixel(const sal_uInt16 nPixelNumber) const
tools::Long ShowPosition(const Point &pt)
tools::Long GetWidth() const
static sal_uInt16 GetLineCount()
tools::Long GetHeight() const
tools::Long PointToIndex(const Point &pt) const
tools::Long GetFocusPosIndex() const
static tools::Long GetSquares()
css::awt::Rectangle AWTRectangle(const ::tools::Rectangle &rVCLRect)
#define DBG_ASSERT(sCon, aError)