22#include <com/sun/star/accessibility/XAccessibleSelection.hpp>
45 const css::awt::Point& aPoint)
48 return (aPoint.X >= 0)
49 && (aPoint.X < aSize.Width)
51 && (aPoint.Y < aSize.Height);
55uno::Reference<XAccessible > SAL_CALL
59 return uno::Reference<XAccessible>();
65 return awt::Rectangle();
72 return awt::Point (aBBox.X, aBBox.Y);
85 return awt::Size (aBBox.Width, aBBox.Height);
91 uno::Reference<XAccessibleContext> xContext (
this, uno::UNO_QUERY);
92 uno::Reference<XAccessibleSelection> xSelection (
93 xContext->getAccessibleParent(), uno::UNO_QUERY);
97 xSelection->clearAccessibleSelection();
98 xSelection->selectAccessibleChild (xContext->getAccessibleIndexInParent());
117css::uno::Reference< css::awt::XFont > SAL_CALL
120 return uno::Reference<awt::XFont>();
137uno::Sequence<uno::Type>
140 static const uno::Sequence aTypeList {
virtual OUString SAL_CALL getToolTipText() override
virtual css::awt::Point SAL_CALL getLocation() override
The default implementation uses the result of <member>getBounds</member> to determine the location.
virtual void SAL_CALL grabFocus() override
The default implementation does nothing.
virtual ~AccessibleComponentBase()
virtual css::awt::Rectangle SAL_CALL getBounds() override
The default implementation returns an empty rectangle.
virtual OUString SAL_CALL getTitledBorderText() override
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes()
virtual sal_Int32 SAL_CALL getForeground() override
Returns black as the default foreground color.
virtual css::uno::Reference< css::awt::XFont > SAL_CALL getFont() override
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint(const css::awt::Point &aPoint) override
The default implementation returns an empty reference.
virtual sal_Int32 SAL_CALL getBackground() override
Returns white as the default background color.
virtual css::awt::Point SAL_CALL getLocationOnScreen() override
The default implementation returns an empty position, i.e.
AccessibleComponentBase()
virtual sal_Bool SAL_CALL containsPoint(const css::awt::Point &aPoint) override
The default implementation uses the result of <member>getBounds</member> to determine whether the giv...
virtual css::awt::Size SAL_CALL getSize() override
The default implementation uses the result of <member>getBounds</member> to determine the size.
css::uno::Type const & get()
constexpr ::Color COL_WHITE(0xFF, 0xFF, 0xFF)
constexpr ::Color COL_BLACK(0x00, 0x00, 0x00)