31#include <com/sun/star/accessibility/AccessibleRole.hpp>
32#include <com/sun/star/accessibility/AccessibleStateType.hpp>
55 const ScAddress& rCellPos,
bool bIsColHdr,
bool bIsRowHdr,
58 mpViewShell( pViewShell ),
60 maCellPos( rCellPos ),
61 mbColumnHeader( bIsColHdr ),
62 mbRowHeader( bIsRowHdr )
93 if (
nId == SfxHintId::ScAccVisAreaChanged)
98 else if (
nId == SfxHintId::DataChanged )
113 return aAny.
hasValue() ? aAny : ScAccessibleContextBase::queryInterface(rType);
119 ScAccessibleContextBase::acquire();
125 ScAccessibleContextBase::release();
179 uno::Reference<XAccessible> xRet;
201 if (xAccessibleComponent.is())
202 xAccessibleComponent->grabFocus();
235 sal_Int64 nParentStates = 0;
238 uno::Reference<XAccessibleContext> xParentContext =
getAccessibleParent()->getAccessibleContext();
239 nParentStates = xParentContext->getAccessibleStateSet();
241 sal_Int64 nStateSet = 0;
243 nStateSet |= AccessibleStateType::DEFUNC;
246 nStateSet |= AccessibleStateType::ENABLED;
247 nStateSet |= AccessibleStateType::MULTI_LINE;
249 nStateSet |= AccessibleStateType::SHOWING;
250 nStateSet |= AccessibleStateType::TRANSIENT;
252 nStateSet |= AccessibleStateType::VISIBLE;
261 return "ScAccessiblePreviewHeaderCell";
266 const css::uno::Sequence<OUString> vals {
"com.sun.star.table.AccessibleCellView" };
277uno::Sequence<sal_Int8> SAL_CALL
280 return css::uno::Sequence<sal_Int8>();
324 uno::Reference<XAccessibleContext> xAccParentContext = xAccParent->getAccessibleContext();
325 uno::Reference<XAccessibleComponent> xAccParentComp (xAccParentContext, uno::UNO_QUERY);
326 if (xAccParentComp.is())
329 aCellRect.
Move(-aParentRect.
Left(), -aParentRect.
Top());
372 (nParentStates & AccessibleStateType::DEFUNC);
379 mxTextHelper.reset( new ::accessibility::AccessibleTextHelper(
380 std::make_unique<ScAccessibilityEditSource>(
381 std::make_unique<ScAccessiblePreviewHeaderCellTextData>(
void ScColToAlpha(OUStringBuffer &rBuf, SCCOL nCol)
append alpha representation of column to buffer
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 OUString SAL_CALL getAccessibleName() override
Return the object's current name.
SC_DLLPUBLIC SCCOL MaxCol() const
SC_DLLPUBLIC SCROW MaxRow() const
void GetTableInfo(const tools::Rectangle &rVisiblePixel, ScPreviewTableInfo &rInfo) const
const ScPreviewLocationData & GetLocationData()
void AddAccessibilityObject(SfxListener &rObject)
ScDocument & GetDocument()
void RemoveAccessibilityObject(SfxListener &rObject)
vcl::Window * GetWindow() const
virtual css::uno::Any SAL_CALL queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() SAL_OVERRIDE
tools::Rectangle GetWindowExtentsAbsolute() const
Size GetOutputSizePixel() const
inline ::tools::Rectangle VCLRectangle(const css::awt::Rectangle &rAWTRect)
css::uno::Sequence< T > concatSequences(const css::uno::Sequence< T > &rS1, const Ss &... rSn)
constexpr OUStringLiteral STR_ACC_HEADERCELL_DESCR
constexpr OUStringLiteral STR_ACC_HEADERCELL_NAME