31#include <com/sun/star/accessibility/AccessibleRole.hpp>
32#include <com/sun/star/accessibility/AccessibleStateType.hpp>
33#include <com/sun/star/accessibility/AccessibleEventId.hpp>
46 const uno::Reference<XAccessible>& rxParent,
51 mpEditObj(pEditObj->
Clone()),
52 mpViewShell(pViewShell),
87 if (rHint.
GetId() == SfxHintId::ScAccVisAreaChanged)
92 AccessibleEventObject
aEvent;
93 aEvent.EventId = AccessibleEventId::VISIBLE_DATA_CHANGED;
94 aEvent.Source = uno::Reference< XAccessibleContext >(
this);
102 const awt::Point& rPoint )
104 uno::Reference<XAccessible> xRet;
131uno::Reference< XAccessible > SAL_CALL
144 sal_Int64 nStateSet = 0;
146 nStateSet |= AccessibleStateType::DEFUNC;
149 nStateSet |= AccessibleStateType::ENABLED;
150 nStateSet |= AccessibleStateType::MULTI_LINE;
152 nStateSet |= AccessibleStateType::SHOWING;
154 nStateSet |= AccessibleStateType::VISIBLE;
164 return "ScAccessiblePageHeaderArea";
167uno::Sequence< OUString> SAL_CALL
170 const css::uno::Sequence<OUString> vals {
"com.sun.star.sheet.AccessiblePageHeaderFooterAreasView" };
176uno::Sequence<sal_Int8> SAL_CALL
179 return css::uno::Sequence<sal_Int8>();
188 case SvxAdjust::Left :
191 case SvxAdjust::Right:
194 case SvxAdjust::Center:
198 OSL_FAIL(
"wrong adjustment found");
209 case SvxAdjust::Left :
212 case SvxAdjust::Right:
215 case SvxAdjust::Center:
219 OSL_FAIL(
"wrong adjustment found");
230 uno::Reference<XAccessibleContext> xContext =
mxParent->getAccessibleContext();
231 uno::Reference<XAccessibleComponent> xComp(xContext, uno::UNO_QUERY);
246 uno::Reference<XAccessibleContext> xContext =
mxParent->getAccessibleContext();
247 uno::Reference<XAccessibleComponent> xComp(xContext, uno::UNO_QUERY);
263 mpTextHelper.reset( new ::accessibility::AccessibleTextHelper(
264 std::make_unique<ScAccessibilityEditSource>(
265 std::make_unique<ScAccessibleHeaderTextData>(
virtual sal_Bool SAL_CALL containsPoint(const css::awt::Point &rPoint) override
===== XAccessibleComponent ============================================
void IsObjectValid() const
virtual void SAL_CALL disposing() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Returns a list of all supported services.
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
===== SfxListener =====================================================
css::uno::Reference< css::accessibility::XAccessible > mxParent
Reference to the parent object.
void CommitChange(const css::accessibility::AccessibleEventObject &rEvent) const
Calls all Listener to tell they the change.
void AddAccessibilityObject(SfxListener &rObject)
void RemoveAccessibilityObject(SfxListener &rObject)
inline ::tools::Rectangle VCLRectangle(const css::awt::Rectangle &rAWTRect)
inline ::Point VCLPoint(const css::awt::Point &rAWTPoint)
css::uno::Sequence< T > concatSequences(const css::uno::Sequence< T > &rS1, const Ss &... rSn)
css::uno::Reference< css::animations::XAnimationNode > Clone(const css::uno::Reference< css::animations::XAnimationNode > &xSourceNode, const SdPage *pSource=nullptr, const SdPage *pTarget=nullptr)
OUString ScResId(TranslateId aId)
constexpr OUStringLiteral STR_ACC_RIGHTAREA_DESCR
constexpr OUStringLiteral STR_ACC_LEFTAREA_DESCR
constexpr OUStringLiteral STR_ACC_CENTERAREA_DESCR