21#include <com/sun/star/accessibility/AccessibleStateType.hpp>
22#include <com/sun/star/accessibility/AccessibleRole.hpp>
23#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
34using ::com::sun::star::lang::IndexOutOfBoundsException;
35using ::com::sun::star::uno::Reference;
36using ::com::sun::star::uno::RuntimeException;
42 : mpFrameSel(&rFrameSel)
68 throw IndexOutOfBoundsException();
86 return AccessibleRole::OPTION_PANE;
113 sal_Int64 nStateSet = 0;
116 nStateSet |= AccessibleStateType::DEFUNC;
121 AccessibleStateType::EDITABLE |
122 AccessibleStateType::FOCUSABLE |
123 AccessibleStateType::MULTI_SELECTABLE |
124 AccessibleStateType::SELECTABLE |
125 AccessibleStateType::SHOWING |
126 AccessibleStateType::VISIBLE |
127 AccessibleStateType::OPAQUE;
130 nStateSet |= AccessibleStateType::ENABLED;
131 nStateSet |= AccessibleStateType::SENSITIVE;
136 nStateSet |= AccessibleStateType::ACTIVE;
137 nStateSet |= AccessibleStateType::FOCUSED;
138 nStateSet |= AccessibleStateType::SELECTED;
145 const css::awt::Point& aPt )
183 css::awt::Rectangle aRet;
188 aRet.X = aOutPos.
X();
189 aRet.Y = aOutPos.
Y();
190 aRet.Width = aOutSize.
Width();
191 aRet.Height = aOutSize.
Height();
201 css::awt::Point aScreenLoc(0, 0);
205 Point aPos = pDrawingArea->get_accessible_location_on_screen();
206 aScreenLoc.
X = aPos.
X();
207 aScreenLoc.Y = aPos.
Y();
225 : mpFrameSel(&rFrameSel)
261 return AccessibleRole::CHECK_BOX;
289 sal_Int64 nStateSet = 0;
292 nStateSet |= AccessibleStateType::DEFUNC;
296 AccessibleStateType::EDITABLE |
297 AccessibleStateType::FOCUSABLE |
298 AccessibleStateType::MULTI_SELECTABLE |
299 AccessibleStateType::SELECTABLE |
300 AccessibleStateType::SHOWING |
301 AccessibleStateType::VISIBLE |
302 AccessibleStateType::OPAQUE;
305 nStateSet |= AccessibleStateType::ENABLED;
306 nStateSet |= AccessibleStateType::SENSITIVE;
311 nStateSet |= AccessibleStateType::ACTIVE;
312 nStateSet |= AccessibleStateType::FOCUSED;
313 nStateSet |= AccessibleStateType::SELECTED;
320 const css::awt::Point& aPt )
335 css::awt::Rectangle aRet;
338 aRet.Width = aSz.
Width();
339 aRet.Height = aSz.
Height();
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 css::uno::Reference< css::accessibility::XAccessible > CreateAccessible() override
bool IsBorderSelected(FrameBorderType eBorder) const
Returns true, if the specified frame border is selected.
tools::Rectangle GetClickBoundRect(FrameBorderType eBorder) const
Returns the bounding rectangle of the specified frame border (if enabled).
a11yrelationset get_accessible_relation_set() const
sal_Int32 GetEnabledBorderCount() const
Returns the number of enabled frame borders.
css::uno::Reference< css::accessibility::XAccessible > getAccessibleParent() const
rtl::Reference< a11y::AccFrameSelectorChild > GetChildAccessible(FrameBorderType eBorder)
Returns the accessibility child object of the specified frame border (if enabled).
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint(const css::awt::Point &aPoint) override
virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet() override
virtual ~AccFrameSelectorChild() override
virtual sal_Int16 SAL_CALL getAccessibleRole() override
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild(sal_Int64 i) override
virtual OUString SAL_CALL getAccessibleName() override
virtual css::awt::Rectangle implGetBounds() override
implements the calculation of the bounding rectangle
virtual void SAL_CALL grabFocus() override
virtual sal_Int64 SAL_CALL getAccessibleStateSet() override
FrameSelector * mpFrameSel
virtual sal_Int64 SAL_CALL getAccessibleChildCount() override
virtual OUString SAL_CALL getAccessibleDescription() override
AccFrameSelectorChild(FrameSelector &rFrameSel, FrameBorderType eBorder)
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleParent() override
virtual sal_Int32 SAL_CALL getForeground() override
virtual sal_Int32 SAL_CALL getBackground() override
virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext() override
virtual ~AccFrameSelector() override
virtual sal_Int32 SAL_CALL getBackground() override
virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext() override
virtual sal_Int64 SAL_CALL getAccessibleChildCount() override
virtual sal_Int64 SAL_CALL getAccessibleStateSet() override
virtual void SAL_CALL grabFocus() override
AccFrameSelector(FrameSelector &rFrameSel)
FrameSelector * mpFrameSel
virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet() override
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild(sal_Int64 i) override
virtual css::awt::Rectangle implGetBounds() override
implements the calculation of the bounding rectangle
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint(const css::awt::Point &aPoint) override
virtual OUString SAL_CALL getAccessibleName() override
virtual sal_Int32 SAL_CALL getForeground() override
virtual OUString SAL_CALL getAccessibleDescription() override
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleParent() override
virtual sal_Int16 SAL_CALL getAccessibleRole() override
virtual css::awt::Point SAL_CALL getLocationOnScreen() override
OUString SvxResId(TranslateId aId)
constexpr OUStringLiteral first
FrameBorderType
Enumerates all borders a frame selection control can contain.