From 815afb06b78b8fbf83f6a48b89500fb34dc4b40b Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 2 Sep 2019 20:45:14 +0100 Subject: indicate that SmEditAccessible is editable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit and use TEXT_FRAME like calc and other similar users of of an EditEngine as a frame do. Change-Id: I9d73362aa44273f87b283fcfc508d27abb50cb40 Reviewed-on: https://gerrit.libreoffice.org/78420 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- starmath/source/accessibility.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'starmath') diff --git a/starmath/source/accessibility.cxx b/starmath/source/accessibility.cxx index 8fb20618c701..98868df14a55 100644 --- a/starmath/source/accessibility.cxx +++ b/starmath/source/accessibility.cxx @@ -1648,7 +1648,7 @@ sal_Int32 SAL_CALL SmEditAccessible::getAccessibleChildCount( ) { SolarMutexGuard aGuard; if (!pTextHelper) - throw RuntimeException(); + return 0; return pTextHelper->GetChildCount(); } @@ -1688,7 +1688,7 @@ sal_Int32 SAL_CALL SmEditAccessible::getAccessibleIndexInParent( ) sal_Int16 SAL_CALL SmEditAccessible::getAccessibleRole( ) { - return AccessibleRole::PANEL /*TEXT ?*/; + return AccessibleRole::TEXT_FRAME; } OUString SAL_CALL SmEditAccessible::getAccessibleDescription( ) @@ -1723,6 +1723,7 @@ uno::Reference< XAccessibleStateSet > SAL_CALL SmEditAccessible::getAccessibleSt { pStateSet->AddState( AccessibleStateType::MULTI_LINE ); pStateSet->AddState( AccessibleStateType::ENABLED ); + pStateSet->AddState( AccessibleStateType::EDITABLE ); pStateSet->AddState( AccessibleStateType::FOCUSABLE ); if (pWin->HasFocus()) pStateSet->AddState( AccessibleStateType::FOCUSED ); -- cgit