29#include <document.hxx>
35#include <com/sun/star/accessibility/AccessibleStateType.hpp>
48 mpViewShell( pViewShell )
81 if (rHint.
GetId() == SfxHintId::ScAccVisAreaChanged)
94 uno::Reference<XAccessible> xRet;
116 if (xAccessibleComponent.is())
117 xAccessibleComponent->grabFocus();
145 sal_Int64 nParentStates = 0;
148 uno::Reference<XAccessibleContext> xParentContext =
getAccessibleParent()->getAccessibleContext();
149 nParentStates = xParentContext->getAccessibleStateSet();
151 sal_Int64 nStateSet = 0;
153 nStateSet |= AccessibleStateType::DEFUNC;
156 nStateSet |= AccessibleStateType::ENABLED;
157 nStateSet |= AccessibleStateType::MULTI_LINE;
159 nStateSet |= AccessibleStateType::OPAQUE;
161 nStateSet |= AccessibleStateType::SHOWING;
162 nStateSet |= AccessibleStateType::TRANSIENT;
164 nStateSet |= AccessibleStateType::VISIBLE;
166 nStateSet |= AccessibleStateType::MANAGES_DESCENDANTS;
175 return "ScAccessiblePreviewCell";
180 const css::uno::Sequence<OUString> vals {
"com.sun.star.table.AccessibleCellView" };
186uno::Sequence<sal_Int8> SAL_CALL
189 return css::uno::Sequence<sal_Int8>();
219 uno::Reference<XAccessibleContext> xAccParentContext = xAccParent->getAccessibleContext();
220 uno::Reference<XAccessibleComponent> xAccParentComp (xAccParentContext, uno::UNO_QUERY);
221 if (xAccParentComp.is())
224 aCellRect.
Move(-aParentRect.
Left(), -aParentRect.
Top());
234 (nParentStates & AccessibleStateType::DEFUNC);
262 mpTextHelper.reset( new ::accessibility::AccessibleTextHelper(
263 std::make_unique<ScAccessibilityEditSource>(
264 std::make_unique<ScAccessiblePreviewCellTextData>(
269 mpTextHelper->SetAdditionalChildStates( AccessibleStateType::TRANSIENT );
virtual bool isVisible() override
virtual sal_Bool SAL_CALL containsPoint(const css::awt::Point &rPoint) override
===== XAccessibleComponent ============================================
void IsObjectValid() const
virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext() override
===== XAccessible =====================================================
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 =====================================================
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleParent() override
Return a reference to the parent.
virtual void SAL_CALL disposing() override
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint(const css::awt::Point &aPoint) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Returns a list of all supported services.
std::unique_ptr< accessibility::AccessibleTextHelper > mpTextHelper
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
===== SfxListener =====================================================
ScPreviewShell * mpViewShell
virtual ~ScAccessiblePreviewCell() override
ScAccessiblePreviewCell(const css::uno::Reference< css::accessibility::XAccessible > &rxParent, ScPreviewShell *pViewShell, const ScAddress &rCellAddress, sal_Int32 nIndex)
virtual void SAL_CALL grabFocus() override
virtual tools::Rectangle GetBoundingBox() const override
Return the object's current bounding box relative to the parent object.
virtual sal_Int64 SAL_CALL getAccessibleStateSet() override
Return the set of current states.
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild(sal_Int64 i) override
Return the specified child or NULL if index is invalid.
virtual OUString SAL_CALL getImplementationName() override
===== XServiceInfo ====================================================
virtual tools::Rectangle GetBoundingBoxOnScreen() const override
Return the object's current bounding box relative to the desktop.
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
===== XTypeProvider ===================================================
virtual bool IsEditable(sal_Int64 nParentStates) override
virtual sal_Int64 SAL_CALL getAccessibleChildCount() override
===== XAccessibleContext ==============================================
SC_DLLPUBLIC const SfxPoolItem * GetAttr(SCCOL nCol, SCROW nRow, SCTAB nTab, sal_uInt16 nWhich) const
void GetCellPosition(const ScAddress &rCellPos, tools::Rectangle &rCellRect) const
const ScPreviewLocationData & GetLocationData()
void AddAccessibilityObject(SfxListener &rObject)
void RemoveAccessibilityObject(SfxListener &rObject)
vcl::Window * GetWindow() const
const Color & GetColor() const
tools::Rectangle GetWindowExtentsAbsolute() const
constexpr ::Color COL_TRANSPARENT(ColorTransparency, 0xFF, 0xFF, 0xFF, 0xFF)
inline ::tools::Rectangle VCLRectangle(const css::awt::Rectangle &rAWTRect)
css::uno::Sequence< T > concatSequences(const css::uno::Sequence< T > &rS1, const Ss &... rSn)
constexpr TypedWhichId< SvxBrushItem > ATTR_BACKGROUND(148)