diff --git a/include/svx/AccessibleOLEShape.hxx b/include/svx/AccessibleOLEShape.hxx index c173a34f5b80..b594666d3354 100644 --- a/include/svx/AccessibleOLEShape.hxx +++ b/include/svx/AccessibleOLEShape.hxx @@ -59,9 +59,9 @@ public: css::accessibility::XAccessibleKeyBinding> SAL_CALL getAccessibleActionKeyBinding ( sal_Int32 nIndex) override; -// ====== XAccessibleExtendedAttributes ===================================== - virtual OUString SAL_CALL getExtendedAttributes() override; protected: + virtual std::unordered_map implGetExtendedAttributes() override; + /// Create a name string that contains the accessible name. virtual OUString CreateAccessibleBaseName () override; diff --git a/svx/source/accessibility/AccessibleOLEShape.cxx b/svx/source/accessibility/AccessibleOLEShape.cxx index 5c3930ea07ee..647c5e153fa1 100644 --- a/svx/source/accessibility/AccessibleOLEShape.cxx +++ b/svx/source/accessibility/AccessibleOLEShape.cxx @@ -71,13 +71,12 @@ Reference SAL_CALL AccessibleOLEShape::getAccessibleActio throw lang::IndexOutOfBoundsException(); } -// XAccessibleExtendedAttributes -OUString SAL_CALL AccessibleOLEShape::getExtendedAttributes() +std::unordered_map AccessibleOLEShape::implGetExtendedAttributes() { - if (m_pShape) - return "style:" + static_cast(m_pShape)->GetStyleString() + ";"; + if (!m_pShape) + return {}; - return OUString(); + return { { u"style"_ustr, static_cast(m_pShape)->GetStyleString() } }; } /// Set this object's name if is different to the current name.